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
a1c9b4d0
Commit
a1c9b4d0
authored
Jul 09, 1997
by
Richard M. Stallman
Browse files
(url): Define end-op property again. Wrap end-op
and beginning-op lambdas with `function', not quote.
parent
cf09633a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
lisp/thingatpt.el
lisp/thingatpt.el
+11
-9
No files found.
lisp/thingatpt.el
View file @
a1c9b4d0
...
...
@@ -299,16 +299,18 @@ point."
(
goto-char
match
)
(
looking-at
regexp
)))))
;; Can't do it sensibly?
;(put 'url 'end-op
; '(lambda () (skip-chars-forward (concat ":" thing-at-point-url-chars))
; (skip-chars-backward ".,:")))
(
put
'url
'end-op
(
function
(
lambda
()
(
let
((
bounds
(
thing-at-point-bounds-of-url-at-point
)))
(
if
bounds
(
goto-char
(
cdr
bounds
))
(
error
"No URL here"
))))))
(
put
'url
'beginning-op
'
(
lambda
()
(
let
((
bounds
(
thing-at-point-bounds-of-url-at-point
)))
(
if
bounds
(
goto-char
(
car
bounds
))
(
error
"No URL here"
)))))
(
function
(
lambda
()
(
let
((
bounds
(
thing-at-point-bounds-of-url-at-point
)))
(
if
bounds
(
goto-char
(
car
bounds
))
(
error
"No URL here"
)))))
)
;; Whitespace
...
...
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