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
fde7326e
Commit
fde7326e
authored
Jul 18, 1995
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(forward-same-syntax): New function.
parent
67384793
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
lisp/thingatpt.el
lisp/thingatpt.el
+13
-1
No files found.
lisp/thingatpt.el
View file @
fde7326e
;;; thingatpt.el --- Get the `thing' at point
;; Copyright (C) 1991,1992,1993 Free Software Foundation, Inc.
;; Copyright (C) 1991,1992,1993
,1994,1995
Free Software Foundation, Inc.
;; Author: Mike Williams <mikew@gopher.dosli.govt.nz>
;; Keywords: extensions, matching, mouse
...
...
@@ -174,6 +174,18 @@ bounds-of-thing-at-point."
(
skip-syntax-backward
"w_"
))
(
setq
ARG
(
1+
ARG
)))))
;;--- Syntax blocks ---
(
defun
forward-same-syntax
(
&optional
arg
)
(
interactive
"p"
)
(
while
(
<
arg
0
)
(
skip-syntax-backward
(
char-to-string
(
char-syntax
(
char-after
(
1-
(
point
))))))
(
setq
arg
(
1+
arg
)))
(
while
(
>
arg
0
)
(
skip-syntax-forward
(
char-to-string
(
char-syntax
(
char-after
(
point
)))))
(
setq
arg
(
1-
arg
))))
;;=== Aliases =============================================================
(
defun
word-at-point
()
(
thing-at-point
'word
))
...
...
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