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
c9b6b262
Commit
c9b6b262
authored
Feb 13, 2014
by
Juanma Barranquero
Browse files
* lisp/apropos.el (apropos-read-pattern): Fix error message for empty string.
parent
eb4c6947
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
lisp/ChangeLog
lisp/ChangeLog
+6
-0
lisp/apropos.el
lisp/apropos.el
+2
-1
No files found.
lisp/ChangeLog
View file @
c9b6b262
2014-02-13 Juanma Barranquero <lekktu@gmail.com>
* apropos.el (apropos-read-pattern): When the user passes an empty
string, give a more helpful error message than "Wrong type
argument: stringp, nil".
2014-02-13 Stefan Monnier <monnier@iro.umontreal.ca>
* jit-lock.el (jit-lock-mode): Keep it disabled in indirect buffers.
...
...
lisp/apropos.el
View file @
c9b6b262
...
...
@@ -370,7 +370,8 @@ kind of objects to search."
(
read-string
(
concat
"Search for "
subject
" (word list or regexp): "
))))
(
if
(
string-equal
(
regexp-quote
pattern
)
pattern
)
;; Split into words
(
split-string
pattern
"[ \t]+"
t
)
(
or
(
split-string
pattern
"[ \t]+"
t
)
(
user-error
"No word list given"
))
pattern
)))
(
defun
apropos-parse-pattern
(
pattern
)
...
...
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