From: Lars Ingebrigtsen <larsi@gnus.org>
To: Stephen Berman <stephen.berman@gmx.net>
Cc: Michael Albinus <michael.albinus@gmx.de>,
Boruch Baum <boruch_baum@gmx.com>,
49043@debbugs.gnu.org
Subject: bug#49043: 27.1: ibuffer-toggle-filter-group [BUGFIX]
Date: Sat, 19 Jun 2021 14:06:59 +0200 [thread overview]
Message-ID: <87h7hu2h3w.fsf@gnus.org> (raw)
In-Reply-To: <871r8zi7pj.fsf@gmx.net> (Stephen Berman's message of "Fri, 18 Jun 2021 16:11:04 +0200")
Stephen Berman <stephen.berman@gmx.net> writes:
> I do. It's the result of an error being raised in Tramp. Here's the
> recipe (reliably reproducible on
Thanks for the thorough recipe -- I was able to reproduce the problem,
too.
> 6. Type `M-x ibuffer'.
> => This raises the error "tramp-error: Method ‘archive’ is not known."
Here's the backtrace for that:
Debugger entered--Lisp error: (user-error "Method ‘archive’ is not known.")
signal(user-error ("Method ‘archive’ is not known."))
tramp-error((tramp-file-name "archive" nil nil "file%3A%2F%2F%2Ftmp%2Ffoo.zip" nil "" nil) user-error "Method `%s' is not known." "archive")
apply(tramp-error (tramp-file-name "archive" nil nil "file%3A%2F%2F%2Ftmp%2Ffoo.zip" nil "" nil) user-error "Method `%s' is not known." "archive")
tramp-user-error((tramp-file-name "archive" nil nil "file%3A%2F%2F%2Ftmp%2Ffoo.zip" nil "" nil) "Method `%s' is not known." "archive")
tramp-dissect-file-name("/archive:file%3A%2F%2F%2Ftmp%2Ffoo.zip:")
tramp-file-name-handler(expand-file-name "" "/archive:file%3A%2F%2F%2Ftmp%2Ffoo.zip:")
file-name-case-insensitive-p("")
abbreviate-file-name("")
ibuffer--abbreviate-file-name("")
ibuffer-make-column-filename(#<buffer *tramp/archive file%3A%2F%2F%2Ftmp%2Ffoo.zip*> 32)
ibuffer-make-column-filename-and-process(#<buffer *tramp/archive file%3A%2F%2F%2Ftmp%2Ffoo.zip*> 32)
#f(compiled-function (buffer mark) #<bytecode 0xa9479abf87c6c30>)(#<buffer *tramp/archive file%3A%2F%2F%2Ftmp%2Ffoo.zip*> 32)
ibuffer-insert-buffer-line(#<buffer *tramp/archive file%3A%2F%2F%2Ftmp%2Ffoo.zip*> 32 #f(compiled-function (buffer mark) #<bytecode 0xa9479abf87c6c30>))
ibuffer-insert-filter-group("Default" "Default" "" #f(compi
ibuffer-redisplay-engine(((#<buffer tmp> . 32) (#<buffer *C
ibuffer-update(nil)
ibuffer(nil)
funcall-interactively(ibuffer nil)
> Step 3 of the recipe is necessary to raise the above errors. I guess
> dired-guess-shell-command triggers Tramp file handling. CCing Michael
> Albinus, who should be able to solve the problem.
3) does indeed seem to be a Tramp problem, but I wonder if ibuffer
should be more resilient here? That is, to avoid messing up the
ibuffer, we could do something like:
diff --git a/lisp/ibuffer.el b/lisp/ibuffer.el
index 9088f31053..73ddfb260c 100644
--- a/lisp/ibuffer.el
+++ b/lisp/ibuffer.el
@@ -1184,7 +1184,11 @@ ibuffer-buffer-file-name
(defun ibuffer--abbreviate-file-name (filename)
"Abbreviate FILENAME using `ibuffer-directory-abbrev-alist'."
(let ((directory-abbrev-alist ibuffer-directory-abbrev-alist))
- (abbreviate-file-name filename)))
+ (condition-case ()
+ ;; This may fail if the filename is a Tramp filename that is
+ ;; invalid.
+ (abbreviate-file-name filename)
+ (error filename))))
(define-ibuffer-op ibuffer-do-save ()
"Save marked buffers as with `save-buffer'."
Any comments?
(This would be in addition to actually fixing 3).)
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2021-06-19 12:06 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-15 15:52 bug#49043: 27.1: ibuffer-toggle-filter-group [BUGFIX] Boruch Baum
2021-06-15 16:15 ` Lars Ingebrigtsen
2021-06-15 20:18 ` Boruch Baum
2021-06-16 8:19 ` Lars Ingebrigtsen
2021-06-16 8:26 ` Boruch Baum
2021-06-16 8:51 ` Lars Ingebrigtsen
2021-06-16 12:04 ` Eli Zaretskii
2021-06-16 17:01 ` Boruch Baum
2021-06-16 17:10 ` Eli Zaretskii
2021-06-18 14:11 ` Stephen Berman
2021-06-19 12:06 ` Lars Ingebrigtsen [this message]
2021-06-19 12:12 ` Michael Albinus
2021-06-19 15:56 ` Michael Albinus
2021-06-19 19:56 ` Stephen Berman
2021-06-19 21:41 ` Stephen Berman
2021-06-20 8:12 ` Boruch Baum
2021-06-20 14:29 ` Michael Albinus
2021-06-21 12:25 ` Lars Ingebrigtsen
2021-06-15 16:20 ` Eli Zaretskii
2021-06-15 20:13 ` Boruch Baum
2021-06-15 20:39 ` Boruch Baum
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87h7hu2h3w.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=49043@debbugs.gnu.org \
--cc=boruch_baum@gmx.com \
--cc=michael.albinus@gmx.de \
--cc=stephen.berman@gmx.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).