Changeset 8167 for lang/xyzzy

Show
Ignore:
Timestamp:
03/19/08 22:57:24 (5 years ago)
Author:
miyamuko
Message:

lang/xyzzy/xyscope/site-lisp/xyscope.l (xyscope-jump-to-xyzzy-source):
cscope-find-xxx function now handle exec-dir properly.
cscope 2008.03.18 or later required.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/xyzzy/xyscope/site-lisp/xyscope.l

    r8050 r8167  
    66;; 
    77;; Author: MIYAMUKO Katsuyuki <miyamuko@gmail.com> 
    8 ;; Version: 0.1 
     8;; Version: 0.3 
    99;; Keywords: development 
    1010;; 
     
    3434;; 
    3535;; * tag jump に cscope を使っているので、NetInstaller から cscope をインストールしてください。 
    36 ;;   2008.03.17 以上が必要です。 
     36;;   2008.03.18 版以上が必要です。 
    3737;; 
    3838;; * 使い方 
     
    109109(defun xyscope-jump-to-xyzzy-source (sym) 
    110110  (interactive "SBuild-in symbol: ") 
    111   (macrolet ((save-default-directory (&body body) 
    112                `(let ((dir (default-directory)) 
    113                       (buf (selected-buffer))) 
    114                   (unwind-protect 
    115                       (progn ,@body) 
    116                     (set-default-directory dir buf))))) 
    117     (save-default-directory 
    118      (set-default-directory *xyscope-xyzzy-source-directory* buf) 
    119      (multiple-value-bind (cname type) 
    120          (xyzzy-lisp-symbol->c-name sym) 
    121        (funcall (if (eq type :function) 
    122                     'cscope-find-global-definition 
    123                   'cscope-find-c-symbol) 
    124                 cname) 
    125        (message "~S => ~S" sym cname) 
    126        )))) 
     111  (multiple-value-bind (cname type) 
     112      (xyzzy-lisp-symbol->c-name sym) 
     113    (funcall (if (eq type :function) 
     114                 'cscope-find-global-definition 
     115               'cscope-find-c-symbol) 
     116             cname *xyscope-xyzzy-source-directory*) 
     117    (message "~S => ~S" sym cname) 
     118    )) 
    127119 
    128120(defun xyscope-jump-to-xyzzy-source-current-word ()