diff options
| -rw-r--r-- | etc/NEWS | 3 | ||||
| -rw-r--r-- | lisp/ChangeLog | 22 | ||||
| -rw-r--r-- | lisp/subr.el | 12 |
3 files changed, 28 insertions, 9 deletions
| @@ -131,6 +131,9 @@ but obeys file handlers. The file handler is chosen based on | |||
| 131 | With this paramter passed non-nil, it is checked whether a remote | 131 | With this paramter passed non-nil, it is checked whether a remote |
| 132 | connection has been established already. | 132 | connection has been established already. |
| 133 | 133 | ||
| 134 | ** The two new functions `looking-at-p' and `string-match-p' can do | ||
| 135 | the same matching as `looking-at' and `string-match' without changing | ||
| 136 | the match data. | ||
| 134 | 137 | ||
| 135 | * New Packages for Lisp Programming in Emacs 23.1 | 138 | * New Packages for Lisp Programming in Emacs 23.1 |
| 136 | 139 | ||
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 58cfca107cb..4a95fd8d96d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,13 +1,6 @@ | |||
| 1 | 2007-07-08 Katsumi Yamaoka <yamaoka@jpl.org> | 1 | 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com> |
| 2 | |||
| 3 | * cus-start.el (file-coding-system-alist): Fix custom type. | ||
| 4 | |||
| 5 | 2007-07-08 Chong Yidong <cyd@stupidchicken.com> | ||
| 6 | 2 | ||
| 7 | * longlines.el (longlines-wrap-region): Avoid marking buffer as | 3 | * subr.el (looking-at-p, string-match-p): New functions. |
| 8 | modified. | ||
| 9 | (longlines-auto-wrap, longlines-window-change-function): Remove | ||
| 10 | unnecessary calls to set-buffer-modified-p. | ||
| 11 | 4 | ||
| 12 | 2007-07-09 Reiner Steib <Reiner.Steib@gmx.de> | 5 | 2007-07-09 Reiner Steib <Reiner.Steib@gmx.de> |
| 13 | 6 | ||
| @@ -31,6 +24,17 @@ | |||
| 31 | 24 | ||
| 32 | * cus-start.el (file-coding-system-alist): Fix custom type. | 25 | * cus-start.el (file-coding-system-alist): Fix custom type. |
| 33 | 26 | ||
| 27 | 2007-07-08 Chong Yidong <cyd@stupidchicken.com> | ||
| 28 | |||
| 29 | * longlines.el (longlines-wrap-region): Avoid marking buffer as | ||
| 30 | modified. | ||
| 31 | (longlines-auto-wrap, longlines-window-change-function): Remove | ||
| 32 | unnecessary calls to set-buffer-modified-p. | ||
| 33 | |||
| 34 | 2007-07-08 Katsumi Yamaoka <yamaoka@jpl.org> | ||
| 35 | |||
| 36 | * cus-start.el (file-coding-system-alist): Fix custom type. | ||
| 37 | |||
| 34 | 2007-07-08 Stefan Monnier <monnier@iro.umontreal.ca> | 38 | 2007-07-08 Stefan Monnier <monnier@iro.umontreal.ca> |
| 35 | 39 | ||
| 36 | * vc-cvs.el (vc-cvs-revert): Use vc-default-revert. | 40 | * vc-cvs.el (vc-cvs-revert): Use vc-default-revert. |
diff --git a/lisp/subr.el b/lisp/subr.el index f890caf66e4..3804624b0b9 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -2668,6 +2668,18 @@ of a match for REGEXP." | |||
| 2668 | (looking-at (concat "\\(?:" regexp "\\)\\'"))))) | 2668 | (looking-at (concat "\\(?:" regexp "\\)\\'"))))) |
| 2669 | (not (null pos)))) | 2669 | (not (null pos)))) |
| 2670 | 2670 | ||
| 2671 | (defsubst looking-at-p (regexp) | ||
| 2672 | "\ | ||
| 2673 | Same as `looking-at' except this function does not change the match data." | ||
| 2674 | (let ((inhibit-changing-match-data t)) | ||
| 2675 | (looking-at regexp))) | ||
| 2676 | |||
| 2677 | (defsubst string-match-p (regexp string &optional start) | ||
| 2678 | "\ | ||
| 2679 | Same as `string-match' except this function does not change the match data." | ||
| 2680 | (let ((inhibit-changing-match-data t)) | ||
| 2681 | (string-match regexp string start))) | ||
| 2682 | |||
| 2671 | (defun subregexp-context-p (regexp pos &optional start) | 2683 | (defun subregexp-context-p (regexp pos &optional start) |
| 2672 | "Return non-nil if POS is in a normal subregexp context in REGEXP. | 2684 | "Return non-nil if POS is in a normal subregexp context in REGEXP. |
| 2673 | A subregexp context is one where a sub-regexp can appear. | 2685 | A subregexp context is one where a sub-regexp can appear. |