unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#7210: 23.2; w32 emacsclient passes malformed -dir when run from a root directory
@ 2010-10-13 23:48 Paul Du Bois
  2010-10-14  2:57 ` Juanma Barranquero
  0 siblings, 1 reply; 6+ messages in thread
From: Paul Du Bois @ 2010-10-13 23:48 UTC (permalink / raw)
  To: 7210

This bug report will be sent to the Free Software Foundation,
not to your local site managers!
Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.

Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list,
and to the gnu.emacs.bug news group.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug.  If you can, give
a recipe starting from `emacs -Q':

1. run emacs -q
2. load-library "server"
3. setq server-log t
4. M-x server-start

In a shell:

[c:\dfp-stack]emacsclient -V
emacsclient 23.2
[c:\dfp-stack]emacsclient -e nil
  *server* log shows:
  Wed Oct 13 16:35:06 2010 server <127.0.0.1:2260>: Received -auth
[elided] -dir c:\dfp-stack/ -current-frame -eval nil

[c:\dfp-stack]cd ..
[C:\]emacsclient -e nil
  *server* log shows:
Wed Oct 13 16:35:23 2010 server <127.0.0.1:2261>: Received -auth
[elided] -dir C:\/ -current-frame -eval nil

In a non-root directory (c:\dfp-stack) the -dir argument contains a
single trailing slash.  In a root directory (c:\) the -dir argument
contains two trailing slashes.

The user-visible symptom is that files edited in a root directory have
an incorrect absolute path, one that looks like a UNC path. It causes
emacs to hang while windows times out looking for a server.

For example:

[C:\dfp-stack]emacsclient -n P4CONFIG
Wed Oct 13 16:40:57 2010 server <127.0.0.1:2265>: New file:
c:/dfp-stack/P4CONFIG

[C:\]emacsclient -n foo
Wed Oct 13 16:14:30 2010 server <127.0.0.1:2205>: New file: //foo.txt

If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
    `bt full' and `xbacktrace'.
For information about debugging Emacs, please read the file
c:/apps/emacs-23.2/etc/DEBUG.


In GNU Emacs 23.2.1 (i386-mingw-nt5.1.2600)
 of 2010-05-08 on G41R2F1
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4) --no-opt --cflags -Ic:/xpm/include'

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: ENU
  value of $XMODIFIERS: nil
  locale-coding-system: cp1252
  default enable-multibyte-characters: t

Major mode: Fundamental

Minor modes in effect:
  tooltip-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  blink-cursor-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
M-( <return> C-x k <return> n C-x k <return> M-( l
o a d - l i b r a r y SPC " s e r v e r " C-e C-j M-(
s e t q SPC s e r v e r - l o g SPC t C-e C-j M-( s
e r v e r - s t a t <backspace> r t C-e C-j M-x s e
r v e r - s t a r t <return> <down-mouse-1> <mouse-1>
C-x b SPC s e r <tab> <return> <help-echo> <down-mouse-1>
<mouse-1> M-x r e p o r t - e m <tab> <return>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
insert-parentheses: Buffer is read-only: #<buffer *GNU Emacs*>
Preparing tutorial ...
Save your position in the tutorial? (y or n)
Tutorial position not saved
Loading server...done
Restarting server

Load-path shadows:
None found.

Features:
(shadow sort mail-extr message ecomplete rfc822 mml mml-sec
password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231
rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc
time-date mm-util mail-prsvr gmm-utils wid-edit mailheader canlock sha1
hex-util hashcash mail-utils emacsbug server tutorial help-mode easymenu
view tooltip ediff-hook vc-hooks lisp-float-type mwheel dos-w32
disp-table ls-lisp w32-win w32-vars tool-bar dnd fontset image fringe
lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar
mldrag mouse jit-lock font-lock syntax facemenu font-core frame cham
georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese hebrew greek romanian slovak czech european ethiopic
indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple
abbrev loaddefs button minibuffer faces cus-face files text-properties
overlay md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process multi-tty emacs)





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

* bug#7210: 23.2; w32 emacsclient passes malformed -dir when run from a root directory
  2010-10-13 23:48 bug#7210: 23.2; w32 emacsclient passes malformed -dir when run from a root directory Paul Du Bois
@ 2010-10-14  2:57 ` Juanma Barranquero
  2010-10-15  0:59   ` Paul Du Bois
  0 siblings, 1 reply; 6+ messages in thread
From: Juanma Barranquero @ 2010-10-14  2:57 UTC (permalink / raw)
  To: Paul Du Bois; +Cc: 7210

On Thu, Oct 14, 2010 at 01:48, Paul Du Bois <paul.dubois@gmail.com> wrote:

> In a non-root directory (c:\dfp-stack) the -dir argument contains a
> single trailing slash.  In a root directory (c:\) the -dir argument
> contains two trailing slashes.

I can reproduce this, though I don't think it's a bug (though it is ugly).

> [C:\dfp-stack]emacsclient -n P4CONFIG
> Wed Oct 13 16:40:57 2010 server <127.0.0.1:2265>: New file:
> c:/dfp-stack/P4CONFIG
>
> [C:\]emacsclient -n foo
> Wed Oct 13 16:14:30 2010 server <127.0.0.1:2205>: New file: //foo.txt

I can reproduce this with 23.1, but not 23.2 or any later version:

Thu Oct 14 04:35:56 2010 server <127.0.0.1:50376>: New file:
c:/dfp-stack/P4CONFIG
[...]
Thu Oct 14 04:36:21 2010 server <127.0.0.1:50378>: New file: c:/foo
[...]


    Juanma





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

* bug#7210: 23.2; w32 emacsclient passes malformed -dir when run from a root directory
  2010-10-14  2:57 ` Juanma Barranquero
@ 2010-10-15  0:59   ` Paul Du Bois
  2010-10-15  1:03     ` Juanma Barranquero
  0 siblings, 1 reply; 6+ messages in thread
From: Paul Du Bois @ 2010-10-15  0:59 UTC (permalink / raw)
  To: Juanma Barranquero; +Cc: 7210

>> [C:\]emacsclient -n foo
>> Wed Oct 13 16:14:30 2010 server <127.0.0.1:2205>: New file: //foo.txt
>
> I can reproduce this with 23.1, but not 23.2 or any later version:

My apologies; I noticed the behavior in 23.1 and upgraded to 23.2
before reporting,
but only re-verified the emacsclient symptom.





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

* bug#7210: 23.2; w32 emacsclient passes malformed -dir when run from a root directory
  2010-10-15  0:59   ` Paul Du Bois
@ 2010-10-15  1:03     ` Juanma Barranquero
  2010-10-15  2:06       ` Paul Du Bois
  0 siblings, 1 reply; 6+ messages in thread
From: Juanma Barranquero @ 2010-10-15  1:03 UTC (permalink / raw)
  To: Paul Du Bois; +Cc: 7210

On Fri, Oct 15, 2010 at 02:59, Paul Du Bois <paul.dubois@gmail.com> wrote:

> I noticed the behavior in 23.1 and upgraded to 23.2
> before reporting,
> but only re-verified the emacsclient symptom.

Do you see the problem then with both emacs and emacsclient from release 23.2?

    Juanma





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

* bug#7210: 23.2; w32 emacsclient passes malformed -dir when run from a root directory
  2010-10-15  1:03     ` Juanma Barranquero
@ 2010-10-15  2:06       ` Paul Du Bois
  2010-10-15  8:09         ` Juanma Barranquero
  0 siblings, 1 reply; 6+ messages in thread
From: Paul Du Bois @ 2010-10-15  2:06 UTC (permalink / raw)
  To: Juanma Barranquero; +Cc: 7210

On Thu, Oct 14, 2010 at 6:03 PM, Juanma Barranquero <lekktu@gmail.com> wrote:
> Do you see the problem then with both emacs and emacsclient from release 23.2?

To clarify: the proper file is edited in release 23.2.





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

* bug#7210: 23.2; w32 emacsclient passes malformed -dir when run from a root directory
  2010-10-15  2:06       ` Paul Du Bois
@ 2010-10-15  8:09         ` Juanma Barranquero
  0 siblings, 0 replies; 6+ messages in thread
From: Juanma Barranquero @ 2010-10-15  8:09 UTC (permalink / raw)
  To: Paul Du Bois; +Cc: 7210-done

> To clarify: the proper file is edited in release 23.2.

OK, I'm closing this bug then.

Thanks,

    Juanma





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

end of thread, other threads:[~2010-10-15  8:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-13 23:48 bug#7210: 23.2; w32 emacsclient passes malformed -dir when run from a root directory Paul Du Bois
2010-10-14  2:57 ` Juanma Barranquero
2010-10-15  0:59   ` Paul Du Bois
2010-10-15  1:03     ` Juanma Barranquero
2010-10-15  2:06       ` Paul Du Bois
2010-10-15  8:09         ` Juanma Barranquero

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