all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Marcelo Toledo <marcelo@marcelotoledo.org>
Subject: syntax highlight fix for add-log.el
Date: Sat, 02 Apr 2005 23:16:36 -0300	[thread overview]
Message-ID: <87mzsgr4e3.fsf@kali.intranet> (raw)

The manual describing a Change Log entry, says: (...) "Aside from these
header lines, every line in the change log starts with a space or a
tab.".

The font-lock was not highlighting lines started with spaces, added
support for it and corrected an `indent-region' call.

Can I install it?

Index: lisp/add-log.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/add-log.el,v
retrieving revision 1.156
diff -c -r1.156 add-log.el
*** lisp/add-log.el	21 Mar 2005 14:37:35 -0000	1.156
--- lisp/add-log.el	3 Apr 2005 02:12:14 -0000
***************
*** 225,231 ****
        (2 'change-log-email-face)))
      ;;
      ;; File names.
!     ("^\t\\* \\([^ ,:([\n]+\\)"
       (1 'change-log-file-face)
       ;; Possibly further names in a list:
       ("\\=, \\([^ ,:([\n]+\\)" nil nil (1 'change-log-file-face))
--- 225,231 ----
        (2 'change-log-email-face)))
      ;;
      ;; File names.
!     ("^\\(?: \\{8\\}\\|\t\\)\\* \\([^ ,:([\n]+\\)"
       (1 'change-log-file-face)
       ;; Possibly further names in a list:
       ("\\=, \\([^ ,:([\n]+\\)" nil nil (1 'change-log-file-face))
***************
*** 310,316 ****
  			  (mark) (point)))
      (when (fboundp 'log-edit-previous-comment)
        (log-edit-previous-comment arg)
!       (indent-region (point-min) (point-max))
        (goto-char (point-min))
        (unless (save-restriction (widen) (bolp))
  	(delete-region (point) (progn (skip-chars-forward " \t\n") (point))))
--- 310,316 ----
  			  (mark) (point)))
      (when (fboundp 'log-edit-previous-comment)
        (log-edit-previous-comment arg)
!       (indent-region (point-min) (point-max) nil)
        (goto-char (point-min))
        (unless (save-restriction (widen) (bolp))
  	(delete-region (point) (progn (skip-chars-forward " \t\n") (point))))

-- 
Marcelo Toledo
marcelo@marcelotoledo.org
http://www.marcelotoledo.org
Mobile: 55 71 9116-1101

             reply	other threads:[~2005-04-03  2:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-03  2:16 Marcelo Toledo [this message]
2005-04-03 21:19 ` syntax highlight fix for add-log.el Richard Stallman
2005-04-03 22:47   ` Marcelo Toledo
2005-04-04 10:45 ` Lute Kamstra
2005-04-04 15:51   ` Marcelo Toledo

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

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

  git send-email \
    --in-reply-to=87mzsgr4e3.fsf@kali.intranet \
    --to=marcelo@marcelotoledo.org \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.