emacs-bug-tracker
[Top][All Lists]
Advanced

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

[Emacs-bug-tracker] bug#6220: closed (subword support in isearch-yank-wo


From: GNU bug Tracking System
Subject: [Emacs-bug-tracker] bug#6220: closed (subword support in isearch-yank-word-or-char)
Date: Thu, 20 May 2010 22:38:02 +0000

Your message dated Fri, 21 May 2010 01:36:36 +0300
with message-id <address@hidden>
and subject line Re: bug#6220: subword support in isearch-yank-word-or-char
has caused the GNU bug report #6220,
regarding subword support in isearch-yank-word-or-char
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
6220: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6220
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: subword support in isearch-yank-word-or-char Date: Wed, 19 May 2010 19:28:03 +0900 (JST)
This is not a bug report. This is a request to include my patch to
official emacs tree.


With the patch you can pull a subword as yank text when you do
\C-w in isearch.

(I've submitted this to emacs-devel the last year.
 http://lists.gnu.org/archive/html/emacs-devel/2009-12/msg00604.html)
      
Masatake YAMATO


2009-12-15  Masatake YAMATO  <address@hidden>

       * isearch.el (isearch-yank-word-or-char): Pull next subword
       when `subword-mode' is activated.

--- isearch.el  7 Dec 2009 17:30:05 -0000       1.351
+++ isearch.el  15 Dec 2009 08:58:40 -0000
@@ -1538,14 +1538,18 @@
   (interactive "p")
   (isearch-yank-internal (lambda () (forward-char arg) (point))))
 
+(declare-function subword-forward "subword" (&optional arg))
 (defun isearch-yank-word-or-char ()
-  "Pull next character or word from buffer into search string."
+  "Pull next character, subword or word from buffer into search string.
+Subword is used when `subword-mode' is activated. "
   (interactive)
   (isearch-yank-internal
    (lambda ()
      (if (or (= (char-syntax (or (char-after) 0)) ?w)
              (= (char-syntax (or (char-after (1+ (point))) 0)) ?w))
-         (forward-word 1)
+        (if (and (fboundp 'subword-mode) subword-mode)
+            (subword-forward 1)
+            (forward-word 1))
        (forward-char 1)) (point))))
 
 (defun isearch-yank-word ()
--- progmodes/subword.el        1 Dec 2009 09:28:23 -0000       1.3
+++ progmodes/subword.el        15 Dec 2009 08:58:40 -0000
@@ -76,7 +76,7 @@
 ;; the old `c-forward-into-nomenclature' originally contributed by
 ;; Terry_Glanfield dot Southern at rxuk dot xerox dot com.
 
-;; TODO: ispell-word and subword oriented C-w in isearch.
+;; TODO: ispell-word.
 
 ;;; Code:



--- End Message ---
--- Begin Message --- Subject: Re: bug#6220: subword support in isearch-yank-word-or-char Date: Fri, 21 May 2010 01:36:36 +0300 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu)
> This is not a bug report. This is a request to include my patch to
> official emacs tree.
>
> With the patch you can pull a subword as yank text when you do
> \C-w in isearch.
>
> (I've submitted this to emacs-devel the last year.
>  http://lists.gnu.org/archive/html/emacs-devel/2009-12/msg00604.html)

Thanks, I installed your patch (with one small change:
`boundp' instead of `fboundp').

-- 
Juri Linkov
http://www.jurta.org/emacs/


--- End Message ---

reply via email to

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