unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#12824: 24.2.50; Strange default string brought by M-n after `C-x C-v'
@ 2012-11-07 16:17 Dani Moncayo
  2012-11-08  7:43 ` Glenn Morris
  0 siblings, 1 reply; 5+ messages in thread
From: Dani Moncayo @ 2012-11-07 16:17 UTC (permalink / raw)
  To: 12824

Recipe from "emacs -Q":

  C-x b h i <RET> / * h e l l o C-x C-v M-n

I observe that `M-n' writes in the minibuffer a default argument "c:/*hello".

If I repeat the experiment changing "/*hello" with, for example,
"hello" or "/*hello/", no default argument is brought by `M-n'.

Is this a bug no?  If not, what is the rule here for getting a default argument?

TIA.


In GNU Emacs 24.2.50.1 (i386-mingw-nt6.1.7601)
 of 2012-10-29 on DANI-PC
Bzr revision: 110729 dancol@dancol.org-20121029172429-z2gio8grvel4rzrv
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --with-gcc (4.7) --no-opt --enable-checking --cflags
 -I../../libs/libxpm-3.5.8/include -I../../libs/libxpm-3.5.8/src
 -I../../libs/libpng-1.4.10 -I../../libs/zlib-1.2.6
 -I../../libs/giflib-4.1.4-1/include -I../../libs/jpeg-6b-4/include
 -I../../libs/tiff-3.8.2-1/include
 -I../../libs/libxml2-2.7.8-w32-bin/include/libxml2
 -I../../libs/gnutls-3.0.16/include
 -I../../libs/libiconv-1.14-2-mingw32-dev/include'

Important settings:
  value of $LANG: ESN
  locale-coding-system: cp1252
  default enable-multibyte-characters: t

-- 
Dani Moncayo





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

* bug#12824: 24.2.50; Strange default string brought by M-n after `C-x C-v'
  2012-11-07 16:17 bug#12824: 24.2.50; Strange default string brought by M-n after `C-x C-v' Dani Moncayo
@ 2012-11-08  7:43 ` Glenn Morris
  2012-11-08  8:07   ` Dani Moncayo
  0 siblings, 1 reply; 5+ messages in thread
From: Glenn Morris @ 2012-11-08  7:43 UTC (permalink / raw)
  To: Dani Moncayo; +Cc: 12824

Dani Moncayo wrote:

> Is this a bug no? If not, what is the rule here for getting a default
> argument?

It's just a guess, supplied by ffap-file-at-point.





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

* bug#12824: 24.2.50; Strange default string brought by M-n after `C-x C-v'
  2012-11-08  7:43 ` Glenn Morris
@ 2012-11-08  8:07   ` Dani Moncayo
  2012-11-08  8:18     ` Glenn Morris
  0 siblings, 1 reply; 5+ messages in thread
From: Dani Moncayo @ 2012-11-08  8:07 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 12824

>> Is this a bug no? If not, what is the rule here for getting a default
>> argument?
>
> It's just a guess, supplied by ffap-file-at-point.

Well, I don't know how that function works, but I find the current
behavior annoying.

This is how I hit this bug: sometimes I open a C file, which begins
with a comment header at the very beginning of the file, like this:

/*******************
* blah blah blah...
**********************/

and when I open the file, I realize that that is not the file I want
to visit, and then intuitively I do "C-x C-v M-n".  Then I found quite
strange the "X:/*******************" I see in the minibuffer.


-- 
Dani Moncayo





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

* bug#12824: 24.2.50; Strange default string brought by M-n after `C-x C-v'
  2012-11-08  8:07   ` Dani Moncayo
@ 2012-11-08  8:18     ` Glenn Morris
  2012-11-08 16:50       ` Dani Moncayo
  0 siblings, 1 reply; 5+ messages in thread
From: Glenn Morris @ 2012-11-08  8:18 UTC (permalink / raw)
  To: Dani Moncayo; +Cc: 12824

Dani Moncayo wrote:

> Well, I don't know how that function works, but I find the current
> behavior annoying.

Probably you can set file-name-at-point-functions to nil to disable it.





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

* bug#12824: 24.2.50; Strange default string brought by M-n after `C-x C-v'
  2012-11-08  8:18     ` Glenn Morris
@ 2012-11-08 16:50       ` Dani Moncayo
  0 siblings, 0 replies; 5+ messages in thread
From: Dani Moncayo @ 2012-11-08 16:50 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 12824-done

>> Well, I don't know how that function works, but I find the current
>> behavior annoying.
>
> Probably you can set file-name-at-point-functions to nil to disable it.

Ok, so my case is is a false positive.

Let's close this bug, then.  Thank you.

-- 
Dani Moncayo





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

end of thread, other threads:[~2012-11-08 16:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-07 16:17 bug#12824: 24.2.50; Strange default string brought by M-n after `C-x C-v' Dani Moncayo
2012-11-08  7:43 ` Glenn Morris
2012-11-08  8:07   ` Dani Moncayo
2012-11-08  8:18     ` Glenn Morris
2012-11-08 16:50       ` Dani Moncayo

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).