From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Deniz Dogan Newsgroups: gmane.emacs.devel Subject: Incorrect documentation for hi-lock-mode? Date: Thu, 31 Dec 2009 20:18:26 +0100 Message-ID: <7b501d5c0912311118w64463e38xfef269fbb463a1bc@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1262287143 10678 80.91.229.12 (31 Dec 2009 19:19:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 31 Dec 2009 19:19:03 +0000 (UTC) To: Emacs-Devel devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 31 20:18:56 2009 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 1NQQXu-0005vp-Uc for ged-emacs-devel@m.gmane.org; Thu, 31 Dec 2009 20:18:55 +0100 Original-Received: from localhost ([127.0.0.1]:54335 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NQQXv-0003kv-AH for ged-emacs-devel@m.gmane.org; Thu, 31 Dec 2009 14:18:55 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NQQXq-0003ki-JX for emacs-devel@gnu.org; Thu, 31 Dec 2009 14:18:50 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NQQXp-0003kT-Gs for emacs-devel@gnu.org; Thu, 31 Dec 2009 14:18:50 -0500 Original-Received: from [199.232.76.173] (port=35428 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NQQXp-0003kN-D2 for emacs-devel@gnu.org; Thu, 31 Dec 2009 14:18:49 -0500 Original-Received: from ey-out-1920.google.com ([74.125.78.145]:41712) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NQQXp-000843-A6 for emacs-devel@gnu.org; Thu, 31 Dec 2009 14:18:49 -0500 Original-Received: by ey-out-1920.google.com with SMTP id 4so1385516eyg.34 for ; Thu, 31 Dec 2009 11:18:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:from:date:message-id :subject:to:content-type; bh=fw0rVN8c06G9TBC4tCFAW5RUeOne8mG2GBlYOMp8wes=; b=ihIzawKcpgUt/1hsqjfnMNS07UrRxm60TRASqIcVD7UwfH6k25yVTLFS8erTHoIWXG Y4HGcZfSwHdAtNadCT4MkrEb8KdfCfk7GdtOyen5cZ1YmXsZ7T1xWwA/ugl4ntXK17oN Ek1X8zb1RwYa95pZDwb9L2PuctzDxXFbLzLkY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=bPxRffgBVJY5bEDyaCblztm+SCQdM4g/vs5A1AbklC+wzeJva2YhKVGYW7KFkm5jRf uBpSmOI2renJfyI7oasNXSBWyl5KY6sBtedUdf6gzhohVAgS10ALxy9OTj/bZcYwj629 05FDzw/lVwWui+Bc61N4fnPPA8Xz4AWHRaqug= Original-Received: by 10.213.103.9 with SMTP id i9mr9305980ebo.16.1262287127169; Thu, 31 Dec 2009 11:18:47 -0800 (PST) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:119165 Archived-At: In "(emacs) Highlight Interactively" I read the following: Hi Lock mode works like Font Lock mode (*note Font Lock::), except that you specify explicitly the regular expressions to highlight. You control them with these commands: `C-x w h REGEXP FACE ' Highlight text that matches REGEXP using face FACE (`highlight-regexp'). The highlighting will remain as long as the buffer is loaded. For example, to highlight all occurrences of the word "whim" using the default face (a yellow background) `C-x w h whim '. Any face can be used for highlighting, Hi Lock provides several of its own and these are pre-loaded into a list of default values. While being prompted for a face use `M-n' and `M-p' to cycle through them. You can use this command multiple times, specifying various regular expressions to highlight in different ways. It seems that this is incorrect. "C-x w" is undefined in the latest Emacs. The documentation for the function `hi-lock-mode' says that the bindings are the old familiar "M-s h r" etc. Is the documentation above old and incorrect or am I missing something? -- Deniz Dogan