GNU bug report logs - #78658
30.1; [PATCH] Dired feature suggestion: dired-on-marked-files-in-all-buffers

Previous Next

Package: emacs;

Reported by: Phil Sainty <psainty <at> orcon.net.nz>

Date: Sun, 1 Jun 2025 03:20:06 UTC

Severity: normal

Tags: patch

Found in version 30.1

Full log


Message #29 received at 78658 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Phil Sainty <psainty <at> orcon.net.nz>
Cc: 78658 <at> debbugs.gnu.org, drew.adams <at> oracle.com, juri <at> linkov.net
Subject: Re: bug#78658: 30.1; [PATCH] Dired feature suggestion:
 dired-on-marked-files-in-all-buffers
Date: Tue, 03 Jun 2025 15:24:15 +0300
> Cc: 78658 <at> debbugs.gnu.org, Juri Linkov <juri <at> linkov.net>
> Date: Tue, 03 Jun 2025 23:37:57 +1200
> From: Phil Sainty <psainty <at> orcon.net.nz>
> 
> Hi Drew,
> 
> Thank you for:
> 
> >     (let ((common  (try-completion "" files)))
> 
> My brain had failed to make the connection between "completion"
> and programmatically obtaining a common prefix from list of
> strings.  It makes perfect sense in hindsight, but I'd simply
> never thought about completion in non-interactive terms, and was
> surprised when I hadn't found a documented function for doing
> this (but I wasn't looking under Completion at all).
> 
> Eli, I reckon this is worth either documenting somewhere under
> (info "(elisp) Strings and Characters") or else creating a
> slightly more string-centric wrapper, something like:

Feel free to suggest patches for the documentation, but please
remember that results of calling completion functions can depend on
the completion styles in effect, so if we want to advertise this as a
way of producing the largest common prefix, we should probably bind
completion-styles to something specific around this call.




This bug report was last modified 5 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.