GNU bug report logs -
#10262
24.0.91; find-dired ignores cdr of find-ls-option
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 10262 in the body.
You can then email your comments to 10262 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#10262
; Package
emacs
.
(Sat, 10 Dec 2011 16:33:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Philipp Haselwarter <philipp.haselwarter <at> gmx.de>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Sat, 10 Dec 2011 16:33:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Setting the cdr of `find-ls-option' does change the output of
`find-dired'. The problem seems to be with `dired-mode'
(cf. find-emacs.gz line 176).
To reproduce:
(progn
(setq find-ls-option '("-ls" . "-dlbh"))
(find-file "/tmp")
(call-interactively 'find-dired))
confirm twice:
"RET" "RET"
If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
`bt full' and `xbacktrace'.
For information about debugging Emacs, please read the file
/usr/share/emacs/24.0.91/etc/DEBUG.
In GNU Emacs 24.0.91.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.8)
of 2011-11-19 on nzebook.haselwarter.org
configured using `configure '--prefix=/usr' '--sysconfdir=/etc' '--localstatedir=/var' '--libexecdir=/usr/lib' '--mandir=/usr/share/man' '--without-sound' '--with-x-toolkit=gtk' 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu''
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: en_US.UTF-8
value of $XMODIFIERS: nil
locale-coding-system: utf-8-unix
default enable-multibyte-characters: t
Major mode: Lisp Interaction
Minor modes in effect:
shell-dirtrack-mode: t
tooltip-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
Recent input:
ESC [ > 8 3 ; 4 0 1 0 0 ; 0 c ( p r o g n RET ( s e
t q SPC f i n d - l s - o p t i o n SPC ' ( " - l s
" SPC . SPC " - d l b h " ) ) RET ( f i n d - f i l
e SPC " / t m p " ) ) RET C-p C-e C-b RET ( c a l l
- i n t e r a c t i v e l y SPC DEL TAB ESC TAB SPC
' DEL ' f i d DEL n d - d i r e d C-e ) C-x C-e C-j
- i n a m e SPC ' * * ' C-b C-b f o o RET C-x b * s
c TAB RET C-n ESC x e m a c s - b u TAB g C-a TAB TAB
RET
Recent messages:
("emacs" "--no-desktop")
For information about GNU Emacs and the GNU system, type C-h C-a.
"--no-desktop" ignored because the Desktop package is not loaded
Sole completion
(":%s")
find-dired *Find* finished.
Making completion list...
Load-path shadows:
None found.
Features:
(shadow sort gnus-util mail-extr message idna format-spec rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045
ietf-drums mm-util mail-prsvr mailabbrev mail-utils gmm-utils mailheader
emacsbug help-mode easymenu view shell pcomplete comint ring find-dired
dired regexp-opt time-date tooltip ediff-hook vc-hooks lisp-float-type
mwheel x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register
page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock
font-lock syntax facemenu font-core frame cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew
greek romanian slovak czech european ethiopic indian cyrillic chinese
case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs
button faces cus-face files text-properties overlay sha1 md5 base64
format env code-pages mule custom widget hashtable-print-readable
backquote make-network-process dbusbind dynamic-setting
system-font-setting font-render-setting move-toolbar gtk x-toolkit x
multi-tty emacs)
--
Philipp Haselwarter
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#10262
; Package
emacs
.
(Thu, 12 Jan 2012 08:44:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 10262 <at> debbugs.gnu.org (full text, mbox):
Philipp Haselwarter wrote:
> Setting the cdr of `find-ls-option' does change the output of
> `find-dired'. The problem seems to be with `dired-mode'
> (cf. find-emacs.gz line 176).
>
> To reproduce:
>
> (progn
> (setq find-ls-option '("-ls" . "-dlbh"))
> (find-file "/tmp")
> (call-interactively 'find-dired))
>
> confirm twice:
>
> "RET" "RET"
I think this is a misunderstanding. You can't just change the cdr of
find-ls-option, you have to change the car as well. find will produce
the file listing using the option specified in the car, then Emacs
switches to dired-mode, with the cdr telling it how to parse the output
of find.
So you probably want to use:
(setq find-ls-option '("-exec ls -dlbh {} +" . "-dlbh"))
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#10262
; Package
emacs
.
(Thu, 12 Jan 2012 10:45:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 10262 <at> debbugs.gnu.org (full text, mbox):
Glenn Morris <rgm <at> gnu.org> writes:
> Philipp Haselwarter wrote:
>
>> Setting the cdr of `find-ls-option' does change the output of
>> `find-dired'. The problem seems to be with `dired-mode'
>> (cf. find-emacs.gz line 176).
>>
>> To reproduce:
>>
>> (progn
>> (setq find-ls-option '("-ls" . "-dlbh"))
>> (find-file "/tmp")
>> (call-interactively 'find-dired))
>>
>> confirm twice:
>>
>> "RET" "RET"
>
>
> I think this is a misunderstanding. You can't just change the cdr of
> find-ls-option, you have to change the car as well. find will produce
> the file listing using the option specified in the car, then Emacs
> switches to dired-mode, with the cdr telling it how to parse the output
> of find.
>
> So you probably want to use:
>
> (setq find-ls-option '("-exec ls -dlbh {} +" . "-dlbh"))
Thanks, I had a misconception about how much of the parsing was done by
dired, your solution works perfectly! Adding it as an example to the
docstring of `find-ls-option' would certainly clarify things.
--
Philipp Haselwarter
Reply sent
to
Glenn Morris <rgm <at> gnu.org>
:
You have taken responsibility.
(Fri, 13 Jan 2012 02:36:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Philipp Haselwarter <philipp.haselwarter <at> gmx.de>
:
bug acknowledged by developer.
(Fri, 13 Jan 2012 02:36:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 10262-done <at> debbugs.gnu.org (full text, mbox):
Version: 24.0.93
I changed it to say:
"A pair of options to produce and parse an `ls -l'-type list from `find'.
This is a cons of two strings (FIND-OPTION . LS-SWITCHES).
FIND-OPTION is the option (or options) passed to `find' to produce
a file listing in the desired format. LS-SWITCHES is a set of
`ls' switches that tell dired how to parse the output of `find'.
The two options must be set to compatible values.
For example, to use human-readable file sizes with GNU ls:
\(\"-exec ls -ldh {} +\" . \"-ldh\")
To use GNU find's inbuilt \"-ls\" option to list files:
\(\"-ls\" . \"-dilsb\")
since GNU find's output has the same format as using GNU ls with
the options \"-dilsb\"."
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 10 Feb 2012 12:24:02 GMT)
Full text and
rfc822 format available.
This bug report was last modified 13 years and 191 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.