From mboxrd@z Thu Jan 1 00:00:00 1970 From: Du Yanning Subject: bug with org-mode-hook and text-scale-set Date: Tue, 13 Mar 2012 14:49:41 +0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=00151747bd0c71f12004bb1a4391 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:59566) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7LYe-0001Op-9F for emacs-orgmode@gnu.org; Tue, 13 Mar 2012 02:50:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S7LYH-0005u6-BX for emacs-orgmode@gnu.org; Tue, 13 Mar 2012 02:50:07 -0400 Received: from mail-bk0-f41.google.com ([209.85.214.41]:42162) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7LYH-0005tZ-28 for emacs-orgmode@gnu.org; Tue, 13 Mar 2012 02:49:45 -0400 Received: by bkwq16 with SMTP id q16so157483bkw.0 for ; Mon, 12 Mar 2012 23:49:42 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode --00151747bd0c71f12004bb1a4391 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. --00151747bd0c71f12004bb1a4391 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 id=3D"result_box" class=3D"" lang=3D"en"> become l= arger and larger.
However, the indicator in the mode line remains +4.


--00151747bd0c71f12004bb1a4391--