Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
45595a4f
Commit
45595a4f
authored
Jul 10, 2007
by
Richard M. Stallman
Browse files
(looking-at-p, string-match-p): New functions.
parent
ef887810
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
9 deletions
+28
-9
etc/NEWS
etc/NEWS
+3
-0
lisp/ChangeLog
lisp/ChangeLog
+13
-9
lisp/subr.el
lisp/subr.el
+12
-0
No files found.
etc/NEWS
View file @
45595a4f
...
...
@@ -131,6 +131,9 @@ but obeys file handlers. The file handler is chosen based on
With this paramter passed non-nil, it is checked whether a remote
connection has been established already.
** The two new functions `looking-at-p' and `string-match-p' can do
the same matching as `looking-at' and `string-match' without changing
the match data.
* New Packages for Lisp Programming in Emacs 23.1
...
...
lisp/ChangeLog
View file @
45595a4f
2007-07-08 Katsumi Yamaoka <yamaoka@jpl.org>
* cus-start.el (file-coding-system-alist): Fix custom type.
2007-07-08 Chong Yidong <cyd@stupidchicken.com>
2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
* longlines.el (longlines-wrap-region): Avoid marking buffer as
modified.
(longlines-auto-wrap, longlines-window-change-function): Remove
unnecessary calls to set-buffer-modified-p.
* subr.el (looking-at-p, string-match-p): New functions.
2007-07-09 Reiner Steib <Reiner.Steib@gmx.de>
...
...
@@ -31,6 +24,17 @@
* cus-start.el (file-coding-system-alist): Fix custom type.
2007-07-08 Chong Yidong <cyd@stupidchicken.com>
* longlines.el (longlines-wrap-region): Avoid marking buffer as
modified.
(longlines-auto-wrap, longlines-window-change-function): Remove
unnecessary calls to set-buffer-modified-p.
2007-07-08 Katsumi Yamaoka <yamaoka@jpl.org>
* cus-start.el (file-coding-system-alist): Fix custom type.
2007-07-08 Stefan Monnier <monnier@iro.umontreal.ca>
* vc-cvs.el (vc-cvs-revert): Use vc-default-revert.
...
...
lisp/subr.el
View file @
45595a4f
...
...
@@ -2668,6 +2668,18 @@ of a match for REGEXP."
(
looking-at
(
concat
"\\(?:"
regexp
"\\)\\'"
)))))
(
not
(
null
pos
))))
(
defsubst
looking-at-p
(
regexp
)
"\
Same
as
`
looking-at
'
except
this
function
does
not
change
the
match
data.
"
(let ((inhibit-changing-match-data t))
(looking-at regexp)))
(defsubst string-match-p (regexp string &optional start)
"
\
Same
as
`
string-match
'
except
this
function
does
not
change
the
match
data.
"
(let ((inhibit-changing-match-data t))
(string-match regexp string start)))
(defun subregexp-context-p (regexp pos &optional start)
"
Return
non-nil
if
POS
is
in
a
normal
subregexp
context
in
REGEXP.
A
subregexp
context
is
one
where
a
sub-regexp
can
appear.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment