From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: bug#11110: bug with org-mode-hook and text-scale-set Date: Thu, 29 Mar 2012 12:47:02 +0200 Message-ID: <87k423u1jt.fsf__2120.89369674704$1333018025$gmane$org@altern.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:36956) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDCsL-0008UZ-Ju for emacs-orgmode@gnu.org; Thu, 29 Mar 2012 06:46:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SDCsH-0004jz-07 for emacs-orgmode@gnu.org; Thu, 29 Mar 2012 06:46:41 -0400 Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-Message-ID: In-Reply-To: (Du Yanning's message of "Wed, 28 Mar 2012 17:27:05 +0800") 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: Du Yanning Cc: 11110@debbugs.gnu.org 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