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: Sun, 01 Apr 2012 11:59:49 +0200 Message-ID: <87wr5zepre.fsf@gnu.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]:57713) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SEQMW-0006yA-IS for emacs-orgmode@gnu.org; Sun, 01 Apr 2012 15:22:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SEQMU-0007v7-Rd for emacs-orgmode@gnu.org; Sun, 01 Apr 2012 15:22:52 -0400 Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: bug-gnu-emacs@gnu.org, emacs-orgmode@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-done@debbugs.gnu.org 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