emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/help.el [lexbind]


From: Miles Bader
Subject: [Emacs-diffs] Changes to emacs/lisp/help.el [lexbind]
Date: Sat, 04 Sep 2004 05:54:04 -0400

Index: emacs/lisp/help.el
diff -c emacs/lisp/help.el:1.250.2.6 emacs/lisp/help.el:1.250.2.7
*** emacs/lisp/help.el:1.250.2.6        Sat Sep  4 09:21:44 2004
--- emacs/lisp/help.el  Sat Sep  4 09:28:13 2004
***************
*** 237,268 ****
  (defun function-called-at-point ()
    "Return a function around point or else called by the list containing point.
  If that doesn't give a function, return nil."
!   (with-syntax-table emacs-lisp-mode-syntax-table
!     (or (condition-case ()
!           (save-excursion
!             (or (not (zerop (skip-syntax-backward "_w")))
!                 (eq (char-syntax (following-char)) ?w)
!                 (eq (char-syntax (following-char)) ?_)
!                 (forward-sexp -1))
!             (skip-chars-forward "'")
!             (let ((obj (read (current-buffer))))
!               (and (symbolp obj) (fboundp obj) obj)))
!         (error nil))
!       (condition-case ()
!           (save-excursion
!             (save-restriction
!               (narrow-to-region (max (point-min)
!                                      (- (point) 1000)) (point-max))
!               ;; Move up to surrounding paren, then after the open.
!               (backward-up-list 1)
!               (forward-char 1)
!               ;; If there is space here, this is probably something
!               ;; other than a real Lisp function call, so ignore it.
!               (if (looking-at "[ \t]")
!                   (error "Probably not a Lisp function call"))
!               (let ((obj (read (current-buffer))))
!                 (and (symbolp obj) (fboundp obj) obj))))
!         (error nil)))))
  
  
  ;;; `User' help functions
--- 237,271 ----
  (defun function-called-at-point ()
    "Return a function around point or else called by the list containing point.
  If that doesn't give a function, return nil."
!   (or (with-syntax-table emacs-lisp-mode-syntax-table
!       (or (condition-case ()
!               (save-excursion
!                 (or (not (zerop (skip-syntax-backward "_w")))
!                     (eq (char-syntax (following-char)) ?w)
!                     (eq (char-syntax (following-char)) ?_)
!                     (forward-sexp -1))
!                 (skip-chars-forward "'")
!                 (let ((obj (read (current-buffer))))
!                   (and (symbolp obj) (fboundp obj) obj)))
!             (error nil))
!           (condition-case ()
!               (save-excursion
!                 (save-restriction
!                   (narrow-to-region (max (point-min)
!                                          (- (point) 1000)) (point-max))
!                   ;; Move up to surrounding paren, then after the open.
!                   (backward-up-list 1)
!                   (forward-char 1)
!                   ;; If there is space here, this is probably something
!                   ;; other than a real Lisp function call, so ignore it.
!                   (if (looking-at "[ \t]")
!                       (error "Probably not a Lisp function call"))
!                   (let ((obj (read (current-buffer))))
!                     (and (symbolp obj) (fboundp obj) obj))))
!             (error nil))))
!       (let* ((str (find-tag-default))
!            (obj (if str (read str))))
!       (and (symbolp obj) (fboundp obj) obj))))
  
  
  ;;; `User' help functions




reply via email to

[Prev in Thread] Current Thread [Next in Thread]