[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#13257: GNU Emacs 24.2.1: dired-do-query-replace-regexp calls query-r
From: |
Glenn Morris |
Subject: |
bug#13257: GNU Emacs 24.2.1: dired-do-query-replace-regexp calls query-replace-regexp with 3 arguments instead of 2. |
Date: |
Sat, 22 Dec 2012 22:15:41 -0500 |
User-agent: |
Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) |
Bernard Hurley wrote:
> In the file dired-aux.el, the function query-replace-regexp is called
> with the wrong number of arguments. Here is a patch:
You talk about query-replace-regexp, but your patch changes a call to
query-replace-read-args, which takes 2-3 args, so I wonder what the
actual issue is supposed to be?
> *** dired-aux.el.old 2012-12-23 00:42:49.000000000 +0000
> --- dired-aux.el.new 2012-12-23 00:48:39.000000000 +0000
> ***************
> *** 2511,2517 ****
> (interactive
> (let ((common
> (query-replace-read-args
> ! "Query replace regexp in marked files" t t)))
> (list (nth 0 common) (nth 1 common) (nth 2 common))))
> (dolist (file (dired-get-marked-files nil nil 'dired-nondirectory-p))
> (let ((buffer (get-file-buffer file)))
> --- 2511,2517 ----
> (interactive
> (let ((common
> (query-replace-read-args
> ! "Query replace regexp in marked files" t)))
> (list (nth 0 common) (nth 1 common) (nth 2 common))))
> (dolist (file (dired-get-marked-files nil nil 'dired-nondirectory-p))
> (let ((buffer (get-file-buffer file)))