* bug#1086: ange-ftp and open recent files
@ 2008-10-04 23:27 David Strozzi
2008-10-05 17:56 ` Michael Albinus
0 siblings, 1 reply; 5+ messages in thread
From: David Strozzi @ 2008-10-04 23:27 UTC (permalink / raw)
To: bug-gnu-emacs
Hi,
I think I've found a bug in emacs, although this may be too strong a
claim. In particular, I use ange-ftp to edit remote files, and very
much appreciate this capability. the problem is when I enable the
open recent item on the file menu. I activate this in .emacs with:
(require 'recentf)
(recentf-mode 1)
During startup, I am asked for the password to one of the servers on
which I recently visited a file via ange-ftp. This is rather
annoying. Is there a way to disable this, or have a password
requested only when I actually try to view the file?
I am running emacs on a x86-64 machine with opensuse. The precise
version info is below.
Cheers,
David Strozzi
PS - I am not subscribed to the list, so if you wish to contact me
please use my email address directly.
In GNU Emacs 22.2.1 (x86_64-suse-linux-gnu, X toolkit, Xaw3d scroll bars)
of 2008-09-17 on build11
Windowing system distributor `The X.Org Foundation', version 11.0.10500000
configured using `configure '--with-gcc' '--with-pop'
'--without-hesiod' '--with-kerberos' '--with-kerberos5' '--with-leim'
'--with-xim' '--with-system-malloc' '--prefix=/usr'
'--infodir=/usr/share/info' '--mandir=/usr/share/man'
'--localstatedir=/var' '--sharedstatedir=/var/lib'
'--libexecdir=/usr/lib' '--with-x' '--with-sound' '--with-xpm'
'--with-jpeg' '--with-tiff' '--with-gif' '--with-png'
'--with-x-toolkit=lucid' '--x-includes=/usr/include'
'--x-libraries=/usr/lib64:/usr/share/X11'
'--build=x86_64-suse-linux-gnu' 'build_alias=x86_64-suse-linux-gnu'
'CC=gcc' 'CFLAGS=-fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2
-fstack-protector -O2 -g -D_GNU_SOURCE -std=gnu89 -pipe
-fno-strict-aliasing -Wno-pointer-sign -Wno-unused-variable
-Wno-unused-label -Wno-unprototyped-calls
-DSYSTEM_PURESIZE_EXTRA=55000 -DSITELOAD_PURESIZE_EXTRA=10000 '
'LDFLAGS=''
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#1086: ange-ftp and open recent files
2008-10-04 23:27 bug#1086: ange-ftp and open recent files David Strozzi
@ 2008-10-05 17:56 ` Michael Albinus
[not found] ` <f21763420810121929y64e6d748i1736aa9cb1b4b329@mail.gmail.com>
0 siblings, 1 reply; 5+ messages in thread
From: Michael Albinus @ 2008-10-05 17:56 UTC (permalink / raw)
To: David Strozzi; +Cc: 1086
"David Strozzi" <david.strozzi@gmail.com> writes:
> Hi,
Hi,
> I think I've found a bug in emacs, although this may be too strong a
> claim. In particular, I use ange-ftp to edit remote files, and very
> much appreciate this capability. the problem is when I enable the
> open recent item on the file menu. I activate this in .emacs with:
>
> (require 'recentf)
> (recentf-mode 1)
>
> During startup, I am asked for the password to one of the servers on
> which I recently visited a file via ange-ftp. This is rather
> annoying. Is there a way to disable this, or have a password
> requested only when I actually try to view the file?
You shall customize `recentf-keep'. Add "file-remote-p" in front of the
list, as described there.
With the upcoming Emacs 23, this won't be necessary, because
`recentf-keep' will have an adapted initial value, handling this.
> Cheers,
> David Strozzi
Best regards, Michael.
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#1086: ange-ftp and open recent files
[not found] ` <f21763420810121929y64e6d748i1736aa9cb1b4b329@mail.gmail.com>
@ 2008-10-13 6:13 ` Michael Albinus
[not found] ` <f21763420810130900n20abffc9i8a634b53e169fcc8@mail.gmail.com>
0 siblings, 1 reply; 5+ messages in thread
From: Michael Albinus @ 2008-10-13 6:13 UTC (permalink / raw)
To: David Strozzi; +Cc: 1086
"David Strozzi" <david.strozzi@gmail.com> writes:
Hi,
>> You shall customize `recentf-keep'. Add "file-remote-p" in front of the
>> list, as described there.
>
> Thanks for getting back to me. I don't quite understand. What
> exactly should my .emacs file contain, assuming that's where this
> goes?
(add-to-list 'recentf-keep 'file-remote-p)
> Thanks again,
> Dave
Best regards, Michael.
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#1086: ange-ftp and open recent files
[not found] ` <f21763420810130900n20abffc9i8a634b53e169fcc8@mail.gmail.com>
@ 2008-10-14 8:44 ` Michael Albinus
2008-10-19 18:39 ` David Strozzi
0 siblings, 1 reply; 5+ messages in thread
From: Michael Albinus @ 2008-10-14 8:44 UTC (permalink / raw)
To: David Strozzi; +Cc: 1086
"David Strozzi" <david.strozzi@gmail.com> writes:
> Doesn't seem to work. I put the following in .emacs, and get prompted
> for an ange-ftp password. If I comment it all out I don't, and of
> course don't get open-recent menu. My goals is to *not* have ange-ftp
> files listed, or at least I don't want to be asked for a password.
>
> (require 'recentf)
> (recentf-mode 1)
> (add-to-list 'recentf-keep 'file-remote-p)
You must customize `recentf-keep' *before* enabling `recentf-mode'. Try
it this order:
(require 'recentf)
(add-to-list 'recentf-keep 'file-remote-p)
(recentf-mode 1)
> Thanks again,
> Dave
Best regards, Michael.
PS: Please keep <1086@emacsbugs.donarmstrong.com> in Cc.
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#1086: ange-ftp and open recent files
2008-10-14 8:44 ` Michael Albinus
@ 2008-10-19 18:39 ` David Strozzi
0 siblings, 0 replies; 5+ messages in thread
From: David Strozzi @ 2008-10-19 18:39 UTC (permalink / raw)
To: Michael Albinus; +Cc: 1086
This indeed works! Thanks for the help. Dave
On Tue, Oct 14, 2008 at 1:44 AM, Michael Albinus <michael.albinus@gmx.de> wrote:
> "David Strozzi" <david.strozzi@gmail.com> writes:
>
>> Doesn't seem to work. I put the following in .emacs, and get prompted
>> for an ange-ftp password. If I comment it all out I don't, and of
>> course don't get open-recent menu. My goals is to *not* have ange-ftp
>> files listed, or at least I don't want to be asked for a password.
>>
>> (require 'recentf)
>> (recentf-mode 1)
>> (add-to-list 'recentf-keep 'file-remote-p)
>
> You must customize `recentf-keep' *before* enabling `recentf-mode'. Try
> it this order:
>
> (require 'recentf)
> (add-to-list 'recentf-keep 'file-remote-p)
> (recentf-mode 1)
>
>> Thanks again,
>> Dave
>
> Best regards, Michael.
>
> PS: Please keep <1086@emacsbugs.donarmstrong.com> in Cc.
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-10-19 18:39 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-04 23:27 bug#1086: ange-ftp and open recent files David Strozzi
2008-10-05 17:56 ` Michael Albinus
[not found] ` <f21763420810121929y64e6d748i1736aa9cb1b4b329@mail.gmail.com>
2008-10-13 6:13 ` Michael Albinus
[not found] ` <f21763420810130900n20abffc9i8a634b53e169fcc8@mail.gmail.com>
2008-10-14 8:44 ` Michael Albinus
2008-10-19 18:39 ` David Strozzi
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).