emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tiny font-lock change to lisp/bs.el


From: Yoni Rabkin
Subject: Re: tiny font-lock change to lisp/bs.el
Date: Thu, 17 Jun 2010 00:33:24 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.96 (gnu/linux)

Yoni Rabkin <address@hidden> writes:

> Hello (I am using GNU Emacs 23.1.96.2),
>
> The font-lock regexp on line 198 of bs.el reads:
>
>     '("^..\\(.*Dired by .*\\)$" 1 font-lock-function-name-face)
>
> But if you make the following modification (as I did in my .emacs):
>
>     (setq dired-listing-switches "-lphaX")
>
> Then the font-lock regexp no longer matches since the word "by" is
> replaced by the value of `dired-listing-switches'.
>
> A fix would be to remove the word "by" from the font-lock regexp:
>
>     '("^..\\(.*Dired .*\\)$" 1 font-lock-function-name-face)

To help this along, here is a bzr patch which does this:

# Bazaar merge directive format 2 (Bazaar 0.90)
# revision_id: address@hidden
# target_branch: http://bzr.savannah.gnu.org/r/emacs/trunk
# testament_sha1: 83a81a6a2fa28bd7d015a1d3ae8c52efc66ba0f2
# timestamp: 2010-06-17 00:26:03 +0300
# source_branch: http://bzr.savannah.gnu.org/r/emacs/trunk
# base_revision_id: address@hidden
#   2tn8nppsq7ej3xlv
# 
# Begin patch
=== modified file 'lisp/bs.el'
--- lisp/bs.el  2010-05-25 02:11:08 +0000
+++ lisp/bs.el  2010-06-16 21:25:48 +0000
@@ -195,7 +195,7 @@
             'font-lock-constant-face
           'font-lock-comment-face))
    ;; Dired-Buffers
-   '("^..\\(.*Dired by .*\\)$" 1 font-lock-function-name-face)
+   '("^..\\(.*Dired .*\\)$" 1 font-lock-function-name-face)
    ;; the star for modified buffers
    '("^.\\(\\*\\) +[^\\*]"     1 font-lock-comment-face))
   "Default font lock expressions for Buffer Selection Menu.")

# Begin bundle
IyBCYXphYXIgcmV2aXNpb24gYnVuZGxlIHY0CiMKQlpoOTFBWSZTWfyi+RwAAX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zFHX4A6xRqir
SxEmFinOdsYNKppDPheca9FgGIFzKnYs9PSDQ71RRWgDAmjaJAAgKQDeHwOysyyoG9C7kinChIfl
F8jg
-- 
   "Cut your own wood and it will warm you twice"

reply via email to

[Prev in Thread] Current Thread [Next in Thread]