[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/progmodes/grep.el [lexbind]
From: |
Miles Bader |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/progmodes/grep.el [lexbind] |
Date: |
Thu, 04 Nov 2004 08:31:24 -0500 |
Index: emacs/lisp/progmodes/grep.el
diff -c emacs/lisp/progmodes/grep.el:1.3.2.14
emacs/lisp/progmodes/grep.el:1.3.2.15
*** emacs/lisp/progmodes/grep.el:1.3.2.14 Fri Oct 29 02:05:13 2004
--- emacs/lisp/progmodes/grep.el Thu Nov 4 13:12:43 2004
***************
*** 436,444 ****
(defun grep-default-command ()
(let ((tag-default
! (funcall (or find-tag-default-function
! (get major-mode 'find-tag-default-function)
! 'find-tag-default)))
(sh-arg-re "\\(\\(?:\"\\(?:[^\"]\\|\\\\\"\\)+\"\\|'[^']+'\\|[^\"'
\t\n]\\)+\\)")
(grep-default (or (car grep-history) grep-command)))
;; Replace the thing matching for with that around cursor.
--- 436,446 ----
(defun grep-default-command ()
(let ((tag-default
! (shell-quote-argument
! (or (funcall (or find-tag-default-function
! (get major-mode 'find-tag-default-function)
! 'find-tag-default))
! "")))
(sh-arg-re "\\(\\(?:\"\\(?:[^\"]\\|\\\\\"\\)+\"\\|'[^']+'\\|[^\"'
\t\n]\\)+\\)")
(grep-default (or (car grep-history) grep-command)))
;; Replace the thing matching for with that around cursor.
***************
*** 460,466 ****
0 (match-beginning 2))
" *."
(file-name-extension buffer-file-name))))
! (replace-match (or tag-default "") t t grep-default 1))))
;;;###autoload
(defun grep (command-args &optional highlight-regexp)
--- 462,468 ----
0 (match-beginning 2))
" *."
(file-name-extension buffer-file-name))))
! (replace-match tag-default t t grep-default 1))))
;;;###autoload
(defun grep (command-args &optional highlight-regexp)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] Changes to emacs/lisp/progmodes/grep.el [lexbind],
Miles Bader <=