From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#4887: 23.1; list-load-path-shadows produces broken buffer Date: Wed, 11 Nov 2009 15:40:48 -0500 Message-ID: References: <200911080534.nA85YsTH029113@mailhub-pa1.hpl.hp.com> <200911111808.nABI8bCo021498@mailhub-pa1.hpl.hp.com> Reply-To: Stefan Monnier , 4887@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1257973782 7189 80.91.229.12 (11 Nov 2009 21:09:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 11 Nov 2009 21:09:42 +0000 (UTC) Cc: 4887@emacsbugs.donarmstrong.com To: mark.lillibridge@hp.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 11 22:09:34 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1N8KRV-0006Kz-Q6 for geb-bug-gnu-emacs@m.gmane.org; Wed, 11 Nov 2009 22:09:30 +0100 Original-Received: from localhost ([127.0.0.1]:54870 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N8KRV-0004Sp-AG for geb-bug-gnu-emacs@m.gmane.org; Wed, 11 Nov 2009 16:09:29 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N8KPW-0003Lp-3B for bug-gnu-emacs@gnu.org; Wed, 11 Nov 2009 16:07:26 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N8KPR-0003Jj-Rt for bug-gnu-emacs@gnu.org; Wed, 11 Nov 2009 16:07:25 -0500 Original-Received: from [199.232.76.173] (port=38637 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N8KPR-0003JY-Mr for bug-gnu-emacs@gnu.org; Wed, 11 Nov 2009 16:07:21 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:52836) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N8KPR-0004TE-2J for bug-gnu-emacs@gnu.org; Wed, 11 Nov 2009 16:07:21 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nABL7IsZ028988; Wed, 11 Nov 2009 13:07:19 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id nABKo3wh026160; Wed, 11 Nov 2009 12:50:03 -0800 Resent-Date: Wed, 11 Nov 2009 12:50:03 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Stefan Monnier Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Wed, 11 Nov 2009 20:50:03 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4887 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 4887-submit@emacsbugs.donarmstrong.com id=B4887.125797205625159 (code B ref 4887); Wed, 11 Nov 2009 20:50:03 +0000 Original-Received: (at 4887) by emacsbugs.donarmstrong.com; 11 Nov 2009 20:40:56 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from ironport2-out.pppoe.ca (ironport2-out.teksavvy.com [206.248.154.183]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nABKesSW025152 for <4887@emacsbugs.donarmstrong.com>; Wed, 11 Nov 2009 12:40:55 -0800 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApsEAGaw+kpMCpsp/2dsb2JhbACBTtwahDwEgn6GJQ X-IronPort-AV: E=Sophos;i="4.44,725,1249272000"; d="scan'208";a="49125356" Original-Received: from 76-10-155-41.dsl.teksavvy.com (HELO pastel.home) ([76.10.155.41]) by ironport2-out.pppoe.ca with ESMTP; 11 Nov 2009 15:40:48 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 85A738373; Wed, 11 Nov 2009 15:40:48 -0500 (EST) In-Reply-To: <200911111808.nABI8bCo021498@mailhub-pa1.hpl.hp.com> (Mark Lillibridge's message of "Wed, 11 Nov 2009 10:08:37 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Wed, 11 Nov 2009 16:07:25 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:32550 Archived-At: > Should linum use a different implementation method than > define-globalized-minor-mode? (does one exist?) You mean global-linum-mode? Yes, it could use a different method, e.g. setting global hooks instead, but that might prove tricky. > Should we instead fix define-globalized-minor-mode to work with all > buffers? Its documentation via ^h f claims it works in every buffer: That would be the best solution, yes. Given the hooks we currently have, it's not very easy because buffers like *Shadows* get created without running any hook, so basically the first hook that would get triggered might be something like window-configuration-change-hook, but that hooks has no easy way to decide whether that buffer was just created recently or on the contrary has been around for a long while (in which case enabling linum-mode might be very wrong since the user may have turned it off there earlier). An easier solution is to not change anything to define-globalized-minor-mode and to require Elisp code to explicitly set a major mode for any buffer that will be displayed. E.g. for *Shadows* the Elisp code should explicitly call fundamental-mode in it. Stefan