From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Lee Newsgroups: gmane.emacs.help Subject: Re: usability problem of emacs describe-mode Date: Mon, 23 Feb 2009 13:35:28 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <76fcf833-ad89-44f2-b227-e18295317ca2@p13g2000yqc.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 1235456341 9515 80.91.229.12 (24 Feb 2009 06:19:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 24 Feb 2009 06:19:01 +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 Feb 24 07:20:17 2009 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 1LbqeN-0002i4-TD for geh-help-gnu-emacs@m.gmane.org; Tue, 24 Feb 2009 07:20:17 +0100 Original-Received: from localhost ([127.0.0.1]:37765 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lbqd3-00084o-8T for geh-help-gnu-emacs@m.gmane.org; Tue, 24 Feb 2009 01:18:53 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!m40g2000yqh.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help,comp.emacs Original-Lines: 229 Original-NNTP-Posting-Host: 24.6.175.142 Original-X-Trace: posting.google.com 1235424928 28239 127.0.0.1 (23 Feb 2009 21:35:28 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 23 Feb 2009 21:35:28 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: m40g2000yqh.googlegroups.com; posting-host=24.6.175.142; 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.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/525.27.1, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:166995 comp.emacs:97848 X-Mailman-Approved-At: Tue, 24 Feb 2009 01:18:20 -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:62314 Archived-At: I've cleaned up and edited the page a bit. Now it's on my site here: =E2=80=A2 Usability Problems Of Emacs's Mode Documentation http://xahlee.org/emacs/modernization_mode_doc.html Here's a plain text version: ------------------------------- Usability Problems Of Emacs's Mode Documentation Xah Lee, 2009-02-06 This page details some usability problems of Emacs's inline documentation for its major-mode. Emacs has a command describe-mode (Ctrl+h m) that shows the inline doc for the current mode. For example, if you are coding in javascript, html, perl, or python, you can type =E2=80=9CCtrl+h m=E2=80=9D to quickly s= ee a summarization of what functionalities you have while coding in that lang, and what are the keyboard shortcuts. This is really a wonderful feature, but it is a shame that it has some major usability problem, almost making this feature not usable. The following gives some details. For example, when in w3m mode, which is a mode that allows you to browse the web pages, i type =E2=80=9CCtrl+h m=E2=80=9D to read the online = doc about the mode's features. The result page starts like this: Enabled minor modes: Abbrev Auto-Compression Blink-Cursor Command-Frequency Command-Frequency-Autosave Delete-Selection Desktop-Save Encoded-Kbd File-Name-Shadow Font-Lock Global-Font- Lock Line-Number Menu-Bar Mouse-Wheel Recentf Shell-Dirtrack Show-Paren Tooltip Transient-Mark Unify-8859-On-Encoding Utf-Translate-Cjk (Information about these minor modes follows the major mode info.) Note that it first show users a bunch of meta info about =E2=80=9Cminor- modes=E2=80=9D. (most =E2=80=9Cminor modes=E2=80=9D's functionality are wha= t today called preference settings in other apps, while some minor modes provides additional features such as abbreviation, templates, etc.) Here's a excerpt of the minor mode doc that comes after the major mode doc: ^L Abbrev minor mode (indicator Abbrev): Toggle Abbrev mode in the current buffer. With optional argument ARG, turn abbrev mode on if ARG is positive, otherwise turn it off. In Abbrev mode, inserting an abbreviation causes it to expand and be replaced by its expansion. ^L Auto-Compression minor mode (no indicator): Toggle automatic file compression and uncompression. With prefix argument ARG, turn auto compression on if positive, else off. Return the new status of auto compression (non-nil means on). ^L Blink-Cursor minor mode (no indicator): Toggle blinking cursor mode. With a numeric argument, turn blinking cursor mode on if ARG is positive, otherwise turn it off. When blinking cursor mode is enabled, the cursor of the selected window blinks. Note that this command is effective only when Emacs displays through a window system, because then Emacs does its own cursor display. On a text-only terminal, this is not implemented. ^L Cua minor mode (no indicator): Toggle CUA key-binding mode. When enabled, using shifted movement keys will activate the region (and highlight the region using `transient-mark-mode'), and typed text replaces the active selection. These minor modes, filled with emacs technicalities and terminologies specific to emacs, are not relevant to users. When user calls describe- mode, most of the time she really want to know what functionality and shortcuts the major mode provides. But these minor modes often fills more than 60% of the page. To me, it is really a pain to read (a emacs user for 10 years), and i have learned the habit not even seeing them. I imagine it is very confusing to new emacs users. Imagine, it has to annoy users about discussion such as Blink-Cursor, Tooltip, Menu-Bar, Mouse-Wheel, Transient-Mark, Delete-Selection, Font- Lock, Line-Number. Each of these is at least one paragraph long, and some are emacs's non-intuitive and weired tech jargons. For example, the standard feature of having selected text highlighted, is in emacs called transient-mark-mode. The standard feature of typing overriding selected text, is in emacs tech jargon called delete-selection-mode. The standard feature of copy/cut/paste keys, is in emacs called cua- mode. Syntax highlighting is called font-lock-mode. Does user really need to know, that he has Blinking Cursor on? And a user needs to be told of the fact he has mouse wheel support on? And menu bar, tooltip, syntax highlighting? Do users need explanation what these do too? The emacs minor mode, also includes proper features such as: Show- Paren, Recentf, Desktop-Save, Abbrev, Yas/Minor ... etc. For example, show-paren-mode highlight matching parenthesis. =E2=80=9Crecentf-mode=E2=80= =9D lets user open recently opened files. =E2=80=9Cdesktop-save-mode=E2=80=9D preser= ves opened files when emacs restarts. It is nice to be able to see what features are currently on, and what extra functionality it supports, but perhaps a separate command describe-minor-modes would be better. Minor mode listing also include a bunch that shows some technical issues of emacs's current state that has little to do with daily use of emacs. For example, it shows Shell-Dirtrack, Auto-Compression, Encoded-Kbd, File-Name-Shadow, Unify-8859-On-Encoding, Utf-Translate- Cjk. I have used emacs daily for 10 years, half of the minor mode showing up in describe-mode i don't even know what exactly they are. Also, the page litters =E2=80=9C^L=E2=80=9D char (ascii 12) through out. Th= e =E2=80=9C^L=E2=80=9D is a page break marker. Such practice is a convention in the 1980s. Almost no software today does this, and very few professional programers today understand what it is. This adds to the incomprehensibility. I think the major usability problem with describe-mode is the listing of minor modes. Though, the major mode's inline doc could also use some improvement. Here's a excerpt of the inline doc for w3m: w3m mode: Major mode for browsing web. RET Display the page pointed to by the link under point. You may use the prefix arg `2' or `C-u C-u' to make a new session. If w3m-use-form is t, `RET' and `' enable you to enter forms. You may use the prefix arg `2' or `C-u C-u' to make a new session. Display the page of the link in a new session. If the region is active, visit all the links within the region. Display the page of the link in a new session by mouse. C-c C-c Submit the form at point. R Reload the current page. r Redisplay the current page. C t Redisplay the page, specifying a content type. C c Redisplay the current page, specifying a charset. C C Redisplay the current page and reset the user-specified charset and content type. The key notation, such as =E2=80=9CC-u C-u=E2=80=9D, =E2=80=9CRET=E2=80=9D,= are hard to read, especially when used together with shortcut keys without a modifier such as =E2=80=9CC t=E2=80=9D. The =E2=80=9C=E2=80=9D and =E2=80= =9CS-kp-enter=E2=80=9D are especially cryptic. Suggestions * describe-mode should just show the inline doc for the major mode. * Add a link to the bottom that point to the full doc of the mode, if it exists. (the link may be to info doc, or call browse-url to open a html doc on local disk, or to a url online of the mode's doc website) * Get rid of convention of using ^L (ascii 12) for page break marker. * Add a link at the bottom, to a page that shows inline doc of minor modes. * Use curly quotes =E2=80=9C=E2=80=9D instead of the 1980's ascii kludg= e `'. For detail about the key notation that adds up readability, see: Emacs's M-=E2=80=B9key=E2=80=BA Notation vs Alt+=E2=80=B9key=E2=80=BA Notat= ion. The use of backtick char ` and single quote char ' for =E2=80=9Cmatching quotes=E2=80=9D is a 1980's kludge. They also adds to the readability probl= em. It would also be helpful, if the keys are rendered as buttons. Note that the button rendering is used in the help files in MS Windows and Mac OS X too. And in Wikipedia's articles related to keys, it is also used thru-out. e.g. Table of keyboard shortcuts. Here's a sample output for comparison: w3m mode: Major mode for browsing web. Enter Display the page pointed to by the link under point. You may use the prefix arg =E2=80=9C2=E2=80=9D or =E2=80=9CCtrl+u Ctrl+= u=E2=80=9D to make a new session. If w3m-use-form is t, =E2=80=9CEnter=E2=80=9D and =E2=80=9Cmouse middle= button=E2=80=9D enable you to enter forms. You may use the prefix arg =E2=80=9C2=E2=80=9D or =E2=80=9CCtrl+u Ctrl+= u=E2=80=9D to make a new session. Keypad Shift+Enter Display the page of the link in a new session. If the region is active, visit all the links within the region. Shift+Mouse Middle Button Display the page of the link in a new session by mouse. Ctrl+c Ctrl+c Submit the form at point. R Reload the current page. r Redisplay the current page. C t Redisplay the page, specifying a content type. C c Redisplay the current page, specifying a charset. C C Redisplay the current page and reset the user-specified charset and content type. Xah =E2=88=91 http://xahlee.org/ =E2=98=84