From 4e19eff09a43e290f20169b57e2b623d63a954f9 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Fri, 20 May 2005 13:33:13 +0000 Subject: [PATCH] (vhdl-font-lock-match-item): Simplify regexp. --- lisp/ChangeLog | 64 ++++++++++++++++++++----------------- lisp/progmodes/vhdl-mode.el | 6 ++-- 2 files changed, 37 insertions(+), 33 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 8c7da4e15bd..38180a6ec96 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,12 @@ +2005-05-20 Stefan Monnier + + * progmodes/vhdl-mode.el (vhdl-font-lock-match-item): Simplify regexp. + + * progmodes/sh-script.el (sh-mode, sh-get-word): Minor regexp fixes. + + * font-lock.el (lisp-font-lock-keywords-2): Don't error. + Minor regexp-optimization. + 2005-05-20 Carsten Dominik * textmodes/org.el (org-agenda-toggle-time-grid): New command. @@ -5,7 +14,7 @@ (org-agenda-add-time-grid-maybe): New function. (org-agenda): Call `org-agenda-add-time-grid-maybe'. (org-table-create): `dotimes' instead of `mapcar'. - (org-xor): Simplified implementation. + (org-xor): Simplify implementation. (org-agenda): `inhibit-redisplay' turned on. (org-agenda-change-all-lines): Use `org-format-agenda-item' to get a consistent line after a state change. @@ -19,8 +28,7 @@ 2005-05-20 Juanma Barranquero - * subr.el (send-string, send-region): - Remove obsolescence declaration. + * subr.el (send-string, send-region): Remove obsolescence declaration. (window-dot, set-window-dot, read-input, show-buffer) (eval-current-buffer, string-to-int): Add release number to obsolescence declarations. @@ -157,8 +165,8 @@ 2005-05-18 Jay Belanger - * calc/calc-help.el (calc-s-prefix-help): Add - `calc-copy-special-constant' to help string. + * calc/calc-help.el (calc-s-prefix-help): + Add `calc-copy-special-constant' to help string. 2005-05-18 Luc Teirlinck @@ -171,8 +179,8 @@ 2005-05-18 Carsten Dominik - * textmodes/reftex-vars.el (reftex-cite-format-builtin): Support - for jurabib. + * textmodes/reftex-vars.el (reftex-cite-format-builtin): + Support for jurabib. * textmodes/reftex.el (featurep): Define aliases for overlay commands, for XEmacs compatibility, and use these aliases in @@ -183,8 +191,8 @@ (reftex-access-search-path): Use `reftex-uniquify' instead of `reftex-uniq' - * textmodes/reftex-sel.el (reftex-select-unmark): Overlay - `before-string' property modification enables for Emacs as well. + * textmodes/reftex-sel.el (reftex-select-unmark): + Overlay `before-string' property modification enables for Emacs as well. (reftex-select-item): Use `reftex-delete-overlay'. (reftex-select-mark): Use `reftex-make-overlay' and `reftex-overlay-put'. @@ -219,8 +227,7 @@ * progmodes/prolog.el (inferior-prolog-mode): Doc fix. (prolog-consult-region): Replace `send-string' by - `process-send-string'; replace `send-region' by - `process-send-region'. + `process-send-string'; replace `send-region' by `process-send-region'. * progmodes/delphi.el (delphi-log-msg): Replace `set-window-dot' by `set-window-point'. @@ -251,8 +258,8 @@ loop. It should also be more efficient, because first it only searches for `:', instead of applying the very complex regexp. (makefile-mode): Cancel `font-lock-support-mode', because blocks - to be fontified in one piece can be too long for JIT. Makefiles - are never *that* big. + to be fontified in one piece can be too long for JIT. + Makefiles are never *that* big. 2005-05-17 Reiner Steib @@ -278,8 +285,8 @@ 2005-05-16 Daniel Pfeiffer - * font-lock.el (lisp-font-lock-keywords-1): Set - `font-lock-negation-char-face' for [^...] char group. + * font-lock.el (lisp-font-lock-keywords-1): + Set `font-lock-negation-char-face' for [^...] char group. (lisp-font-lock-keywords-2): Highlight regexp's \\( \\| \\). * progmodes/make-mode.el (makefile-dependency-regex): Turn it into @@ -293,11 +300,10 @@ might be the same one to be skipped by the initial [^$], leading to an overlooked variable use. (makefile-make-font-lock-keywords): Remove two parameters, which - are now variables that some of the modes set locally. Handle - dependency and rule action matching through functions, because + are now variables that some of the modes set locally. + Handle dependency and rule action matching through functions, because regexps alone match too often. Dependency matching now comes - last, so it can check, whether a colon already matched something - else. + last, so it can check, whether a colon already matched something else. (makefile-mode): Inform that font-lock improves makefile parsing capabilities. (makefile-match-dependency, makefile-match-action): New functions. @@ -382,8 +388,8 @@ (reftex-bib-sort-year-reverse, reftex-format-citation): * textmodes/reftex-parse.el (reftex-init-section-numbers) (reftex-section-number): - * textmodes/texinfmt.el (texinfo-paragraphindent): Replace - `string-to-int' by `string-to-number'. + * textmodes/texinfmt.el (texinfo-paragraphindent): + Replace `string-to-int' by `string-to-number'. * international/latexenc.el: Add page marker to force the "Local Variables:" string out of the last page. @@ -491,23 +497,22 @@ (tramp-pre-connection): Add parameter CHUNKSIZE. Make local variable `tramp-chunksize'. Change callees. (tramp-open-connection-setup-interactive-shell): Check remote host - for buggy `send-process-string' implementation. Set - `tramp-chunksize' if found. Reported by Michael Kifer + for buggy `send-process-string' implementation. + Set `tramp-chunksize' if found. Reported by Michael Kifer (and a lot of other people all the years). (tramp-handle-shell-command): `insert-buffer' cannot be used because the contents of the Tramp buffer is changed before insertion (`expand-file' and alike). Reported by Fr,Ai(Bd,Ai(Bric Bothamy . (tramp-set-auto-save): Actions should be done for Tramp file name - handler only. Ange-FTP has its own auto-save mechanism. Reported - by Richard G. Bielawski . + handler only. Ange-FTP has its own auto-save mechanism. + Reported by Richard G. Bielawski . (tramp-set-auto-save-file-modes): Set file modes of `buffer-auto-save-file-name' to ?\600 as fallback solution. Reported by Ferenc Wagner . (tramp-bug): Remove obsolete variable. (tramp-append-tramp-buffers): Rewrite partly. More suitable check - for presence of `mml-mode'. Make it running for older Emacsen as - well. + for presence of `mml-mode'. Make it running for older Emacsen as well. 2005-05-14 John Paul Wallington @@ -559,15 +564,14 @@ 2005-05-13 Matt Hodges - * tmm.el (tmm-get-keymap): Include only active menus and menu - items. + * tmm.el (tmm-get-keymap): Include only active menus and menu items. * emacs-lisp/easymenu.el (easy-menu-define): Doc fixes. 2005-05-13 Jan Dj,Ad(Brv * dired.el (dired-mode): make-variable-buffer-local => - make-local-variable + make-local-variable. 2005-05-13 YAMAMOTO Mitsuharu diff --git a/lisp/progmodes/vhdl-mode.el b/lisp/progmodes/vhdl-mode.el index 12f04895f98..f840ef356d9 100644 --- a/lisp/progmodes/vhdl-mode.el +++ b/lisp/progmodes/vhdl-mode.el @@ -12364,8 +12364,8 @@ File statistics: \"%s\"\n\ (save-match-data (goto-char (match-end 1)) ;; move to next item - (if (looking-at "\\(\\s-*,\\)") - (goto-char (match-end 1)) + (if (looking-at "\\s-*,") + (goto-char (match-end 0)) (end-of-line) t)))) (error t))) @@ -12736,7 +12736,7 @@ This does background highlighting of translate-off regions.") '(font-lock-syntactic-keywords . vhdl-font-lock-syntactic-keywords))) (when (fboundp 'font-lock-unset-defaults) (font-lock-unset-defaults)) ; not implemented in XEmacs - (font-lock-set-defaults) + (font-lock-set-defaults) ;What for? --Stef (font-lock-mode nil) (font-lock-mode t)) -- 2.39.2