Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
6f0e09d4
Commit
6f0e09d4
authored
Jun 24, 1997
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(beginning-of-sexp): New function.
(bounds-of-thing-at-point): Fix typo in computing real-beg.
parent
53520519
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
lisp/thingatpt.el
lisp/thingatpt.el
+10
-1
No files found.
lisp/thingatpt.el
View file @
6f0e09d4
...
...
@@ -114,7 +114,7 @@ of the textual entity that was found."
(
real-beg
(
progn
(
funcall
(
or
(
get
thing
'
end
-op
)
(
or
(
get
thing
'
beginning
-op
)
(
function
(
lambda
()
(
forward-thing
thing
-1
)))))
(
point
))))
(
if
(
and
real-beg
end
(
<=
real-beg
orig
)
(
<=
orig
end
))
...
...
@@ -173,6 +173,15 @@ a symbol as a valid THING."
(
put
'sexp
'end-op
'end-of-sexp
)
(
defun
beginning-of-sexp
()
(
let
((
char-syntax
(
char-syntax
(
char-before
(
point
)))))
(
if
(
or
(
eq
char-syntax
?\(
)
(
and
(
eq
char-syntax
?\"
)
(
in-string-p
)))
(
forward-char
-1
)
(
forward-sexp
-1
))))
(
put
'sexp
'beginning-op
'beginning-of-sexp
)
;; Lists
(
put
'list
'end-op
(
function
(
lambda
()
(
up-list
1
))))
...
...
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