From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jambunathan K Newsgroups: gmane.emacs.help Subject: Re: backquote quote pair notation: What does it mean in Emacsdocument? Date: Thu, 20 Dec 2012 02:01:56 +0530 Message-ID: <87d2y54wcj.fsf@gmail.com> References: <878v8v8tsd.fsf@gmail.com> <855E7E03363249B6874C759B0A496ACF@us.oracle.com> <87hanj428m.fsf@gavenkoa.example.com> <87pq279nv1.fsf@gmail.com> <87y5gt4xxg.fsf@gavenkoa.example.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1355948922 14399 80.91.229.3 (19 Dec 2012 20:28:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 19 Dec 2012 20:28:42 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Oleksandr Gavenko Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 19 21:28:55 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 1TlQG6-0001Ad-Ci for geh-help-gnu-emacs@m.gmane.org; Wed, 19 Dec 2012 21:28:54 +0100 Original-Received: from localhost ([::1]:34857 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TlQFs-0007sP-P2 for geh-help-gnu-emacs@m.gmane.org; Wed, 19 Dec 2012 15:28:40 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:41669) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TlQFl-0007s8-4L for help-gnu-emacs@gnu.org; Wed, 19 Dec 2012 15:28:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TlQFj-0003PF-9n for help-gnu-emacs@gnu.org; Wed, 19 Dec 2012 15:28:33 -0500 Original-Received: from mail-pa0-f44.google.com ([209.85.220.44]:41354) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TlQFj-0003P3-3s for help-gnu-emacs@gnu.org; Wed, 19 Dec 2012 15:28:31 -0500 Original-Received: by mail-pa0-f44.google.com with SMTP id hz11so1568086pad.17 for ; Wed, 19 Dec 2012 12:28:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:in-reply-to:references:user-agent :date:message-id:mime-version:content-type; bh=4lOJPEyzF0eUoL1n7PZnj3vee/cp0qSkSFdI0cwPElg=; b=YvJaGm8KzGtR09/XWvTKJCEDRd2Ug1koJuF+yUezwt5k46qqzVlKipLgaMOcxbGdSa noaj8Z20O/btVkhgTnXSNS/0BD3K8xuncXtmDQuTtQC5yr/qoivGHfSxMLSXqIMf56VQ rQYIzG6SyffYp4MeeVsUSTek8IhJF9fOrMWSLz0zLTnJOXniXcurxPuKI9BaFumS1kQ4 2qllL0CnvvOKZ+bC4PfOZVo/yGQoh07/TUWrBdyH+LoOfYNqfoz66vncLDKXaTkGyth+ OeN+5b8xdQRIv/MNi7bj1OQYD0+oIsUXFlvP4IvLhnF8P4YPc371VPqyAgtkUyp6IDyG bx/Q== X-Received: by 10.68.134.132 with SMTP id pk4mr22133036pbb.38.1355948910352; Wed, 19 Dec 2012 12:28:30 -0800 (PST) Original-Received: from debian-6.05 ([115.184.46.101]) by mx.google.com with ESMTPS id oj1sm3645301pbb.19.2012.12.19.12.28.26 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 19 Dec 2012 12:28:28 -0800 (PST) In-Reply-To: <87y5gt4xxg.fsf@gavenkoa.example.com> (Oleksandr Gavenko's message of "Wed, 19 Dec 2012 21:57:47 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.220.44 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:88231 Archived-At: Oleksandr Gavenko writes: > On 2012-12-18, Jambunathan K wrote: > >> Here is a simple one that I cooked up. It can be simplified and be made >> more elegant though. >> >> (add-hook 'Info-mode-hook >> (lambda nil >> ;; Add a FIXME face. >> (font-lock-add-keywords >> nil '(("\\(?:`[^']+'\\)" 0 'font-lock-variable-name-face t) >> ("\\(?:\"[^\"]*\"\\)" 0 'font-lock-string-face t))))) > > Why do you use "shy group" in refex? You reference to all excretion in any > case... Regexp is created with `rx-to-string'. Above recipe is something that works. You shouldn't dissect in to it too much. For my previous recipe on `rx-to-string', see http://lists.gnu.org/archive/html/help-gnu-emacs/2012-12/msg00085.html --