unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Cadilhac <michael.cadilhac-@t-lrde.epita.fr>
Subject: Fontifying one char strings.
Date: Sun, 16 Oct 2005 17:16:07 +0200	[thread overview]
Message-ID: <877jcdze4o.fsf@mahaena.lrde> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1483 bytes --]


  Hello !

  In a docstring, if I have :

  "`nil' if blahblah, `t' otherwise.",

  only nil will be fontified with font-lock-constant-face.

  I'm wondering why  this should be that way,  I'm using the following
  patch without being annoyed:

*** emacs/lisp/font-lock.el	2005-10-16 17:07:12.000000000 +0200
--- emacs/lisp/font-lock.el	2005-10-16 17:07:30.000000000 +0200
***************
*** 2077,2083 ****
         ;; Words inside \\[] tend to be for `substitute-command-keys'.
         ("\\\\\\\\\\[\\(\\sw+\\)]" 1 font-lock-constant-face prepend)
         ;; Words inside `' tend to be symbol names.
!        ("`\\(\\sw\\sw+\\)'" 1 font-lock-constant-face prepend)
         ;; Constant values.
         ("\\<:\\sw+\\>" 0 font-lock-builtin-face)
         ;; ELisp and CLisp `&' keywords as types.
--- 2077,2083 ----
         ;; Words inside \\[] tend to be for `substitute-command-keys'.
         ("\\\\\\\\\\[\\(\\sw+\\)]" 1 font-lock-constant-face prepend)
         ;; Words inside `' tend to be symbol names.
!        ("`\\(\\sw+\\)'" 1 font-lock-constant-face prepend)
         ;; Constant values.
         ("\\<:\\sw+\\>" 0 font-lock-builtin-face)
         ;; ELisp and CLisp `&' keywords as types.

-- 
    Michael Cadilhac, a.k.a. Micha [mika] |
                    Epita/LRDE promo 2007 |  Please note that you should
  2 rue de la Convention | 08.70.65.13.14 |  s/-@t-/@/ my mail address.
94270 Le Kremlin Bicetre | 06.23.20.31.30 |

[-- Attachment #1.2: Type: application/pgp-signature, Size: 188 bytes --]

[-- Attachment #2: Type: text/plain, Size: 142 bytes --]

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

             reply	other threads:[~2005-10-16 15:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-16 15:16 Michael Cadilhac [this message]
2005-10-16 15:29 ` Fontifying one char strings Jesper Harder
2005-10-16 15:49   ` Michael Cadilhac
2005-10-17  4:33   ` Richard M. Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877jcdze4o.fsf@mahaena.lrde \
    --to=michael.cadilhac-@t-lrde.epita.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).