From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: define-minor-mode: what's the purpose of the BODY argument? Date: Fri, 24 Aug 2012 15:24:24 -0700 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1345847084 16819 80.91.229.3 (24 Aug 2012 22:24:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 24 Aug 2012 22:24:44 +0000 (UTC) To: "'Raffaele Ricciardi'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Aug 25 00:24:45 2012 Return-path: Envelope-to: geh-help-gnu-emacs@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 1T52J2-0002z3-5x for geh-help-gnu-emacs@m.gmane.org; Sat, 25 Aug 2012 00:24:44 +0200 Original-Received: from localhost ([::1]:38146 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T52J0-0002cT-D0 for geh-help-gnu-emacs@m.gmane.org; Fri, 24 Aug 2012 18:24:42 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42056) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T52Is-0002cC-Ff for help-gnu-emacs@gnu.org; Fri, 24 Aug 2012 18:24:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T52Iq-0003LK-BO for help-gnu-emacs@gnu.org; Fri, 24 Aug 2012 18:24:34 -0400 Original-Received: from rcsinet15.oracle.com ([148.87.113.117]:39636) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T52Iq-0003LG-4R for help-gnu-emacs@gnu.org; Fri, 24 Aug 2012 18:24:32 -0400 Original-Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by rcsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q7OMOTP8011924 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 24 Aug 2012 22:24:30 GMT Original-Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q7OMOTB1025460 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 24 Aug 2012 22:24:29 GMT Original-Received: from abhmt114.oracle.com (abhmt114.oracle.com [141.146.116.66]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q7OMOTSO016027; Fri, 24 Aug 2012 17:24:29 -0500 Original-Received: from dradamslap1 (/10.159.173.105) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 24 Aug 2012 15:24:29 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Thread-Index: Ac179wQgFbr6/cT0TTypSsr8i7kgSwGT0ruw X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 148.87.113.117 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:86498 Archived-At: FYI - Info+ fontifies entries for reference items (functions, macros, commands, special forms, constants, options, other variables), and that includes their parameters, even those on continuation lines. http://www.emacswiki.org/emacs/InfoPlus > I've written a snippet of code to highlight arguments in Info > mode, too, and I'm attaching it. Arguments are empirically > identified as symbols of two or more uppercase > letters, digits or dashes, starting with a letter. > > (defun rr-Info-mode-highlight-argument-names () > "Highlight argument names as they are highlighted in Help mode." > (font-lock-add-keywords nil > '(("\\_<[A-Z][-A-Z[:digit:]]+\\_>" > . font-lock-comment-face)))) > (add-hook 'Info-mode-hook #'rr-Info-mode-highlight-argument-names)