From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: show minor-mode menu when you click its mode-line lighter Date: Mon, 8 Oct 2007 09:46:51 -0700 Message-ID: References: <87fy0ly5yf.fsf@cadilhac.name> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0047_01C80990.26D7DA00" X-Trace: sea.gmane.org 1191862157 9086 80.91.229.12 (8 Oct 2007 16:49:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 8 Oct 2007 16:49:17 +0000 (UTC) Cc: emacs-devel@gnu.org To: =?utf-8?Q?=22Micha=C3=ABl=22_Cadilhac?= , Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 08 18:49:12 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Ievmw-0000if-MJ for ged-emacs-devel@m.gmane.org; Mon, 08 Oct 2007 18:49:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ievmr-0005Hs-6y for ged-emacs-devel@m.gmane.org; Mon, 08 Oct 2007 12:48:57 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ievmn-0005GS-Cs for emacs-devel@gnu.org; Mon, 08 Oct 2007 12:48:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ievmk-0005Fj-Q0 for emacs-devel@gnu.org; Mon, 08 Oct 2007 12:48:53 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ievmk-0005Fe-L7 for emacs-devel@gnu.org; Mon, 08 Oct 2007 12:48:50 -0400 Original-Received: from rgminet01.oracle.com ([148.87.113.118]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Ievmf-0001oG-JD; Mon, 08 Oct 2007 12:48:45 -0400 Original-Received: from rgmgw2.us.oracle.com (rgmgw2.us.oracle.com [138.1.186.111]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id l98Gm9Gt029737; Mon, 8 Oct 2007 10:48:10 -0600 Original-Received: from acsmt350.oracle.com (acsmt350.oracle.com [141.146.40.150]) by rgmgw2.us.oracle.com (Switch-3.2.4/Switch-3.2.4) with ESMTP id l98G3M0H016587; Mon, 8 Oct 2007 10:48:09 -0600 Original-Received: from dhcp-4op11-4op12-west-130-35-178-158.us.oracle.com by acsmt351.oracle.com with ESMTP id 3275571261191862009; Mon, 08 Oct 2007 09:46:49 -0700 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) Importance: Normal In-Reply-To: <87fy0ly5yf.fsf@cadilhac.name> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-Detected-Kernel: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:80411 Archived-At: This is a multi-part message in MIME format. ------=_NextPart_000_0047_01C80990.26D7DA00 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable > From: "Micha=C3=ABl" Cadilhac Sent: Monday, October 08, 2007 8:36 AM > Well, I believe people around here don't use the mouse on a daily = basis, > we pretty much have all years of practice, and learned that the mousy > thing isn't the most efficient way to use Emacs. This is more a = feature > for novice users, and they don't usually take part in devel = discussions. >=20 > But we seem to agree (at least Dan, Drew and I) that this feature = would > be a good thing, as it improves consistency. A novice user can be > disappointed to see that although the cursor's shape changes when = moving > to a minor mode modeline item, nothing can be triggered. >=20 > Again, my .2=E2=82=AC. Attached are doc (texinfo) patches for this feature. Someone might want = to check that I used @samp correctly etc. ------=_NextPart_000_0047_01C80990.26D7DA00 Content-Type: application/octet-stream; name="custom-2007-10-08a-texi.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="custom-2007-10-08a-texi.patch" *** custom-2007-10-08a.texi Mon Oct 8 09:34:00 2007=0A= --- custom-patched-2007-10-08a.texi Mon Oct 8 09:36:26 2007=0A= ***************=0A= *** 54,62 ****=0A= Minor modes are optional features which you can turn on or off. For=0A= example, Auto Fill mode is a minor mode in which @key{SPC} breaks lines=0A= between words as you type. All the minor modes are independent of each=0A= ! other and of the selected major mode. Most minor modes say in the mode=0A= ! line when they are enabled; for example, @samp{Fill} in the mode line = means=0A= ! that Auto Fill mode is enabled.=0A= =0A= You should append @code{-mode} to the name of a minor mode to=0A= produce the name of the command that turns the mode on or off. Thus,=0A= --- 54,68 ----=0A= Minor modes are optional features which you can turn on or off. For=0A= example, Auto Fill mode is a minor mode in which @key{SPC} breaks lines=0A= between words as you type. All the minor modes are independent of each=0A= ! other and of the selected major mode. =0A= ! =0A= ! Many minor modes show an indicator in the mode line when they are=0A= ! enabled. For example, @samp{Fill} in the mode line means that Auto Fill=0A= ! mode is enabled. Some minor modes provide a menu for accessing their=0A= ! options and commands. The menu is typically available in the menu bar=0A= ! when the minor mode is enabled. It is also available by clicking=0A= ! (@samp{mouse-1}) the minor mode's indicator in the mode line, and this = is=0A= ! so whether or not the menu bar is enabled.=0A= =0A= You should append @code{-mode} to the name of a minor mode to=0A= produce the name of the command that turns the mode on or off. Thus,=0A= =0A= ------=_NextPart_000_0047_01C80990.26D7DA00 Content-Type: application/octet-stream; name="screen-2007-10-08-texi.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="screen-2007-10-08-texi.patch" *** screen-2007-10-08a.texi Mon Oct 8 09:20:56 2007=0A= --- screen-patched-2007-10-08a.texi Mon Oct 8 09:24:18 2007=0A= ***************=0A= *** 258,263 ****=0A= --- 258,267 ----=0A= Word Abbrev mode is on. @samp{Ovwrt} means that Overwrite mode is on.=0A= @xref{Minor Modes}, for more information. =0A= =0A= + If the major mode or a minor mode has a menu-bar menu, then you can=0A= + click @samp{mouse-1} on the mode's mode-line indicator to pop up that=0A= + menu. This is so, whether or not the menu bar is visible.=0A= + =0A= @samp{Narrow} means that the buffer being displayed has editing=0A= restricted to only a portion of its text. (This is not really a minor=0A= mode, but is like one.) @xref{Narrowing}. @samp{Def} means that a=0A= =0A= ------=_NextPart_000_0047_01C80990.26D7DA00 Content-Type: application/octet-stream; name="frames-2007-10-08a-texi.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="frames-2007-10-08a-texi.patch" *** frames-2007-10-08a.texi Mon Oct 8 09:38:46 2007=0A= --- frames-patched-2007-10-08a.texi Mon Oct 8 09:41:28 2007=0A= ***************=0A= *** 926,932 ****=0A= terminals, where this makes one additional line available for text.=0A= If the menu bar is off, you can still pop up a menu of its contents=0A= with @kbd{C-Mouse-3} on a display which supports pop-up menus.=0A= ! @xref{Menu Mouse Clicks}.=0A= =0A= @xref{Menu Bar}, for information on how to invoke commands with the=0A= menu bar. @xref{X Resources}, for how to customize the menu bar=0A= --- 926,934 ----=0A= terminals, where this makes one additional line available for text.=0A= If the menu bar is off, you can still pop up a menu of its contents=0A= with @kbd{C-Mouse-3} on a display which supports pop-up menus.=0A= ! @xref{Menu Mouse Clicks}. In addition, if the minor mode is indicated=0A= ! in the mode line and it has a menu, you can click @samp{mouse-1} on its=0A= ! indicator to pop up the minor-mode menu.=0A= =0A= @xref{Menu Bar}, for information on how to invoke commands with the=0A= menu bar. @xref{X Resources}, for how to customize the menu bar=0A= =0A= ------=_NextPart_000_0047_01C80990.26D7DA00 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel ------=_NextPart_000_0047_01C80990.26D7DA00--