From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Reitter Newsgroups: gmane.emacs.devel Subject: globalized minor modes - priority over mode hook? Date: Sun, 25 Apr 2010 19:42:33 -0400 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1078) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1272238971 3699 80.91.229.12 (25 Apr 2010 23:42:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 25 Apr 2010 23:42:51 +0000 (UTC) To: "emacs-devel@gnu.org devel" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 26 01:42:50 2010 connect(): No such file or directory Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O6BTL-0001B7-Bn for ged-emacs-devel@m.gmane.org; Mon, 26 Apr 2010 01:42:47 +0200 Original-Received: from localhost ([127.0.0.1]:54170 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O6BTK-00042f-Mp for ged-emacs-devel@m.gmane.org; Sun, 25 Apr 2010 19:42:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O6BTG-00042a-7M for emacs-devel@gnu.org; Sun, 25 Apr 2010 19:42:42 -0400 Original-Received: from [140.186.70.92] (port=37702 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O6BTE-00042S-3A for emacs-devel@gnu.org; Sun, 25 Apr 2010 19:42:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O6BTC-0003ea-QV for emacs-devel@gnu.org; Sun, 25 Apr 2010 19:42:39 -0400 Original-Received: from mail-vw0-f41.google.com ([209.85.212.41]:35778) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O6BTC-0003eJ-Kr for emacs-devel@gnu.org; Sun, 25 Apr 2010 19:42:38 -0400 Original-Received: by vws6 with SMTP id 6so35089vws.0 for ; Sun, 25 Apr 2010 16:42:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:content-type :content-transfer-encoding:subject:date:message-id:to:mime-version :x-mailer; bh=PapKsOZOS9DzbFzRDWX/nfdZWXRglCQyWAmYWvOCGGk=; b=gZJMMyKrh9Yu9RFXR0jAvNBkK1fmwC1eiO0wh6KfzxulhjBy1O2shCIHvUI1/IicNx NmCZjToYNPHFGVsvsud4DgMLYmJwFMbNr8unkOnFCbnV9uWWpRBrvifMiDeGolAqMysP q+gXpndmOrPnzG1YcNJNVeJ73xl2umajGS86c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:content-type:content-transfer-encoding:subject:date:message-id :to:mime-version:x-mailer; b=Kx+MvgDaJ8WxIVgtIjnWGIkIIiKKHSCRE9PmChdCR9LgzOWj1n9KMB078y08AP5Kde c2j9YKIN67Pj0XlUD4d5fBiAxzLnLWGOXM3ekC7kkd6eonACmXUXQZBNQrCqDNX8hbp2 TeFD9VOz/wBj+4Z5u7BCdA1vYNXPBNKvYQjVc= Original-Received: by 10.220.48.22 with SMTP id p22mr2102129vcf.93.1272238956855; Sun, 25 Apr 2010 16:42:36 -0700 (PDT) Original-Received: from [192.168.1.42] (pool-72-95-200-56.pitbpa.east.verizon.net [72.95.200.56]) by mx.google.com with ESMTPS id i29sm17002727vcr.0.2010.04.25.16.42.35 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 25 Apr 2010 16:42:36 -0700 (PDT) X-Mailer: Apple Mail (2.1078) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:124210 Archived-At: `run-mode-hooks' runs the mode hooks first, then = after-change-major-mode-hooks. When a globalized major mode is enabled, then it will install itself in = `after-change-major-mode-hooks' and override the more specific major = mode hooks, which is not normally what one wants. For instance, if I want global-visual-line-mode on, but turn off = word-wrap in my `latex-mode-hook' in favor for auto-fill, I don't get = the expected result. I don't know what happens when local variables are = set when a file is loaded - these are specific for the file and should = probably override the less-specific global minor mode. Could globalized minor modes not be enabled earlier?=