From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Problem with doc-view-previous-major-mode Date: Fri, 12 Apr 2013 12:24:34 -0400 Message-ID: References: <878v4odd31.fsf@rosalinde.fritz.box> <87li8op3un.fsf@rosalinde.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1365783881 25770 80.91.229.3 (12 Apr 2013 16:24:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Apr 2013 16:24:41 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stephen Berman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 12 18:24:44 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UQgmI-0004Cl-DS for ged-emacs-devel@m.gmane.org; Fri, 12 Apr 2013 18:24:42 +0200 Original-Received: from localhost ([::1]:50379 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQgmH-0001xo-SK for ged-emacs-devel@m.gmane.org; Fri, 12 Apr 2013 12:24:41 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39148) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQgmD-0001vh-Ia for emacs-devel@gnu.org; Fri, 12 Apr 2013 12:24:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UQgmC-0003DV-8N for emacs-devel@gnu.org; Fri, 12 Apr 2013 12:24:37 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:40816) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQgmC-0003DN-3V for emacs-devel@gnu.org; Fri, 12 Apr 2013 12:24:36 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFFFxIEd/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kiB4GwS2RCgOkeoFegxM X-IPAS-Result: Av4EABK/CFFFxIEd/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kiB4GwS2RCgOkeoFegxM X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="7272733" Original-Received: from 69-196-129-29.dsl.teksavvy.com (HELO pastel.home) ([69.196.129.29]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 12 Apr 2013 12:24:31 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id CAB8967B10; Fri, 12 Apr 2013 12:24:34 -0400 (EDT) In-Reply-To: <87li8op3un.fsf@rosalinde.fritz.box> (Stephen Berman's message of "Fri, 12 Apr 2013 10:09:36 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.182 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:158861 Archived-At: >>> what happens with -Q. But I have customized the global value of >>> major-mode to text-mode, >> Why? > Because I found that I often wanted to do quick tests in text-mode by > typing `C-x b a'. I see. > Your question suggests suggests that this customization is > ill-advised; No. Customizing default-major-mode has been supported "for ever" and your use case makes sense, but the way it works makes for some annoying corner cases, such as the one you've bumped into. So I'd like to use another mechanism, such that you could still configure the mode to use for a new buffer created via C-x b, but without it affecting things like your doc-view case. > And if it is ill-advised, then major-mode shouldn't be customizable, > should it? If I could rewrite history, indeed the default value of major-mode would not be customizable. Stefan