Changeset 19166 for lang/elisp

Show
Ignore:
Timestamp:
09/11/08 11:47:49 (2 months ago)
Author:
imakado
Message:

thing-at-point を regexp-quote で囲んだ.anything-c-moccur-isearch-forward,backward コマンドに save-window-excursion を追加.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/elisp/anything-c-moccur/trunk/anything-c-moccur.el

    r19146 r19166  
    102102 
    103103;;; variables 
    104 (defvar anything-c-moccur-version 0.31) 
     104(defvar anything-c-moccur-version 0.32) 
    105105(defvar anything-c-moccur-anything-invoking-flag nil) 
    106106(defvar anything-c-moccur-anything-initial-pattern "") 
     
    392392    (anything-c-moccur-with-anything-env (list anything-c-source-occur-by-moccur) 
    393393      (let* ((initial-pattern (if anything-c-moccur-enable-initial-pattern 
    394                                   (or (thing-at-point 'symbol) "") 
     394                                  (regexp-quote (or (thing-at-point 'symbol) "")) 
    395395                                ""))) 
    396396        (when anything-c-moccur-push-mark-flag 
     
    573573  (interactive) 
    574574  (let ((anything-c-moccur-widen-when-goto-line-flag nil)) 
    575     (save-restriction 
    576       (narrow-to-region (point-at-bol) (point-max)) 
    577       (anything-c-moccur-occur-by-moccur)))) 
     575    (save-window-excursion 
     576      (save-restriction 
     577        (narrow-to-region (point-at-bol) (point-max)) 
     578        (anything-c-moccur-occur-by-moccur))))) 
    578579 
    579580(defun anything-c-moccur-isearch-backward () 
     
    584585                                                                              (reverse -candidates))) 
    585586                                                  copied-source))) 
    586     (save-restriction 
    587       (narrow-to-region (point-min) (point-at-eol)) 
    588       (anything-c-moccur-occur-by-moccur)))) 
     587    (save-window-excursion 
     588      (save-restriction 
     589        (narrow-to-region (point-min) (point-at-eol)) 
     590        (anything-c-moccur-occur-by-moccur))))) 
    589591 
    590592;;; Commands for `anything-c-moccur-anything-map'