From unknown Wed Jun 18 00:27:02 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#11110 <11110@debbugs.gnu.org> To: bug#11110 <11110@debbugs.gnu.org> Subject: Status: bug with org-mode-hook and text-scale-set Reply-To: bug#11110 <11110@debbugs.gnu.org> Date: Wed, 18 Jun 2025 07:27:02 +0000 retitle 11110 bug with org-mode-hook and text-scale-set reassign 11110 emacs,org-mode submitter 11110 Du Yanning severity 11110 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 28 08:59:50 2012 Received: (at submit) by debbugs.gnu.org; 28 Mar 2012 12:59:50 +0000 Received: from localhost ([127.0.0.1]:42486 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SCsT5-0004AB-SE for submit@debbugs.gnu.org; Wed, 28 Mar 2012 08:59:49 -0400 Received: from eggs.gnu.org ([208.118.235.92]:46335) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SCpeO-0007S3-FG for submit@debbugs.gnu.org; Wed, 28 Mar 2012 05:58:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SCp9y-0008QV-CL for submit@debbugs.gnu.org; Wed, 28 Mar 2012 05:27:24 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:45358) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SCp9y-0008QR-6Q for submit@debbugs.gnu.org; Wed, 28 Mar 2012 05:27:18 -0400 Received: from eggs.gnu.org ([208.118.235.92]:56510) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SCp9t-0004nO-Jt for bug-gnu-emacs@gnu.org; Wed, 28 Mar 2012 05:27:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SCp9o-0008Kc-Oe for bug-gnu-emacs@gnu.org; Wed, 28 Mar 2012 05:27:13 -0400 Received: from mail-bk0-f41.google.com ([209.85.214.41]:43364) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SCp9o-0008KA-FH for bug-gnu-emacs@gnu.org; Wed, 28 Mar 2012 05:27:08 -0400 Received: by bkwq16 with SMTP id q16so844966bkw.0 for ; Wed, 28 Mar 2012 02:27:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=VYOoqffcb+/WNt8qraO1GMQ1exMPreaQw5kB0zCdcxE=; b=c4oBMNEF3EkYMY5/Aho8O4mVS63KJboO3kbsmeLyiN/nR53yB15L1yU8XAak0KH46j rlfzHbt/JZuKQmKx5IcaNpWSeHOFpb8lny/zHzF9HVCnUmmopM7qLINvA8OBTGM5P9I9 8EcyUSd2DNLt5kqwOl316OlrqDLQpKaZH52/kZtaacCXiWJJf5E94Mesm3/2PnUBoR5S 6MP3DCmhz1tOrROY4za7PcBpMVuBV6J6BUP/4AXyHFH/qDk+NPqQwACmuVqyo6zGcq+I xNxTGi0m1Q/3Oyv95KSbvhUO8mI9+7YBYO8kXWW3vhkC+ORUMiMTB1tSOv37btnnlH7d q2/g== MIME-Version: 1.0 Received: by 10.204.154.66 with SMTP id n2mr11870831bkw.77.1332926825773; Wed, 28 Mar 2012 02:27:05 -0700 (PDT) Received: by 10.205.122.131 with HTTP; Wed, 28 Mar 2012 02:27:05 -0700 (PDT) Date: Wed, 28 Mar 2012 17:27:05 +0800 Message-ID: Subject: bug with org-mode-hook and text-scale-set From: Du Yanning To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary=0015175cfd88f63ba804bc4a353a X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.1 (------) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 28 Mar 2012 08:59:13 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.1 (-) --0015175cfd88f63ba804bc4a353a Content-Type: text/plain; charset=ISO-8859-1 org-mode 7.8.03 emacs 23.3, 23.4, 24.0.94 steps to recreate: emacs -q copy the following code and paste it into the *scratch* buffer: (add-to-list 'auto-mode-alist '("\\.txt\\'" . org-mode)) (add-hook 'org-mode-hook '(lambda () (text-scale-set 4))) M-x eval-buffer then C-x C-f to open a .txt file, and then C-x C-f to open another .txt file. Every time a .txt is opened, the font size become larger and larger. However, the indicator in the mode line remains +4. text-mode-hook and c-mode-hook do NOT have this bug. and the org-mode-hook of orgmode shipped within emacs 23.3 does NOT have this bug. --0015175cfd88f63ba804bc4a353a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable org-mode 7.8.03
emacs 23.3, 23.4, 24.0.94

steps to recreate:
<= br>emacs -q

copy the following code and paste it into the *scratch* = buffer:
(add-to-list 'auto-mode-alist '("\\.txt\\'"= ; . org-mode))
(add-hook 'org-mode-hook '(lambda () (text-scale-set 4)))=A0
M-x eval-buffer

then C-x C-f to open a .txt file, and then C-x C-f= to open another .txt file.
Every time a .txt is opened, the font size <= span lang=3D"en"> become larger and larger.
However, the indicator in the mode line remains +4.

text-mode-hook a= nd c-mode-hook do NOT have this bug.
and the org-mode-hook of orgmode sh= ipped within emacs 23.3 does NOT have this bug.
--0015175cfd88f63ba804bc4a353a-- From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 29 07:17:32 2012 Received: (at 11110) by debbugs.gnu.org; 29 Mar 2012 11:17:32 +0000 Received: from localhost ([127.0.0.1]:44160 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SDDM7-0006Du-Gb for submit@debbugs.gnu.org; Thu, 29 Mar 2012 07:17:32 -0400 Received: from incoming2.cnam.fr ([163.173.128.34]:28892) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SDDLr-0006DV-60 for 11110@debbugs.gnu.org; Thu, 29 Mar 2012 07:17:26 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EANA5dE+jrT4T/2dsb2JhbABEuQ+BB4IJAQEEATIBRgULCw0UJQ8BBA0LMROIBQS6eIoFhxoEjgKGCoFVhhGFIIR8gmk X-IronPort-AV: E=Sophos;i="4.73,667,1325458800"; d="scan'208";a="30290996" Received: from unknown (HELO myhost.localdomain) ([163.173.62.19]) by outgoing2.cnam.fr with ESMTP; 29 Mar 2012 12:45:44 +0200 Received: by myhost.localdomain (Postfix, from userid 1000) id 0E638856E; Thu, 29 Mar 2012 12:47:03 +0200 (CEST) From: Bastien To: Du Yanning Subject: Re: bug#11110: bug with org-mode-hook and text-scale-set In-Reply-To: (Du Yanning's message of "Wed, 28 Mar 2012 17:27:05 +0800") References: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux) Date: Thu, 29 Mar 2012 12:47:02 +0200 Message-ID: <87k423u1jt.fsf@altern.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11110 Cc: 11110@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) Hi Du, Du Yanning writes: > steps to recreate: > > emacs -q > > copy the following code and paste it into the *scratch* buffer: > (add-to-list 'auto-mode-alist '("\\.txt\\'" . org-mode)) > (add-hook 'org-mode-hook '(lambda () (text-scale-set 4)))  > > M-x eval-buffer > > then C-x C-f to open a .txt file, and then C-x C-f to open another > .txt file. > Every time a .txt is opened, the font size become larger and larger. > However, the indicator in the mode line remains +4. > > text-mode-hook and c-mode-hook do NOT have this bug. > and the org-mode-hook of orgmode shipped within emacs 23.3 does NOT > have this bug. Fixed in Org git repository, will be fixed in Emacs after the next merge. I will mark it "done" when it's merged. -- Bastien From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 01 15:22:45 2012 Received: (at 11110-done) by debbugs.gnu.org; 1 Apr 2012 19:22:45 +0000 Received: from localhost ([127.0.0.1]:35060 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SEQMO-0007Ir-E6 for submit@debbugs.gnu.org; Sun, 01 Apr 2012 15:22:45 -0400 Received: from mail-wg0-f46.google.com ([74.125.82.46]:43241) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SEHYb-0001Io-Vl for 11110-done@debbugs.gnu.org; Sun, 01 Apr 2012 05:58:46 -0400 Received: by wgbdq11 with SMTP id dq11so1900959wgb.15 for <11110-done@debbugs.gnu.org>; Sun, 01 Apr 2012 02:58:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=sender:from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-type:content-transfer-encoding; bh=LF/BlI/TQULdxUK6PW5H8xtKL4/wj1veSUog1fLRZ8k=; b=eoyP43gcHG5wL4H4X+hUKv87ERKLaGtKksUUXFJIIwMbOKv6jw6UFb+5s2Fytm1XJr 4adqK9c9lRttk6XV1tzwwMDTrb4ToEYwBkNuOYwo9B4wxm+rG2Bmb0jpUEAMc9WnsEPP t2C+BdPpvS6GRVyVYDxx7e3tHMa/fHXNg/LmZQytxnjt0I4iiPPnMuT9ih4NCRlzfhnY wOUIALkqPxwKvhE4DgdgFaf7t0eOPUkA5WvYDl//N2DcyQ6aVQ8ncUKgIqJTiCx8uscV byZvNUxZ02Ki+lKrJgUCAyqnGB9m4FRJCWz7fDaAH/vOgIhGHXa2bALlbWaYdXcz7t9W CRRw== Received: by 10.180.84.164 with SMTP id a4mr13992619wiz.2.1333274314174; Sun, 01 Apr 2012 02:58:34 -0700 (PDT) Received: from myhost.localdomain (pha75-11-82-236-86-204.fbx.proxad.net. [82.236.86.204]) by mx.google.com with ESMTPS id gd4sm38403602wib.6.2012.04.01.02.58.33 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 01 Apr 2012 02:58:33 -0700 (PDT) Received: by myhost.localdomain (Postfix, from userid 1000) id EC09B856E; Sun, 1 Apr 2012 11:59:49 +0200 (CEST) From: Bastien To: Du Yanning Subject: Re: bug#11110: bug with org-mode-hook and text-scale-set In-Reply-To: (Du Yanning's message of "Wed, 28 Mar 2012 17:27:05 +0800") References: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux) Date: Sun, 01 Apr 2012 11:59:49 +0200 Message-ID: <87wr5zepre.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 11110-done X-Mailman-Approved-At: Sun, 01 Apr 2012 15:22:43 -0400 Cc: 11110-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) Du Yanning writes: > org-mode 7.8.03 > emacs 23.3, 23.4, 24.0.94 > > steps to recreate: > > emacs -q > > copy the following code and paste it into the *scratch* buffer: > (add-to-list 'auto-mode-alist '("\\.txt\\'" . org-mode)) > (add-hook 'org-mode-hook '(lambda () (text-scale-set 4)))  > > M-x eval-buffer > > then C-x C-f to open a .txt file, and then C-x C-f to open another > .txt file. > Every time a .txt is opened, the font size become larger and larger. > However, the indicator in the mode line remains +4. This is now fixed in Emacs trunk. Thanks. -- Bastien From unknown Wed Jun 18 00:27:02 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 30 Apr 2012 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator