Gnus development mailing list
 help / color / mirror / Atom feed
* find-files prompt discrepancy
@ 2019-03-21 19:45 Norman Walsh
  2019-03-21 20:01 ` Nevermind (was Re: find-files prompt discrepancy) Norman Walsh
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Norman Walsh @ 2019-03-21 19:45 UTC (permalink / raw)
  To: ding

[-- Attachment #1: Type: text/plain, Size: 811 bytes --]

Hi,

This is an extremely minor thing, but …

If I’m editing a buffer, perhaps *scratch*, then find-file
(helm-find-files actually) prompts: /Users/ndw/

If I’m in the gnus (v5.13) *Groups* buffer, it prompts: /Users/ndw

Note the absence of a trailing slash.

I don’t know how many times I’ve type C-x C-f /path/to/somewhere and
not gone where I expected.

Can anyone explain the discrepancy? (I usually run M-x gnus in the
*scratch* buffer, as it happens, though I doubt that’s relevant.)

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | A superstition is a premature
http://nwalsh.com/            | explanation that overstays its
                              | time.--George Iles

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Nevermind (was Re: find-files prompt discrepancy)
  2019-03-21 19:45 find-files prompt discrepancy Norman Walsh
@ 2019-03-21 20:01 ` Norman Walsh
  2019-03-21 20:15   ` Eric Abrahamsen
  2019-03-21 20:12 ` find-files prompt discrepancy Eric Abrahamsen
  2019-03-21 20:19 ` Andreas Schwab
  2 siblings, 1 reply; 7+ messages in thread
From: Norman Walsh @ 2019-03-21 20:01 UTC (permalink / raw)
  To: ding

[-- Attachment #1: Type: text/plain, Size: 719 bytes --]

> Can anyone explain the discrepancy? (I usually run M-x gnus in the
> *scratch* buffer, as it happens, though I doubt that’s relevant.)

Lived with this behavior for ages, asked a question about it, five
minutes later noticed for the first that the behavior is *in fact*
dependent on where the cursor is in the *Groups* buffer. So this is
definitely helm-find-files trying to be clever in some way.

Ignore me.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | What is written without effort is in
http://nwalsh.com/            | general read without pleasure.--Samuel
                              | Johnson

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: find-files prompt discrepancy
  2019-03-21 19:45 find-files prompt discrepancy Norman Walsh
  2019-03-21 20:01 ` Nevermind (was Re: find-files prompt discrepancy) Norman Walsh
@ 2019-03-21 20:12 ` Eric Abrahamsen
  2019-03-22 12:09   ` Jeffrey DeLeo
  2019-03-21 20:19 ` Andreas Schwab
  2 siblings, 1 reply; 7+ messages in thread
From: Eric Abrahamsen @ 2019-03-21 20:12 UTC (permalink / raw)
  To: ding

Norman Walsh <ndw@nwalsh.com> writes:

> Hi,
>
> This is an extremely minor thing, but …
>
> If I’m editing a buffer, perhaps *scratch*, then find-file
> (helm-find-files actually) prompts: /Users/ndw/
>
> If I’m in the gnus (v5.13) *Groups* buffer, it prompts: /Users/ndw
>
> Note the absence of a trailing slash.
>
> I don’t know how many times I’ve type C-x C-f /path/to/somewhere and
> not gone where I expected.
>
> Can anyone explain the discrepancy? (I usually run M-x gnus in the
> *scratch* buffer, as it happens, though I doubt that’s relevant.)

Looks like Gnus sets a value for `default-directory'. In my case it's
"~/", what is it for you?

Eric




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Nevermind (was Re: find-files prompt discrepancy)
  2019-03-21 20:01 ` Nevermind (was Re: find-files prompt discrepancy) Norman Walsh
@ 2019-03-21 20:15   ` Eric Abrahamsen
  0 siblings, 0 replies; 7+ messages in thread
From: Eric Abrahamsen @ 2019-03-21 20:15 UTC (permalink / raw)
  To: ding

Norman Walsh <ndw@nwalsh.com> writes:

>> Can anyone explain the discrepancy? (I usually run M-x gnus in the
>> *scratch* buffer, as it happens, though I doubt that’s relevant.)
>
> Lived with this behavior for ages, asked a question about it, five
> minutes later noticed for the first that the behavior is *in fact*
> dependent on where the cursor is in the *Groups* buffer. So this is
> definitely helm-find-files trying to be clever in some way.

And my default-directory question was a red herring...




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: find-files prompt discrepancy
  2019-03-21 19:45 find-files prompt discrepancy Norman Walsh
  2019-03-21 20:01 ` Nevermind (was Re: find-files prompt discrepancy) Norman Walsh
  2019-03-21 20:12 ` find-files prompt discrepancy Eric Abrahamsen
@ 2019-03-21 20:19 ` Andreas Schwab
  2 siblings, 0 replies; 7+ messages in thread
From: Andreas Schwab @ 2019-03-21 20:19 UTC (permalink / raw)
  To: Norman Walsh; +Cc: ding

On Mär 21 2019, Norman Walsh <ndw@nwalsh.com> wrote:

> If I’m editing a buffer, perhaps *scratch*, then find-file
> (helm-find-files actually) prompts: /Users/ndw/
>
> If I’m in the gnus (v5.13) *Groups* buffer, it prompts: /Users/ndw
>
> Note the absence of a trailing slash.

What is the value of default-directory?  That's what find-file uses as
the default.  If that value lacks a trailing slash, you need to find out
where that value was set.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: find-files prompt discrepancy
  2019-03-21 20:12 ` find-files prompt discrepancy Eric Abrahamsen
@ 2019-03-22 12:09   ` Jeffrey DeLeo
  2019-03-22 16:22     ` Andreas Schwab
  0 siblings, 1 reply; 7+ messages in thread
From: Jeffrey DeLeo @ 2019-03-22 12:09 UTC (permalink / raw)
  To: ding

Eric Abrahamsen <eric@ericabrahamsen.net> writes:

> Norman Walsh <ndw@nwalsh.com> writes:

> Looks like Gnus sets a value for `default-directory'. In my case it's
> "~/", what is it for you?

Isn't it wherever you were when you launched gnus? Also, you can change
it with M-x cd - helpful when extracting things




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: find-files prompt discrepancy
  2019-03-22 12:09   ` Jeffrey DeLeo
@ 2019-03-22 16:22     ` Andreas Schwab
  0 siblings, 0 replies; 7+ messages in thread
From: Andreas Schwab @ 2019-03-22 16:22 UTC (permalink / raw)
  To: Jeffrey DeLeo; +Cc: ding

On Mär 22 2019, Jeffrey DeLeo <JeffreyDeLeo@gmail.com> wrote:

> Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>
>> Norman Walsh <ndw@nwalsh.com> writes:
>
>> Looks like Gnus sets a value for `default-directory'. In my case it's
>> "~/", what is it for you?
>
> Isn't it wherever you were when you launched gnus?

You can set gnus-default-directory to override this.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-03-22 16:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-21 19:45 find-files prompt discrepancy Norman Walsh
2019-03-21 20:01 ` Nevermind (was Re: find-files prompt discrepancy) Norman Walsh
2019-03-21 20:15   ` Eric Abrahamsen
2019-03-21 20:12 ` find-files prompt discrepancy Eric Abrahamsen
2019-03-22 12:09   ` Jeffrey DeLeo
2019-03-22 16:22     ` Andreas Schwab
2019-03-21 20:19 ` Andreas Schwab

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 NNTP newsgroup(s).