Re: query-replace-regexp vs. following blanks highlighting

2007-02-15 Thread Chong Yidong
Richard Stallman <[EMAIL PROTECTED]> writes: > Your change looks correct to me. Would someone please install it? Done. ___ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug

Re: query-replace-regexp vs. following blanks highlighting

2007-02-14 Thread Richard Stallman
Your change looks correct to me. Would someone please install it? ___ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug

Re: query-replace-regexp vs. following blanks highlighting

2007-02-14 Thread Chris Moore
d queries in a query-replace-regexp; it's only talking about searching, not replacing, and 2) the thread died out without any decision having been made. I think that both string searches and regular expression searches should have "space-means-space" functionality by default, with

Re: query-replace-regexp vs. following blanks highlighting

2007-02-14 Thread Chong Yidong
Chris Moore <[EMAIL PROTECTED]> writes: >> This is a new feature in Emacs 22. Use "^[ ]" if you want to >> highlight exactly one space. > > What's the rationale for this feature? I thought the point of > highlighting was to show which parts of the buffer match the regular > expression being sear

Re: query-replace-regexp vs. following blanks highlighting

2007-02-14 Thread Chris Moore
r expression being searched for, which is useful. What is the use of showing parts which don't match as well? It seems that the intention was to only affect regular expression incremental search (see the documentation for search-whitespace-regexp) but it also affects query-replace-regexp. If

Re: query-replace-regexp vs. following blanks highlighting

2007-02-13 Thread Chong Yidong
Dan Jacobson <[EMAIL PROTECTED]> writes: > $ cat file > a >b > c > Now do query-replace-regexp "^ " "" on it. > Note how not only the first space on each line is highlighted, but the > rest too. This is a new feature in Emacs 22. Use &q

query-replace-regexp vs. following blanks highlighting

2007-02-13 Thread Dan Jacobson
$ cat file a b c Now do query-replace-regexp "^ " "" on it. Note how not only the first space on each line is highlighted, but the rest too. ___ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org http://lists.gnu.org/ma

Re: query-replace-regexp slow for evaluated lisp expressions

2007-01-12 Thread Richard Stallman
Sure, but I don't have access to commit the patch. Please send the patch again. ___ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug

Re: query-replace-regexp slow for evaluated lisp expressions

2007-01-11 Thread Chris Moore
Richard Stallman <[EMAIL PROTECTED]> writes: > Sure, but I don't have access to commit the patch. > > Please send the patch again. I just tried, but got bounces both from you directly and from the list. From: Mail Deliv

Re: query-replace-regexp slow for evaluated lisp expressions

2007-01-11 Thread Richard Stallman
Sure, but I don't have access to commit the patch. Please send the patch again. ___ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug

Re: query-replace-regexp slow for evaluated lisp expressions

2007-01-10 Thread Chris Moore
"Aaron S. Hawley" <[EMAIL PROTECTED]> writes: > This bug is really worth fixing. Otherwise, the lisp expression > aspect of `query-replace-regexp' will behave /unnecessarily/ slow. Sure, but I don't have access to commit the patch. Can someone who does pleas

Re: query-replace-regexp slow for evaluated lisp expressions

2007-01-10 Thread Aaron S. Hawley
worth fixing. Otherwise, the lisp expression aspect of `query-replace-regexp' will behave /unnecessarily/ slow. Concerned, /a -- Computer Systems Specialist Leicester Central School Barstow Memorial School Rutland Northeast School District ___

Re: query-replace-regexp slow for evaluated lisp expressions

2007-01-07 Thread Chris Moore
"Aaron S. Hawley" <[EMAIL PROTECTED]> writes: > Quoting Chris Moore <[EMAIL PROTECTED]>: > >> Or just replace it with \,\& for an even simpler test case. > > Damn right. Or: \,& makes it one character shorter, and gives lie to replace-match-string-symbols's docstring. It turns out that & doesn

Re: query-replace-regexp slow for evaluated lisp expressions

2007-01-07 Thread Aaron S. Hawley
Quoting Chris Moore <[EMAIL PROTECTED]>: "Aaron S. Hawley" <[EMAIL PROTECTED]> writes: Then, do the most basic of replacements that would never be done in practice, but shows how slow interactive regexp replacements can be: Or just replace it with \,\& for an even simpler test case. Damn r

Re: query-replace-regexp slow for evaluated lisp expressions

2007-01-06 Thread Chris Moore
"Aaron S. Hawley" <[EMAIL PROTECTED]> writes: > Then, do the most basic of replacements that would never be done in > practice, but shows how slow interactive regexp replacements can be: Or just replace it with \,\& for an even simpler test case. Does this patch fix the bug? --- old/replace.el

query-replace-regexp slow for evaluated lisp expressions

2007-01-03 Thread Aaron S. Hawley
Search and evaluated replace expressions with `query-replace-regexp' are a bit slow and do not scale well to large files, even with the simplest of lisp expressions, in particular when using automatic replace of all matches by hitting "!"? For instance, create a buffer `foo&

Re: query-replace-regexp-eval causes an error

2006-07-23 Thread MIYOSHI Masanori
> Richard Stallman <[EMAIL PROTECTED]> wrote: > Does this fix it? Yes, your patch fixes the problem. Thank you. -- MIYOSHI Masanori ___ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-pretest

Re: query-replace-regexp-eval causes an error

2006-07-23 Thread Richard Stallman
Does this fix it? *** replace.el 01 Jun 2006 16:26:18 -0400 1.243 --- replace.el 23 Jul 2006 13:18:38 -0400 *** *** 1283,1290 # replace-count Note that these symbols must be preceeded by a backslash in order to ! type them." ! (while n (cond

query-replace-regexp-eval causes an error

2006-07-23 Thread MIYOSHI Masanori
In GNU Emacs 22.0.50 on Windows, the following operation causes an error. M-x query-replace-regexp-eval RET a RET (cdr '(nil . "b")) RET => Wrong type argument: listp, "b" But the following one doesn't. M-x query-replace-regexp-eval RET a RET (car

Re: query-replace-regexp

2006-06-13 Thread JohnCarter
Tried that, failed. Deleting and rebuild the .o files was not enough. I found I needed to clobber all the .elc files as well and then do a "make bootstrap" That worked. -- View this message in context: http://www.nabble.com/query-replace-regexp-t1756721.html#a4856594 Sent from

Re: query-replace-regexp

2006-06-08 Thread Juri Linkov
> ~/emacs/src/emacs --debug-init & > > With > > M-x `query-replace-regexp' > > I get an error: > > "query-replace-read-from: Wrong number of arguments: # read-from-minibuffer>, 8" Please recompile C source f

query-replace-regexp

2006-06-08 Thread Andreas Roehler
~/emacs/src/emacs --debug-init & With M-x `query-replace-regexp' I get an error: "query-replace-read-from: Wrong number of arguments: #read-from-minibuffer>, 8" __ Andreas Roehler ;; In GNU Emacs 22.0.50.3 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)

Re: bug in dired-do-query-replace-regexp (fix included)

2006-06-02 Thread David Wallin
Hi Juri, The problem was in highlight-completion mode (http://www.math.washington.edu/~palmieri/Emacs/hlc.html), and not in emacs. I sent a fix to the author. thanks, --david. At Fri, 02 Jun 2006 02:32:27 +0300, Juri Linkov <[EMAIL PROTECTED]> wrote: > > > Please describe exactly what action

Re: bug in dired-do-query-replace-regexp (fix included)

2006-06-01 Thread Juri Linkov
> Please describe exactly what actions triggered the bug > and the precise symptoms of the bug: > > 'Q' in dired doesn't work. Could you describe exactly what a problem do you have. I don't see any. > It seems like the culprit is that `query-replace-read-args' is called > with too many args. Af

bug in dired-do-query-replace-regexp (fix included)

2006-06-01 Thread David Wallin
0 @@ -2217,7 +2217,7 @@ (interactive (let ((common (query-replace-read-args - "Query replace regexp in marked files" t t))) + "Query replace regexp in marked files" t))) (list (nth 0 common) (nth 1 common) (nth 2 common (dolist (fil

Re: query-replace-regexp and read-only text properties

2005-12-29 Thread Richard M. Stallman
this feature can fix a bug - wrong highlighting of read-only areas in query-replace-regexp. Please show me the patch. If it is simple and safe, let's use it. ___ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org http://lists.gnu.org

Re: query-replace-regexp and read-only text properties

2005-12-28 Thread Juri Linkov
easily by using a new > predicate variable to allow lazy highlighting to skip read-only matches. > > What did I say about it then? You said it is a good feature for after the release. However, now this feature can fix a bug - wrong highlighting of read-only areas in query-replace

Re: query-replace-regexp and read-only text properties

2005-12-28 Thread Richard M. Stallman
Have you noticed that read-only matches are highlighted by lazy-highlight even though perform-replace skips them? This is very misleading. Do you think this should be fixed? It is worth a try. A patch I proposed a few months ago could fix this easily by using a new predicate

Re: query-replace-regexp and read-only text properties

2005-12-27 Thread Juri Linkov
> I fixed this last night, I think. Does it work now? Thanks, it works now. Have you noticed that read-only matches are highlighted by lazy-highlight even though perform-replace skips them? This is very misleading. Do you think this should be fixed? A patch I proposed a few months ago could fi

Re: query-replace-regexp and read-only text properties

2005-12-27 Thread David Hansen
On Tue, 27 Dec 2005 18:14:02 -0500 Richard M. Stallman wrote: > I fixed this last night, I think. Does it work now? It's working. Thank you for fixing this. David ___ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org http://lists.gnu.org/ma

Re: query-replace-regexp and read-only text properties

2005-12-27 Thread Richard M. Stallman
I fixed this last night, I think. Does it work now? ___ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug

Re: query-replace-regexp and read-only text properties

2005-12-26 Thread Juri Linkov
> > When I try it, it replaces both instances of `foo '. > > Are you using the development Emacs? > > Yes: emacs-version "22.0.50.2". A few days old from HEAD. > > Strange. Can you debug what's happening inside the loop? It's strange that you can't reproduce it. Perhaps when you ty

Re: query-replace-regexp and read-only text properties

2005-12-24 Thread Richard M. Stallman
> When I try it, it replaces both instances of `foo '. > Are you using the development Emacs? Yes: emacs-version "22.0.50.2". A few days old from HEAD. Strange. Can you debug what's happening inside the loop? ___ emacs-pretest-bug maili

Re: query-replace-regexp and read-only text properties

2005-12-24 Thread David Hansen
On Fri, 23 Dec 2005 21:36:59 -0500 Richard M. Stallman wrote: > When I try it, it replaces both instances of `foo '. > Are you using the development Emacs? Yes: emacs-version "22.0.50.2". A few days old from HEAD. David ___ emacs-pretest-bug maili

Re: query-replace-regexp and read-only text properties (Was: wdired and query-replace)

2005-12-23 Thread Richard M. Stallman
When I try it, it replaces both instances of `foo '. Are you using the development Emacs? ___ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug

query-replace-regexp and read-only text properties (Was: wdired and query-replace)

2005-12-23 Thread David Hansen
Seems this has nothing to do with wdired.el. Eval this (progn (with-current-buffer (get-buffer-create "*query-replace-bug*") (save-excursion (insert "foo foo \nfoo foo \n") (goto-char (point-min)) (put-text-property (point-at-bol) (+ 3 (point-at-bol)) 'read-only t) (

Re: query-replace-regexp whitespace handling

2005-03-02 Thread Michael Mauger
that the problem is not specific to > > `query-replace-regexp', it also occurs in `query-replace'; and it is > > not related to whitespace handling. > > > > The problem appears in the handling of history when the default is > > processed. > > &g

Re: query-replace-regexp whitespace handling

2005-02-09 Thread Michael Mauger
I am in W32 but it doesn't appear to be system dependent. I did some more research and determined that the problem is not specific to `query-replace-regexp', it also occurs in `query-replace'; and it is not related to whitespace handling. The problem appears in the handling of h

Re: query-replace-regexp whitespace handling

2005-02-09 Thread Richard Stallman
It does not fail when I try it (on GNU/Linux). ___ Emacs-pretest-bug mailing list [EMAIL PROTECTED] http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug