GNU bug report logs - #11110
bug with org-mode-hook and text-scale-set

Previous Next

Packages: emacs, org-mode;

Reported by: Du Yanning <duyanning <at> gmail.com>

Date: Wed, 28 Mar 2012 13:00:02 UTC

Severity: normal

Done: Bastien <bzg <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 11110 in the body.
You can then email your comments to 11110 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#11110; Package emacs. (Wed, 28 Mar 2012 13:00:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Du Yanning <duyanning <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 28 Mar 2012 13:00:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Du Yanning <duyanning <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: bug with org-mode-hook and text-scale-set
Date: Wed, 28 Mar 2012 17:27:05 +0800
[Message part 1 (text/plain, inline)]
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.
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org, emacs-orgmode <at> gnu.org:
bug#11110; Package emacs,org-mode. (Thu, 29 Mar 2012 11:18:02 GMT) Full text and rfc822 format available.

Message #8 received at 11110 <at> debbugs.gnu.org (full text, mbox):

From: Bastien <bzg <at> altern.org>
To: Du Yanning <duyanning <at> gmail.com>
Cc: 11110 <at> debbugs.gnu.org
Subject: Re: bug#11110: bug with org-mode-hook and text-scale-set
Date: Thu, 29 Mar 2012 12:47:02 +0200
Hi Du,

Du Yanning <duyanning <at> gmail.com> 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




Reply sent to Bastien <bzg <at> gnu.org>:
You have taken responsibility. (Sun, 01 Apr 2012 19:23:01 GMT) Full text and rfc822 format available.

Notification sent to Du Yanning <duyanning <at> gmail.com>:
bug acknowledged by developer. (Sun, 01 Apr 2012 19:23:02 GMT) Full text and rfc822 format available.

Message #13 received at 11110-done <at> debbugs.gnu.org (full text, mbox):

From: Bastien <bzg <at> gnu.org>
To: Du Yanning <duyanning <at> gmail.com>
Cc: 11110-done <at> debbugs.gnu.org
Subject: Re: bug#11110: bug with org-mode-hook and text-scale-set
Date: Sun, 01 Apr 2012 11:59:49 +0200
Du Yanning <duyanning <at> gmail.com> 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




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 30 Apr 2012 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 13 years and 49 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.