summaryrefslogtreecommitdiff
path: root/lisp/help-fns.el
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2011-04-04 23:45:27 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2011-04-04 23:45:27 -0700
commitca23cc8840efb1354ebe16c6bb99bf1f8880e9b6 (patch)
treee95220daac6b9ffb47966df747308a11c0623179 /lisp/help-fns.el
parentd5efd1d1b54595db795d6fddb32404cc74923d77 (diff)
parentb87a82007428428e2f24af64a59799402bb1651e (diff)
downloademacs-ca23cc8840efb1354ebe16c6bb99bf1f8880e9b6.tar.gz
Merge from mainline.
Diffstat (limited to 'lisp/help-fns.el')
-rw-r--r--lisp/help-fns.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/help-fns.el b/lisp/help-fns.el
index 392e894965c..206a9af3a90 100644
--- a/lisp/help-fns.el
+++ b/lisp/help-fns.el
@@ -1,4 +1,4 @@
-;;; help-fns.el --- Complex help functions
+;;; help-fns.el --- Complex help functions -*- lexical-binding: t -*-
;; Copyright (C) 1985-1986, 1993-1994, 1998-2011
;; Free Software Foundation, Inc.
@@ -635,8 +635,8 @@ it is displayed along with the global value."
"Describe variable: ")
obarray
(lambda (vv)
- (or (special-variable-p vv)
- (get vv 'variable-documentation)))
+ (or (get vv 'variable-documentation)
+ (and (boundp vv) (not (keywordp vv)))))
t nil nil
(if (symbolp v) (symbol-name v))))
(list (if (equal val "")
@@ -879,7 +879,7 @@ BUFFER defaults to the current buffer."
(insert (cond
((null value) "default")
((char-table-p value) "deeper char-table ...")
- (t (condition-case err
+ (t (condition-case nil
(category-set-mnemonics value)
(error "invalid"))))))