unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Fontifying one char strings.
@ 2005-10-16 15:16 Michael Cadilhac
  2005-10-16 15:29 ` Jesper Harder
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Cadilhac @ 2005-10-16 15:16 UTC (permalink / 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-10-17  4:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-16 15:16 Fontifying one char strings Michael Cadilhac
2005-10-16 15:29 ` Jesper Harder
2005-10-16 15:49   ` Michael Cadilhac
2005-10-17  4:33   ` Richard M. Stallman

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).