Show
Ignore:
Timestamp:
11/26/05 08:33:26 (3 years ago)
Author:
miyoshi
Message:

Sync up with Emacs CVS HEAD.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • vendor/emacs-CVS_HEAD/lisp/help-mode.el

    r3939 r3988  
    385385                        (cond 
    386386                         ((match-string 3)  ; `variable' &c 
    387                           (and (boundp sym) ; `variable' doesn't ensure 
     387                          (and (or (boundp sym) ; `variable' doesn't ensure 
    388388                                        ; it's actually bound 
     389                                   (get sym 'variable-documentation)) 
    389390                               (help-xref-button 8 'help-variable sym))) 
    390391                         ((match-string 4)   ; `function' &c 
     
    407408                           (save-match-data (looking-at "[ \t\n]+face\\W"))) 
    408409                          (help-xref-button 8 'help-face sym)) 
    409                          ((and (boundp sym) (fboundp sym)) 
     410                         ((and (or (boundp sym) 
     411                                   (get sym 'variable-documentation)) 
     412                               (fboundp sym)) 
    410413                          ;; We can't intuit whether to use the 
    411414                          ;; variable or function doc -- supply both. 
    412415                          (help-xref-button 8 'help-symbol sym)) 
    413416                         ((and 
    414                            (boundp sym) 
     417                           (or (boundp sym) 
     418                               (get sym 'variable-documentation)) 
    415419                           (or 
    416420                            (documentation-property 
     
    519523                                          (keywordp sym)) 
    520524                                      nil) 
    521                                      ((and sym (boundp sym)) 
     525                                     ((and sym 
     526                                           (or (boundp sym) 
     527                                               (get sym 
     528                                                    'variable-documentation))) 
    522529                                      'help-variable)))) 
    523530                    (when type (help-xref-button 1 type sym))) 
     
    543550                  (setq help-xref-stack-item nil) 
    544551                  (describe-function symbol))) 
    545           (sdoc (when (boundp symbol) 
     552          (sdoc (when (or (boundp symbol) 
     553                          (get symbol 'variable-documentation)) 
    546554                  ;; Don't record the current entry in the stack. 
    547555                  (setq help-xref-stack-item nil) 
     
    640648                                (progn (skip-syntax-forward "w_") 
    641649                                       (point))))))) 
    642       (when (or (boundp sym) (fboundp sym) (facep sym)) 
     650      (when (or (boundp sym) 
     651                (get sym 'variable-documentation) 
     652                (fboundp sym) (facep sym)) 
    643653        (help-do-xref pos #'help-xref-interned (list sym)))))) 
    644654