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: Sun, 16 Nov 2008 15:17:44 -0800 (PST) Organization: http://groups.google.com Message-ID: <39353809-6edf-4b7e-aae2-e0dd4d614c61@a26g2000prf.googlegroups.com> References: <15962952-6180-41bd-abce-1b919aa55807@v13g2000pro.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 1226906242 24683 80.91.229.12 (17 Nov 2008 07:17:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 17 Nov 2008 07:17:22 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 17 08:18:24 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 1L1yNK-0006iW-8l for geh-help-gnu-emacs@m.gmane.org; Mon, 17 Nov 2008 08:18:22 +0100 Original-Received: from localhost ([127.0.0.1]:56534 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L1yMB-0003w9-Lm for geh-help-gnu-emacs@m.gmane.org; Mon, 17 Nov 2008 02:17:11 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!a26g2000prf.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 93 Original-NNTP-Posting-Host: 24.6.185.159 Original-X-Trace: posting.google.com 1226877464 29476 127.0.0.1 (16 Nov 2008 23:17:44 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sun, 16 Nov 2008 23:17:44 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: a26g2000prf.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:164517 X-Mailman-Approved-At: Mon, 17 Nov 2008 02:16:54 -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:59859 Archived-At: On Nov 16, 1:40 pm, Eli Zaretskii wrote: > Please explain how you deduce that the cursor percentage is shown. > Here's what I see (on MS-Windows, but that's the only GUI Emacs I can > access where I type this): as long as the first and last line shown by > the window don't move, I see the same percentage, no matter how I move > the cursor; but when I scroll the window with "C-u 1 C-v" (which > scrolls by one line without moving buffer position), the percentage > starts changing, even though cursor is on the same place in the > buffer. Ok, i think i know what you are saying. I had some misunderstanding in my previous post. Here's what i would suggest: according to (info "(emacs)Mode Line"), quote: =C2=AB -CS:CH-FR BUF POS LINE (MAJOR MINOR)------ ... POS tells you whether there is additional text above the top of the window, or below the bottom. If your buffer is small and it is all visible in the window, POS is `All'. Otherwise, it is `Top' if you are looking at the beginning of the buffer, `Bot' if you are looking at the end of the buffer, or `NN%', where NN is the percentage of the buffer above the top of the window. With Size Indication mode, you can display the size of the buffer as well. *Note Optional Mode Line::. =C2=BB what i am thinking is that code word =E2=80=9CAll=E2=80=9D, =E2=80=9CTop=E2= =80=9D, =E2=80=9CBot=E2=80=9D, which are different than NN%, is less intuitive than if it always use the NN% format. i think it's perhaps even better if the percentage is simply the current line number divided by the total num of lines in buffer. > > > As for what it should do, I don't see why your preference is better > > > than the current one. Popping a menu requires another click to > > > actually select a buffer, whereas the current behavior does it in one > > > click. > > > typically, a user has several user buffers open, and as far as i guess > > many programers who use emacs extensively has like hundreds of buffers > > open. Cycling them one by one is not much useful. > > No one in their right mind will cycle buffers. This feature exists if > your buffer is one or two away. Anything more than that, you should > use the menu-bar's Buffers menu (or select the buffer by its name with > C-x b). So, when clicking on the buffer name, showing a menu is more useful than cycling buffer. > > For one reason, it by default selectively display only some of the > > minor modes currently on > > Perhaps because some minor modes decided not to announce themselves. > For example, in the buffer where I type this I have "Fly Abbrev Fill" > as the list of minor modes that I have turned on. Yes, so that's confusing. > > > > =E2=80=A2 Clicking on the major mode name should pop up a contextua= l menu to > > > > let user switch to major major modes. > > > > Switching a major mode is a very rare command, so having this at your > > > fingertips makes no sense, IMO. > > > switching between modes is not rarely used. I'd estimate it is used > > every other hour at least. > > Please provide some use-cases to back this up. FWIW, I almost never > switch the major mode in the same buffer, unless Emacs didn't switch > into the right one to begin with, and even then I only do that once in > a given buffer. those who use *scratch*, or create new buffer, or create new file... he may need to switch to the righ lang mode. Sometimes when such buffer is used as a scratch, programer may have more than one lang inserted into it, and may switch to different mode for the right syntax coloring. Xah =E2=88=91 http://xahlee.org/ =E2=98=84