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
f507d6a1
Commit
f507d6a1
authored
Dec 16, 2004
by
Juri Linkov
Browse files
* help-fns.el (variable-at-point):
As a last resort try striping non-word prefixes and suffixes.
parent
918f2e56
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
lisp/help-fns.el
lisp/help-fns.el
+7
-2
No files found.
lisp/help-fns.el
View file @
f507d6a1
...
...
@@ -478,8 +478,13 @@ Return 0 if there is no such symbol."
(
and
(
symbolp
obj
)
(
boundp
obj
)
obj
))))
(
error
nil
))
(
let*
((
str
(
find-tag-default
))
(
obj
(
if
str
(
intern
str
))))
(
and
(
symbolp
obj
)
(
boundp
obj
)
obj
))
(
sym
(
if
str
(
intern-soft
str
))))
(
if
(
and
sym
(
boundp
sym
))
sym
(
save-match-data
(
when
(
and
str
(
string-match
"\\`\\W*\\(.*?\\)\\W*\\'"
str
))
(
setq
sym
(
intern-soft
(
match-string
1
str
)))
(
and
(
boundp
sym
)
sym
)))))
0
))
;;;###autoload
...
...
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