* 27.0.91; default-directory launched via Dock MacOS
[not found] ` <C018521E-4104-46E6-93C7-F6BE0ECE2D42@gmail.com>
@ 2020-04-28 8:24 ` Tak Kunihiro
2020-05-03 2:52 ` bug#40924: " Tak Kunihiro
0 siblings, 1 reply; 6+ messages in thread
From: Tak Kunihiro @ 2020-04-28 8:24 UTC (permalink / raw)
To: bug-gnu-emacs; +Cc: help-gnu-emacs, tak.kunihiro
I want to launch emacs via Dock or Spotlight on MacOS.
From scratch buffer on emacs 26.3, C-x C-f prompts home directory
"~/". However, from scratch buffer on emacs 27.0.91, C-x C-f prompts
root directory "/", which is inconvenient.
When emacs 27.0.91 is started in home directory, C-x C-f prompts
"~/", as expected.
I think that C-x C-f should prompt home directory "~/" instead of root
directory "/" when emacs is launched via Dock or Spotlight. Since
that worked good until emacs 26.3, something was changed on emacs 27.
Can you store the behavior back? I show the recipe below to reproduce
the problem.
$ cd; mv .emacs.d dot.emacs.d
click emacs 27.0.91 on Dock
C-x b *scratch*
C-x C-f ; => Find file: /
M-x kill-emacs
$ ./Downloads/emacs-27.0.91/nextstep/Emacs.app/Contents/MacOS/Emacs &
C-x b *scratch*
C-x C-f ; => Find file: ~/
M-x kill-emacs
click emacs 26.3 on Dock
C-x b *scratch*
C-x C-f ;=> Find file: ~/
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#40924: 27.0.91; default-directory launched via Dock MacOS
2020-04-28 8:24 ` 27.0.91; default-directory launched via Dock MacOS Tak Kunihiro
@ 2020-05-03 2:52 ` Tak Kunihiro
2021-01-28 6:44 ` Lars Ingebrigtsen
0 siblings, 1 reply; 6+ messages in thread
From: Tak Kunihiro @ 2020-05-03 2:52 UTC (permalink / raw)
To: 40924
> From scratch buffer on emacs 26.3, C-x C-f prompts home directory
> "~/". However, from scratch buffer on emacs 27.0.91, C-x C-f prompts
> root directory "/", which is inconvenient.
When launched from Dock, on scratch buffer, default-directory is set to “~/“
and “/“ on 26.3 and 27.0.91, respectively. I checked environmental variables
on 26.3 and 27.0.91 as shown below. There is no difference, as expected.
* emacs 27.0.91 from dock
$ mv .emacs.d dot.emacs.d
launch emacs-27.0.91 from Dock
(switch-to-buffer "*scratch*")
(with-output-to-temp-buffer "*Result*"
(princ (format "default-directory=%s\n" default-directory))
(princ (mapconcat 'identity process-environment "\n")))
default-directory=/
TERM=dumb
LANG=en_JP.UTF-8
XPC_FLAGS=0x0
XPC_SERVICE_NAME=org.gnu.Emacs.5376
TMPDIR=/var/folders/j1/1j1j4tj11wjg257v4vj1qh7r0000gn/T/
__CF_USER_TEXT_ENCODING=0x1F5:0x0:0x0
SHELL=/bin/bash
HOME=/Users/tkk
SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.sn3vHBJoI0/Listeners
LOGNAME=tkk
PATH=/usr/bin:/bin:/usr/sbin:/sbin
USER=tkk
* emacs 27.0.91 from terminal
$ mv .emacs.d dot.emacs.d
$ ~/Downloads/emacs-27.0.91/nextstep/Emacs.app/Contents/MacOS/Emacs &
(switch-to-buffer "*scratch*")
(with-output-to-temp-buffer "*Result*"
(princ (format "default-directory=%s\n" default-directory))
(princ (mapconcat 'identity process-environment "\n")))
default-directory=~/
LANG=en_JP.UTF-8
_=/Users/tkk/Downloads/emacs-27.0.91/nextstep/Emacs.app/Contents/MacOS/Emacs
COLORTERM=truecolor
PERL_MM_OPT=INSTALL_BASE=/Users/tkk/perl5
ALTERNATE_EDITOR=/Applications/Emacs.app/Contents/MacOS/Emacs
LC_TERMINAL=iTerm2
PKG_CONFIG_PATH=/usr/local/opt/libxml2/lib/pkgconfig
LC_CTYPE=UTF-8
VISUAL=vi
LOGNAME=tkk
ITERM_SESSION_ID=w0t0p0:45E1D075-35E1-42BC-AE8D-50A61792E779
PERL_LOCAL_LIB_ROOT=/Users/tkk/perl5:/Users/tkk/perl5
RUNEMACS=/Applications/Emacs.app/Contents/MacOS/Emacs
LC_TERMINAL_VERSION=3.3.8
COLORFGBG=0;15
HOME=/Users/tkk
SHLVL=2
TEXINPUTS=.:/Users/tkk/texmf/tex/latex//:
HISTCONTROL=ignoredups
XPC_SERVICE_NAME=0
HISTIGNORE=[ ]*:&:bg:fg:exit
PS1=\[\e]2;\u@\h \w\a\e[1;32m\]\h\[\e[0m\]>
TMUX_PANE=%1
XPC_FLAGS=0x0
ITERM_PROFILE=Default
EDITOR=vi
PWD=/Users/tkk
WWW_HOME=http://dream.misasa.okayama-u.ac.jp/
PATH=/Users/tkk/perl5/bin:/Applications/Skim.app/Contents/SharedSupport/:/opt/local/bin:/opt/local/sbin:/opt/local/libexec/gnubin:/usr/sbin:/Users/tkk/bin:/Users/tkk/xtreeml/bin:/Users/tkk/xtreeml/perl:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/Users/tkk/perl5/bin:/Applications/Skim.app/Contents/SharedSupport/:/opt/local/bin:/opt/local/sbin:/opt/local/libexec/gnubin:/Users/tkk/bin:/Users/tkk/xtreeml/bin:/Users/tkk/xtreeml/perl
EMACSCLIENT=/Applications/Emacs.app/Contents/MacOS/bin/emacsclient
TMUX=/private/tmp/tmux-501/default,48628,0
BASH_SILENCE_DEPRECATION_WARNING=1
__CF_USER_TEXT_ENCODING=0x1F5:0x0:0x0
SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.sn3vHBJoI0/Listeners
USER=tkk
CDPATH=.:/Users/tkk:/Users/tkk/SpotDrive:/Users/tkk/Dropbox
LC_ALL=en_US.UTF-8
PERL_BADLANG=0
PERL_MB_OPT=--install_base "/Users/tkk/perl5"
TERM_SESSION_ID=w0t0p0:45E1D075-35E1-42BC-AE8D-50A61792E779
OLDPWD=/Users/tkk/.emacs.d
XTREEML=/Users/tkk/xtreeml
TERM_PROGRAM_VERSION=3.3.8
PERL5LIB=/Users/tkk/perl5/lib/perl5:/Users/tkk/xtreeml/perl:/Users/tkk/perl5/lib/perl5:/Users/tkk/xtreeml/perl:
TMPDIR=/var/folders/j1/1j1j4tj11wjg257v4vj1qh7r0000gn/T/
SHELL=/bin/bash
TERM=dumb
BSTINPUTS=.:/Users/tkk/texmf/bibtex/bst//:
TERM_PROGRAM=iTerm.app
MANPATH=/opt/local/share/man:/usr/share/man:/usr/local/share/man:/Library/TeX/Distributions/.DefaultTeX/Contents/Man:/opt/local/share/man
BIBINPUTS=.:/Users/tkk/texmf/bibtex/bib//:
* emacs 26.3 from Dock
$ mv .emacs.d dot.emacs.d
launch emacs-26.3 from Dock
(switch-to-buffer "*scratch*")
(with-output-to-temp-buffer "*Result*"
(princ (format "default-directory=%s\n" default-directory))
(princ (mapconcat 'identity process-environment "\n")))
default-directory=~/
TERM=dumb
LANG=en_JP.UTF-8
XPC_FLAGS=0x0
XPC_SERVICE_NAME=org.gnu.Emacs.4972
TMPDIR=/var/folders/j1/1j1j4tj11wjg257v4vj1qh7r0000gn/T/
__CF_USER_TEXT_ENCODING=0x1F5:0x0:0x0
SHELL=/bin/bash
HOME=/Users/tkk
SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.sn3vHBJoI0/Listeners
LOGNAME=tkk
PATH=/usr/bin:/bin:/usr/sbin:/sbin:/Applications/Emacs.app/Contents/MacOS/bin-x86_64-10_14:/Applications/Emacs.app/Contents/MacOS/libexec-x86_64-10_14
USER=tkk
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#40924: 27.0.91; default-directory launched via Dock MacOS
2020-05-03 2:52 ` bug#40924: " Tak Kunihiro
@ 2021-01-28 6:44 ` Lars Ingebrigtsen
2021-01-28 10:02 ` Tak Kunihiro
0 siblings, 1 reply; 6+ messages in thread
From: Lars Ingebrigtsen @ 2021-01-28 6:44 UTC (permalink / raw)
To: Tak Kunihiro; +Cc: 40924
Tak Kunihiro <tak.kunihiro@gmail.com> writes:
> When launched from Dock, on scratch buffer, default-directory is set to “~/“
> and “/“ on 26.3 and 27.0.91, respectively. I checked environmental variables
> on 26.3 and 27.0.91 as shown below. There is no difference, as expected.
I tested this (with Emacs 28) on Big Sur, and was unable to reproduce
it. I vaguely seem to remember discussion about this some months ago,
so I'm going to go ahead and guess that it really has been fixed, and
I'm closing this bug report. If the problem still persists for you in
Emacs 28, please respond to the debbugs address and we'll reopen.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#40924: 27.0.91; default-directory launched via Dock MacOS
2021-01-28 6:44 ` Lars Ingebrigtsen
@ 2021-01-28 10:02 ` Tak Kunihiro
2021-01-28 10:25 ` Lars Ingebrigtsen
0 siblings, 1 reply; 6+ messages in thread
From: Tak Kunihiro @ 2021-01-28 10:02 UTC (permalink / raw)
To: 40924, Lars Ingebrigtsen; +Cc: 国広卓也
>> When launched from Dock, on scratch buffer, default-directory is set to “~/“
>> and “/“ on 26.3 and 27.0.91, respectively. I checked environmental variables
>> on 26.3 and 27.0.91 as shown below. There is no difference, as expected.
>
> I tested this (with Emacs 28) on Big Sur, and was unable to reproduce
> it. I vaguely seem to remember discussion about this some months ago,
> so I'm going to go ahead and guess that it really has been fixed, and
> I'm closing this bug report.
I also confirmed that it is fixed on 28.0.50 running on macOS Catalina.
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#40924: 27.0.91; default-directory launched via Dock MacOS
2021-01-28 10:02 ` Tak Kunihiro
@ 2021-01-28 10:25 ` Lars Ingebrigtsen
2021-01-28 10:57 ` Andrii Kolomoiets
0 siblings, 1 reply; 6+ messages in thread
From: Lars Ingebrigtsen @ 2021-01-28 10:25 UTC (permalink / raw)
To: Tak Kunihiro; +Cc: 40924
Tak Kunihiro <tak.kunihiro@gmail.com> writes:
> I also confirmed that it is fixed on 28.0.50 running on macOS Catalina.
Thanks for checking.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#40924: 27.0.91; default-directory launched via Dock MacOS
2021-01-28 10:25 ` Lars Ingebrigtsen
@ 2021-01-28 10:57 ` Andrii Kolomoiets
0 siblings, 0 replies; 6+ messages in thread
From: Andrii Kolomoiets @ 2021-01-28 10:57 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: Tak Kunihiro, 40924
Lars Ingebrigtsen <larsi@gnus.org> writes:
> Tak Kunihiro <tak.kunihiro@gmail.com> writes:
>
>> I also confirmed that it is fixed on 28.0.50 running on macOS Catalina.
>
> Thanks for checking.
It's fixed in Bug#42836
Commit 16f4f266324077f5a50090bd1c8147c7cbe37e0e
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2021-01-28 10:57 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20200428.134710.626410507196052586.tak.kunihiro@gmail.com>
[not found] ` <C4710166-CC38-4E8D-A179-2518576852A7@gmail.com>
[not found] ` <C018521E-4104-46E6-93C7-F6BE0ECE2D42@gmail.com>
2020-04-28 8:24 ` 27.0.91; default-directory launched via Dock MacOS Tak Kunihiro
2020-05-03 2:52 ` bug#40924: " Tak Kunihiro
2021-01-28 6:44 ` Lars Ingebrigtsen
2021-01-28 10:02 ` Tak Kunihiro
2021-01-28 10:25 ` Lars Ingebrigtsen
2021-01-28 10:57 ` Andrii Kolomoiets
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).