From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Newsgroups: gmane.emacs.help Subject: Re: emacs mode line suggestions Date: Mon, 17 Nov 2008 19:24:59 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <15962952-6180-41bd-abce-1b919aa55807@v13g2000pro.googlegroups.com> <39353809-6edf-4b7e-aae2-e0dd4d614c61@a26g2000prf.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1227002956 21864 80.91.229.12 (18 Nov 2008 10:09:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 18 Nov 2008 10:09:16 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 18 11:10:17 2008 Return-path: Envelope-to: geh-help-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 1L2NX7-000809-As for geh-help-gnu-emacs@m.gmane.org; Tue, 18 Nov 2008 11:10:09 +0100 Original-Received: from localhost ([127.0.0.1]:34842 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L2NVx-0005zd-Ub for geh-help-gnu-emacs@m.gmane.org; Tue, 18 Nov 2008 05:08:57 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!k24g2000pri.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 62 Original-NNTP-Posting-Host: 24.6.185.159 Original-X-Trace: posting.google.com 1226978700 5598 127.0.0.1 (18 Nov 2008 03:25:00 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 18 Nov 2008 03:25:00 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: k24g2000pri.googlegroups.com; posting-host=24.6.185.159; posting-account=bRPKjQoAAACxZsR8_VPXCX27T2YcsyMA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_4_11; en) AppleWebKit/525.26.2 (KHTML, like Gecko) Version/3.2 Safari/525.26.12, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:164555 X-Mailman-Approved-At: Tue, 18 Nov 2008 05:08:25 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:59898 Archived-At: On Nov 17, 6:33 pm, "B. T. Raven" wrote: > But if a user is interested in working with Emacs rather than just > playing with it, she will know the suffix that will trigger the correct > mode. You missed the point. When a programer work with multiple langs, and when he create a buffer for scratch purposes, there is a need to switch to switch mode. It is not playing with emacs. For example, i program in elisp and perl. So, say, i created a buffer xx for scratch purposes to code some elisp. Then, suddenly my contractor called and needed some code fixed quickly. I immediatly get to work, and i want to switch my xx buffer to perl mode, and start coding perl there. however, i'm emacs newbie, i dunno that the mode switching command. So, i click on the majo mode name in the buffer, get a list, then there i can switch. > So if there is a programming language Brainfsck, then it's mode > might be switched to by visiting a file named scratch.ppp. not quite sure what you mean. I'm guessing what you mean is that the suffix now may not correspond to the mode. Not so, because switching mode is a conscious decision, not something happens automatically. > If this > worked correctly it would work faster than anything you could do with > the mouse on the mode line. remember, the context is ease of use for those who just started to use emacs, and the context is about the the behavior of clicking the mode line. The argument in this subthread, is NOT about switching mode in general. For example, as most emacs users known, you simply switch mode by Alt+x =E2=80=B9mode name=E2=80=BA. So, my argument is that clicking on the major mode in the mode line should pop up a list of commonly used lang's modes. > Fortunately (or maybe not) you are correct that suffix-mode > correspondences aren't always intuitive. For instance, I press C-x b and > then type in a new (temporary)buffer name like scratch.el * The buffer > is created but it is in Text mode (my default) until I do either C-x C-w > or M-x emacs-lisp-mode. But if I save it I now have an empty file with > that name in my default directory, which I will eventually have to > delete. It would be better (imho) if the buffer switched to the mode > indicated by the buffer name suffix immediately after creation. > But it may be that we are wrong about that since, in the context of the > big picture, it may seem hokey to the developers to give a suffix > to a temporary buffer name. > > * Just for the sake of example. Of course there already is a buffer > *scratch* set to the correct mode > > Ed Xah =E2=88=91 http://xahlee.org/ =E2=98=84