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.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Bastien <bzg <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#11110: closed (bug with org-mode-hook and text-scale-set)
Date: Sun, 01 Apr 2012 19:23:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sun, 01 Apr 2012 11:59:49 +0200
with message-id <87wr5zepre.fsf <at> gnu.org>
and subject line Re: bug#11110: bug with org-mode-hook and text-scale-set
has caused the debbugs.gnu.org bug report #11110,
regarding bug with org-mode-hook and text-scale-set
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
11110: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=11110
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
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 3 (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 4 (text/html, inline)]
[Message part 5 (message/rfc822, inline)]
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


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.