unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* syntax highlight fix for add-log.el
@ 2005-04-03  2:16 Marcelo Toledo
  2005-04-03 21:19 ` Richard Stallman
  2005-04-04 10:45 ` Lute Kamstra
  0 siblings, 2 replies; 5+ messages in thread
From: Marcelo Toledo @ 2005-04-03  2:16 UTC (permalink / 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

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

end of thread, other threads:[~2005-04-04 15:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-03  2:16 syntax highlight fix for add-log.el Marcelo Toledo
2005-04-03 21:19 ` Richard Stallman
2005-04-03 22:47   ` Marcelo Toledo
2005-04-04 10:45 ` Lute Kamstra
2005-04-04 15:51   ` Marcelo Toledo

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