* bug#26258: 26.0.50; recentf and tramp
@ 2017-03-25 22:13 Stephen Berman
2017-03-26 15:40 ` Michael Albinus
0 siblings, 1 reply; 6+ messages in thread
From: Stephen Berman @ 2017-03-25 22:13 UTC (permalink / raw)
To: 26258
[-- Attachment #1: Type: text/plain, Size: 1373 bytes --]
Let the file ~/.emacs.d/recentf contain a tramp-sensitive entry,
e.g. let it consist of the following:
--8<---------------cut here---------------start------------->8---
;;; Automatically generated by ‘recentf’ on Sat Mar 25 11:51:22 2017.
(setq recentf-list
'(
"/su:root@rosalinde:/etc/"
))
(setq recentf-filter-changer-current 'nil)
\f
;; Local Variables:
;; coding: utf-8-emacs
;; End:
--8<---------------cut here---------------end--------------->8---
and let ~/.emacs consist of this line:
(recentf-mode 1)
Alternatively, customize the variable recentf-mode to t and save this
setting.
Now starting emacs raises the error "Variable binding depth exceeds
max-specpdl-size" and recentf-mode is not enabled. Starting emacs with
--debug-init produces the attached backtrace.
(With the above recentf file, starting emacs with `-Q --eval
"(recentf-mode 1)"' or with `-Q --eval "(custom-set-variables
'(recentf-mode t))"' does not raise an error but prompts for the
password for the file "/su:root@rosalinde:/etc/".)
In GNU Emacs 26.0.50 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.20.10)
of 2017-03-24 built on rosalinde
Repository revision: 4fbd330fae54a9c45d4a717127aa86d75e9938d5
Windowing system distributor 'The X.Org Foundation', version 11.0.11803000
System Description: openSUSE Leap 42.2
[-- Attachment #2: backtrace --]
[-- Type: application/octet-stream, Size: 89293 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#26258: 26.0.50; recentf and tramp
2017-03-25 22:13 bug#26258: 26.0.50; recentf and tramp Stephen Berman
@ 2017-03-26 15:40 ` Michael Albinus
2017-03-26 21:48 ` Stephen Berman
0 siblings, 1 reply; 6+ messages in thread
From: Michael Albinus @ 2017-03-26 15:40 UTC (permalink / raw)
To: Stephen Berman; +Cc: 26258
Stephen Berman <stephen.berman@gmx.net> writes:
Hi Stephen,
> Now starting emacs raises the error "Variable binding depth exceeds
> max-specpdl-size" and recentf-mode is not enabled. Starting emacs with
> --debug-init produces the attached backtrace.
I've pushed a fix to master which shall fix the recursive load for
Tramp, could you pls check?
I'm not a recentf user, so I don't know whether it behaves correctly in
your scenario, loading remote recentf files.
Best regards, Michael.
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#26258: 26.0.50; recentf and tramp
2017-03-26 15:40 ` Michael Albinus
@ 2017-03-26 21:48 ` Stephen Berman
2017-03-27 8:16 ` Michael Albinus
0 siblings, 1 reply; 6+ messages in thread
From: Stephen Berman @ 2017-03-26 21:48 UTC (permalink / raw)
To: Michael Albinus; +Cc: 26258
On Sun, 26 Mar 2017 17:40:57 +0200 Michael Albinus <michael.albinus@gmx.de> wrote:
> Stephen Berman <stephen.berman@gmx.net> writes:
>
> Hi Stephen,
>
>> Now starting emacs raises the error "Variable binding depth exceeds
>> max-specpdl-size" and recentf-mode is not enabled. Starting emacs with
>> --debug-init produces the attached backtrace.
>
> I've pushed a fix to master which shall fix the recursive load for
> Tramp, could you pls check?
Thanks, I rebuilt Emacs with your fix and confirm there's now no error
and recentf-mode does get enabled; but...
> I'm not a recentf user, so I don't know whether it behaves correctly in
> your scenario, loading remote recentf files.
... now the remote file "/su:root@rosalinde:/etc/" is removed from
recentf-save-file on enabling recentf-mode. This does not happen in
Emacs 25.2. The difference appears to be due to what happens when
file-remote-p is called (from recentf-keep-default-predicate): in 25.2
(file-remote-p "/su:root@rosalinde:/etc/") returns "/su:root@rosalinde:"
but in master with your fix, it raises a void-function error:
Debugger entered--Lisp error: (void-function tramp-file-name-handler)
tramp-file-name-handler(file-remote-p "/su:root@rosalinde:/etc/" nil nil)
file-remote-p("/su:root@rosalinde:/etc/")
eval((file-remote-p "/su:root@rosalinde:/etc/") nil)
elisp--eval-last-sexp(t)
eval-last-sexp(t)
eval-print-last-sexp(nil)
funcall-interactively(eval-print-last-sexp nil)
call-interactively(eval-print-last-sexp nil nil)
command-execute(eval-print-last-sexp)
> Best regards, Michael.
Steve Berman
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#26258: 26.0.50; recentf and tramp
2017-03-26 21:48 ` Stephen Berman
@ 2017-03-27 8:16 ` Michael Albinus
2017-03-27 8:32 ` Stephen Berman
0 siblings, 1 reply; 6+ messages in thread
From: Michael Albinus @ 2017-03-27 8:16 UTC (permalink / raw)
To: Stephen Berman; +Cc: 26258
Stephen Berman <stephen.berman@gmx.net> writes:
Hi Stephen,
> Debugger entered--Lisp error: (void-function tramp-file-name-handler)
> tramp-file-name-handler(file-remote-p "/su:root@rosalinde:/etc/" nil nil)
> file-remote-p("/su:root@rosalinde:/etc/")
> eval((file-remote-p "/su:root@rosalinde:/etc/") nil)
> elisp--eval-last-sexp(t)
> eval-last-sexp(t)
> eval-print-last-sexp(nil)
> funcall-interactively(eval-print-last-sexp nil)
> call-interactively(eval-print-last-sexp nil nil)
> command-execute(eval-print-last-sexp)
Oops, I forgot to autoload `tramp-file-name-handler'. Could pls check again?
> Steve Berman
Best regards, Michael.
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#26258: 26.0.50; recentf and tramp
2017-03-27 8:16 ` Michael Albinus
@ 2017-03-27 8:32 ` Stephen Berman
2017-03-27 8:46 ` Michael Albinus
0 siblings, 1 reply; 6+ messages in thread
From: Stephen Berman @ 2017-03-27 8:32 UTC (permalink / raw)
To: Michael Albinus; +Cc: 26258
On Mon, 27 Mar 2017 10:16:04 +0200 Michael Albinus <michael.albinus@gmx.de> wrote:
> Stephen Berman <stephen.berman@gmx.net> writes:
>
> Hi Stephen,
>
>> Debugger entered--Lisp error: (void-function tramp-file-name-handler)
>> tramp-file-name-handler(file-remote-p "/su:root@rosalinde:/etc/" nil nil)
>> file-remote-p("/su:root@rosalinde:/etc/")
>> eval((file-remote-p "/su:root@rosalinde:/etc/") nil)
>> elisp--eval-last-sexp(t)
>> eval-last-sexp(t)
>> eval-print-last-sexp(nil)
>> funcall-interactively(eval-print-last-sexp nil)
>> call-interactively(eval-print-last-sexp nil nil)
>> command-execute(eval-print-last-sexp)
>
> Oops, I forgot to autoload `tramp-file-name-handler'. Could pls check again?
Just did, and now it works as it should: remote files remain in
recent-save-file and recentf-mode is enabled without error. Thanks!
Steve Berman
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#26258: 26.0.50; recentf and tramp
2017-03-27 8:32 ` Stephen Berman
@ 2017-03-27 8:46 ` Michael Albinus
0 siblings, 0 replies; 6+ messages in thread
From: Michael Albinus @ 2017-03-27 8:46 UTC (permalink / raw)
To: Stephen Berman; +Cc: 26258-done
Stephen Berman <stephen.berman@gmx.net> writes:
Hi Stephen,
> Just did, and now it works as it should: remote files remain in
> recent-save-file and recentf-mode is enabled without error. Thanks!
Thanks for the feedback. I'm closing the bug.
> Steve Berman
Best regards, Michael.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2017-03-27 8:46 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-25 22:13 bug#26258: 26.0.50; recentf and tramp Stephen Berman
2017-03-26 15:40 ` Michael Albinus
2017-03-26 21:48 ` Stephen Berman
2017-03-27 8:16 ` Michael Albinus
2017-03-27 8:32 ` Stephen Berman
2017-03-27 8:46 ` Michael Albinus
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.