From unknown Sun Jun 22 07:56:48 2025 X-Loop: help-debbugs@gnu.org Subject: bug#73728: 29.3; Specifing an --alternate-editor for emacscleintw.exe with custom --init-directory does not work on Windows Resent-From: Jonas =?UTF-8?Q?Gro=C3=9Fekath=C3=B6fer?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Oct 2024 10:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 73728 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 73728@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.17285577247985 (code B ref -1); Thu, 10 Oct 2024 10:56:01 +0000 Received: (at submit) by debbugs.gnu.org; 10 Oct 2024 10:55:24 +0000 Received: from localhost ([127.0.0.1]:58823 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1syqpG-00024e-R8 for submit@debbugs.gnu.org; Thu, 10 Oct 2024 06:55:24 -0400 Received: from lists.gnu.org ([209.51.188.17]:59436) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1syn6b-0006XP-T9 for submit@debbugs.gnu.org; Thu, 10 Oct 2024 02:57:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1syn6P-0004mB-TS for bug-gnu-emacs@gnu.org; Thu, 10 Oct 2024 02:56:49 -0400 Received: from sendmail.purelymail.com ([34.202.193.197]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1syn6M-0004Us-Vu for bug-gnu-emacs@gnu.org; Thu, 10 Oct 2024 02:56:49 -0400 DKIM-Signature: a=rsa-sha256; b=myOk01MplM0qLrEVVlVx4aa7oZs10b3TDBDqa/EkUEBmf6KAeSK1x7mSS3UOZgL8OYv1aPWfWUL8x7UZgzp9mEARa8EGnpGaqVSYU7Q5GoTGqPRF8HWKlkOy/KqcuO9vyr6lUdrRllff2tlgB5IGZO5RPeWM82IoqPo4Zb9fGizn6i4i0BsjHeoLE4by7e94orSWF95+N+egCIjYcPLwwMzN7wateSDsOZRu8n2gzUPIRzHGipfAW+hBZKjN3LCCY8gpEB6H7Qb7YFA7dnaNy6FZx5/UQv9BRFpJWUeARwN38Ft9evK9S597vBGS5U9E5R/WQi4wLd/mNDj5rf6U5w==; s=purelymail3; d=grszkth.fr; v=1; bh=AyQTJEot6NvkZgy+p0omu7GyGpfZqZRVvj/jxSBNB60=; h=Received:Date:From:To:Subject; DKIM-Signature: a=rsa-sha256; b=Wqj5gJhXxFfOR/LcYji1lt9pm2Vw+ZmUJQZMPYjT/qQKEjpZL5D8XdyLmi6esToEcUW9Vt8TsrnFZsiYV5kETTRzt5F+4sal/KYuXEKcZFAw3U6vHoCDzCWe1E1xr4bsoVzv1be4PhNU94svQqG10k4JWGmun4Wyz/aziSvEwiRDUXYT1PRAEbxUPHVXqfCXSsh9Aebf827TQfNa5DcdkuknIjZIlMq5mzzF7IdEz8EGglttajqqKttkxIf5lyTeP9HfAwOekKhfQ0E0EWTTKJj7n4doDX1wuxMnkETyNL4w6YQ9WPX2ZGJXfnC2kV5OuPIyO6xjH+8XZ8lTybxlVw==; s=purelymail3; d=purelymail.com; v=1; bh=AyQTJEot6NvkZgy+p0omu7GyGpfZqZRVvj/jxSBNB60=; h=Feedback-ID:Received:Date:From:To:Subject; Feedback-ID: 3122:761:null:purelymail X-Pm-Original-To: bug-gnu-emacs@gnu.org Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPA id 1336653577 for ; Thu, 10 Oct 2024 06:56:43 +0000 (UTC) MIME-Version: 1.0 Date: Thu, 10 Oct 2024 08:56:43 +0200 From: Jonas =?UTF-8?Q?Gro=C3=9Fekath=C3=B6fer?= User-Agent: Purely Mail via Roundcube/1.6.8 Message-ID: <7272c84ccb6bc7c39cb5b5cb1af4927f@purelymail.com> X-Sender: jonas@grszkth.fr Content-Type: multipart/alternative; boundary="=_9a31245fc02ae2258a1624b18582daf2" Received-SPF: pass client-ip=34.202.193.197; envelope-from=jonas@grszkth.fr; helo=sendmail.purelymail.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Mailman-Approved-At: Thu, 10 Oct 2024 06:55:21 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --=_9a31245fc02ae2258a1624b18582daf2 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed Hi all, I want emacsclientw.exe to start up an emacs daemon with a custom --init-directory in case no server is running. For that case, I think, I need to explicitly set the value for the "--alternate-editor"-flag to something like: -a "%UserProfile%\bin\emacs-29.3\bin\runemacs.exe --init-directory %APPDATA%\Dotfiles\emacs\.emacs.d\" However, doing so results in the following error: "file name or argument required". This is also true when specifing a relative path (i.e. AppData\Dotfiles\emacs\.emacs.d\). After some more trials with single and/or double qoutes (details see below), I got the impression that this behavior is unlikely intentional. And I am somewhat confident, that more then one oy my many attempts should've been successful. (Note that I raised this issue first here: https://emacs.stackexchange.com/a/82355/30098) For completeness, the full comand ("Target") I am trying to run is: %UserProfile%\bin\emacs-29.3\bin\emacsclientw.exe -a '%UserProfile%\bin\emacs-29.3\bin\runemacs.exe --init-directory "AppData\Dotfiles\emacs\.emacs.d\"' -n -c --server-file %APPDATA%\Dotfiles\emacs\.emacs.d\server\server that command starts in %UserProfile% ATM, I have as a work around a shortcut to emacscleintw.exe without an -a flag. Before using it, I once have to run: %UserProfile%\bin\emacs-29.3\bin\runemacs.exe --daemon ----init-directory %APPDATA%\Dotfiles\emacs\.emacs.d\ Obviously, I would rather have to have it all in one place. And here are the Details, regarding the use of quotes with or without relative path for --init-directory: For the several options using quotes, I got the following problems, depending on whether I put single or double quoutes for the whole argument or just the path: Double quotes around the argmument and single quotes for the path, using the full path: -a "%UserProfile%\bin\emacs-29.3\bin\runemacs.exe --init-directory '%APPDATA%\Dotfiles\emacs\.emacs.d\'" --> Warning: "Warning (initialization): Unable to create `user-emacs-directory' (c:/Users/gross20/'C:/Users/gross20/AppData/Roaming/Dotfiles/emacs/.emacs.d/'/)." Single quotes around the argmument and double quotes for the path, using the full path: -a '%UserProfile%\bin\emacs-29.3\bin\runemacs.exe --init-directory "%APPDATA%\Dotfiles\emacs\.emacs.d\"' --> Error: Try --help for more information Double quotes around the argmument and single quotes for the path, using a relative path: -a "%UserProfile%\bin\emacs-29.3\bin\runemacs.exe --init-directory 'AppData\Roaming\Dotfiles\emacs\.emacs.d\'" --> Strarts without errors or warning, but the user-emacs-directory is "c:/Users/XXX/'AppData/Roaming/Dotfiles/emacs/.emacs.d/'/" (Note the single quote in the folder name for AppData) Single quotes around the argmument and single quotes for the path, using a relative path: -a '%UserProfile%\bin\emacs-29.3\bin\runemacs.exe --init-directory "AppData\Dotfiles\emacs\.emacs.d\"' --> Error: Try --help for more information And one additional observation: From my many attempts, related or not, I also got the impression, that I am closer to what I want ommiting the --daemon flag within the argument for the -a flag. However, I need it when linking to runemacs.exe directly. This is my first bug report to this mailing list, hope it contributes a tiny tiny bit. (: Best Jonas In GNU Emacs 29.3 (build 2, x86_64-w64-mingw32) of 2024-03-24 built on AVALON Windowing system distributor 'Microsoft Corp.', version 10.0.19045 System Description: Microsoft Windows 10 Enterprise (v10.0.2009.19045.4894) Configured using: 'configure --with-modules --without-dbus --with-native-compilation=aot --without-compress-install --with-sqlite3 --with-tree-sitter CFLAGS=-O2' Configured features: ACL GIF GMP GNUTLS HARFBUZZ JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP NOTIFY W32NOTIFY PDUMPER PNG RSVG SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XPM ZLIB (NATIVE_COMP present but libgccjit not available) Important settings: value of $LANG: DEU locale-coding-system: cp1252 Major mode: Org-Agenda Week Ddl Grid Minor modes in effect: hl-line-mode: t server-mode: t consult-notes-org-headings-mode: t consult-notes-denote-mode: t denote-menu-bar-mode: t eat-eshell-mode: t shell-dirtrack-mode: t vertico-mode: t savehist-mode: t winner-mode: t save-place-mode: t global-auto-revert-mode: t recentf-mode: t windmove-mode: t tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t blink-cursor-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: c:/Users/XXX/Dotfiles/emacs/.emacs.d/elpa/transient-0.7.4/transient hides c:/Users/gross20/bin/emacs-29.3/share/emacs/29.3/lisp/transient Features: (shadow sort mail-extr emacsbug mule-util cal-move crm time-stamp tabify org-datetree org-capture timezone misearch multi-isearch cursor-sensor hl-line org-duration diary-lib diary-loaddefs cal-iso vc-git diff-mode easy-mmode vc-dispatcher org-indent oc-basic ol-eww eww url-queue thingatpt mm-url ol-rmail ol-mhe ol-irc ol-info ol-gnus nnselect gnus-art mm-uu mml2015 mm-view mml-smime smime gnutls dig gnus-sum shr pixel-fill kinsoku url-file svg dom gnus-group gnus-undo gnus-start gnus-dbus dbus xml gnus-cloud nnimap nnmail mail-source utf7 nnoo parse-time gnus-spec gnus-int gnus-range message sendmail yank-media puny rfc822 mml mml-sec epa derived epg rfc6068 epg-config mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev gmm-utils mailheader gnus-win gnus nnheader gnus-util mail-utils range mm-util mail-prsvr ol-docview doc-view jka-compr image-mode exif ol-bibtex bibtex iso8601 ol-bbdb ol-w3m ol-doi org-link-doi cl-extra help-mode face-remap org-agenda org-element org-persist xdg avl-tree server consult-notes-denote consult-notes-org-headings consult-notes consult-org consult denote dired dired-loaddefs xref project org-bookmark-heading bookmark pp mode-local ob-shell ob-R org-attach org-id org-refile org-tempo org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-src ob-comint org-pcomplete org-list org-footnote org-faces org-entities time-date noutline outline icons ob-emacs-lisp ob-core ob-eval org-cycle org-table ol rx org-fold org-fold-core org-keys oc org-loaddefs find-func cal-menu calendar cal-loaddefs org-compat tempo org-version org-macs format-spec esh-var esh-mode esh-cmd generator esh-ext esh-opt esh-proc esh-io esh-arg esh-module esh-groups esh-util files-x eat term ehelp shell pcomplete color orderless vertico-directory vertico wgrep grep compile text-property-search comint ansi-osc ansi-color savehist winner ring saveplace autorevert filenotify recentf tree-widget wid-edit windmove modus-operandi-theme modus-themes no-littering compat compat-30 finder-inf consult-notes-autoloads consult-recoll-autoloads consult-autoloads denote-autoloads eat-autoloads elpa-mirror-autoloads ess-autoloads magit-autoloads pcase git-commit-autoloads magit-section-autoloads dash-autoloads no-littering-autoloads orderless-autoloads org-bookmark-heading-autoloads quelpa-autoloads s-autoloads transient-autoloads vertico-autoloads wgrep-autoloads with-editor-autoloads info compat-autoloads package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie generate-lisp-file url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs password-cache json subr-x map byte-opt gv bytecomp byte-compile url-vars cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads w32notify w32 lcms2 multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 1381967 381324) (symbols 48 31590 3) (strings 32 149124 80555) (string-bytes 1 4074814) (vectors 16 79509) (vector-slots 8 1761299 703656) (floats 8 492 1171) (intervals 56 74316 5304) (buffers 984 16)) --=_9a31245fc02ae2258a1624b18582daf2 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=UTF-8

Hi all,

I want emacsclientw.exe to start up an emacs daemon with a custom --init= -directory in case no server is running. For that case, I think, I need to = explicitly set the value for the "--alternate-editor"-flag to something lik= e:

-a "%UserProfile%\bin\emacs-29.3\bin\runemacs.exe --init-directory %APPD= ATA%\Dotfiles\emacs\.emacs.d\"

However, doing so results in the following error: "file name or argument= required". This is also true when specifing a relative path (i.e. AppData\= Dotfiles\emacs\.emacs.d\).

After some more trials with single and/or double qoutes (details see bel= ow), I got the impression that this behavior is unlikely intentional. And I= am somewhat confident, that more then one oy my many attempts should've be= en successful. (Note that I raised this issue first here: https://emacs.stackexchange.com/a/= 82355/30098)

For completeness, the full comand ("Target") I am trying to run is:

%UserProfile%\bin\emacs-29.3\bin\emacsclientw.exe -a '%UserProfile%\bin\= emacs-29.3\bin\runemacs.exe --init-directory "AppData\Dotfiles\emacs\.emacs= =2Ed\"' -n -c --server-file %APPDATA%\Dotfiles\emacs\.emacs.d\server\server=

that command starts in

%UserProfile%

ATM, I have as a work around a shortcut to emacscleintw.exe without an -= a flag. Before using it, I once have to run:

%UserProfile%\bin\emacs-29.3\bin\runemacs.exe --daemon ----init-director= y %APPDATA%\Dotfiles\emacs\.emacs.d\

Obviously, I would rather have to have it all in one place.


And here are the Details, regarding the use of quotes with or without re= lative path for --init-directory:

For the several options using quotes, I got the following problems, depe= nding on whether I put single or double quoutes for the whole argument or j= ust the path:

Double quotes around the argmument and single quotes for the path, using= the full path:

-a "%UserProfile%\bin\emacs-29.3\bin\runemacs.exe --init-directory '%APP= DATA%\Dotfiles\emacs\.emacs.d\'"

--> Warning: "Warning (initialization): Unable to create `user-emacs-= directory' (c:/Users/gross20/'C:/Users/gross20/AppData/Roaming/Dotfiles/ema= cs/.emacs.d/'/)."

Single quotes around the argmument and double quotes for the path, using= the full path:

-a '%UserProfile%\bin\emacs-29.3\bin\runemacs.exe --init-directory "%APP= DATA%\Dotfiles\emacs\.emacs.d\"'

--> Error: Try --help for more information

Double quotes around the argmument and single quotes for the path, using= a relative path:

-a "%UserProfile%\bin\emacs-29.3\bin\runemacs.exe --init-directory 'AppD= ata\Roaming\Dotfiles\emacs\.emacs.d\'"


--> Strarts without errors or war= ning, but the user-emacs-directory is "c:/Users/XXX/'AppData/Roaming/Dotfil= es/emacs/.emacs.d/'/" (Note the single quote in the folder name for AppData= )

Single quotes around the argmument and single quotes for the path, using= a relative path:

-a '%UserProfile%\bin\emacs-29.3\bin\runemacs.exe --init-directory "AppD= ata\Dotfiles\emacs\.emacs.d\"'

--> Error: Try --help for more in= formation


And one additional observation: From my many attempts, related or not, I= also got the impression, that I am closer to what I want ommiting the --da= emon flag within the argument for the -a flag. However, I need it when link= ing to runemacs.exe directly.

This is my first bug report to this mailing list, hope it contributes a = tiny tiny bit. (:

Best

Jonas


In GNU Emacs 29.3 (build 2, x86_64-w64-mingw32) of 2024-03-24 built on AVALON
Windowing system distributor 'Microsoft Corp.', versi= on 10.0.19045
System Description: Microsoft Windows 10 Enterprise (v10= =2E0.2009.19045.4894)

Configured using:
 'configure --with-modules --without-dbus --= with-native-compilation=3Daot
 --without-compress-install --with-= sqlite3 --with-tree-sitter
 CFLAGS=3D-O2'

Configured features:
ACL GIF GMP GNUTLS HARFBUZZ JPEG JSON LCMS2 LI= BXML2 MODULES NATIVE_COMP
NOTIFY W32NOTIFY PDUMPER PNG RSVG SOUND SQLI= TE3 THREADS TIFF
TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XPM ZLIB

(NATIVE_COMP present but libgccjit not available)

Important settings:
  value of $LANG: DEU
  locale-c= oding-system: cp1252

Major mode: Org-Agenda Week Ddl Grid

Minor modes in effect:
  hl-line-mode: t
  server-mo= de: t
  consult-notes-org-headings-mode: t
  consult-no= tes-denote-mode: t
  denote-menu-bar-mode: t
  eat-eshe= ll-mode: t
  shell-dirtrack-mode: t
  vertico-mode: t  savehist-mode: t
  winner-mode: t
  save-pla= ce-mode: t
  global-auto-revert-mode: t
  recentf-mode:= t
  windmove-mode: t
  tooltip-mode: t
  glo= bal-eldoc-mode: t
  show-paren-mode: t
  electric-inden= t-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
=   blink-cursor-mode: t
  buffer-read-only: t
  lin= e-number-mode: t
  transient-mark-mode: t
  auto-compos= ition-mode: t
  auto-encryption-mode: t
  auto-compress= ion-mode: t

Load-path shadows:
c:/Users/XXX/Dotfiles/emacs/.emacs.d/elpa/transi= ent-0.7.4/transient hides c:/Users/gross20/bin/emacs-29.3/share/emacs/29.3/= lisp/transient

Features:
(shadow sort mail-extr emacsbug mule-util cal-move crm ti= me-stamp tabify
org-datetree org-capture timezone misearch multi-isear= ch cursor-sensor
hl-line org-duration diary-lib diary-loaddefs cal-iso= vc-git diff-mode
easy-mmode vc-dispatcher org-indent oc-basic ol-eww = eww url-queue
thingatpt mm-url ol-rmail ol-mhe ol-irc ol-info ol-gnus = nnselect
gnus-art mm-uu mml2015 mm-view mml-smime smime gnutls dig gnu= s-sum shr
pixel-fill kinsoku url-file svg dom gnus-group gnus-undo gnu= s-start
gnus-dbus dbus xml gnus-cloud nnimap nnmail mail-source utf7 n= noo
parse-time gnus-spec gnus-int gnus-range message sendmail yank-med= ia
puny rfc822 mml mml-sec epa derived epg rfc6068 epg-config mm-decod= e
mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drumsmailabbrev gmm-utils mailheader gnus-win gnus nnheader gnus-util
ma= il-utils range mm-util mail-prsvr ol-docview doc-view jka-compr
image-= mode exif ol-bibtex bibtex iso8601 ol-bbdb ol-w3m ol-doi
org-link-doi = cl-extra help-mode face-remap org-agenda org-element
org-persist xdg a= vl-tree server consult-notes-denote
consult-notes-org-headings consult= -notes consult-org consult denote
dired dired-loaddefs xref project or= g-bookmark-heading bookmark pp
mode-local ob-shell ob-R org-attach org= -id org-refile org-tempo org ob
ob-tangle ob-ref ob-lob ob-table ob-ex= p org-macro org-src ob-comint
org-pcomplete org-list org-footnote org-= faces org-entities time-date
noutline outline icons ob-emacs-lisp ob-c= ore ob-eval org-cycle org-table
ol rx org-fold org-fold-core org-keys = oc org-loaddefs find-func cal-menu
calendar cal-loaddefs org-compat te= mpo org-version org-macs format-spec
esh-var esh-mode esh-cmd generato= r esh-ext esh-opt esh-proc esh-io
esh-arg esh-module esh-groups esh-ut= il files-x eat term ehelp shell
pcomplete color orderless vertico-dire= ctory vertico wgrep grep compile
text-property-search comint ansi-osc = ansi-color savehist winner ring
saveplace autorevert filenotify recent= f tree-widget wid-edit windmove
modus-operandi-theme modus-themes no-l= ittering compat compat-30
finder-inf consult-notes-autoloads consult-r= ecoll-autoloads
consult-autoloads denote-autoloads eat-autoloads elpa-= mirror-autoloads
ess-autoloads magit-autoloads pcase git-commit-autolo= ads
magit-section-autoloads dash-autoloads no-littering-autoloads
orderless-autoloads org-bookmark-heading-autoloads quelpa-autoloads
s= -autoloads transient-autoloads vertico-autoloads wgrep-autoloads
with-= editor-autoloads info compat-autoloads package browse-url url
url-prox= y url-privacy url-expand url-methods url-history url-cookie
generate-l= isp-file url-domsuf url-util mailcap url-handlers url-parse
auth-sourc= e cl-seq eieio eieio-core cl-macs password-cache json subr-x
map byte-= opt gv bytecomp byte-compile url-vars cl-loaddefs cl-lib rmc
iso-trans= l tooltip cconv eldoc paren electric uniquify ediff-hook
vc-hooks lisp= -float-type elisp-mode mwheel dos-w32 ls-lisp disp-table
term/w32-win = w32-win w32-vars term/common-win tool-bar dnd fontset image
regexp-opt= fringe tabulated-list replace newcomment text-mode lisp-mode
prog-mod= e register page tab-bar menu-bar rfn-eshadow isearch easymenu
timer se= lect scroll-bar mouse jit-lock font-lock syntax font-core
term/tty-col= ors frame minibuffer nadvice seq simple cl-generic
indonesian philippi= ne cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet= lao korean japanese eucjp-ms cp51932 hebrew greek
romanian slovak cze= ch european ethiopic indian cyrillic chinese
composite emoji-zwj chars= cript charprop case-table epa-hook
jka-cmpr-hook help abbrev obarray o= closure cl-preloaded button loaddefs
theme-loaddefs faces cus-face mac= roexp files window text-properties
overlay sha1 md5 base64 format env = code-pages mule custom widget keymap
hashtable-print-readable backquot= e threads w32notify w32 lcms2 multi-tty
make-network-process native-co= mpile emacs)

Memory information:
((conses 16 1381967 381324)
 (symbols= 48 31590 3)
 (strings 32 149124 80555)
 (string-bytes = 1 4074814)
 (vectors 16 79509)
 (vector-slots 8 1761299= 703656)
 (floats 8 492 1171)
 (intervals 56 74316 5304= )
 (buffers 984 16))

--=_9a31245fc02ae2258a1624b18582daf2-- From unknown Sun Jun 22 07:56:48 2025 X-Loop: help-debbugs@gnu.org Subject: bug#73728: 29.3; Specifing an --alternate-editor for emacscleintw.exe with custom --init-directory does not work on Windows Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Oct 2024 11:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73728 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Jonas =?UTF-8?Q?Gro=C3=9Fekath=C3=B6fer?= Cc: 73728@debbugs.gnu.org Received: via spool by 73728-submit@debbugs.gnu.org id=B73728.172856042017109 (code B ref 73728); Thu, 10 Oct 2024 11:41:02 +0000 Received: (at 73728) by debbugs.gnu.org; 10 Oct 2024 11:40:20 +0000 Received: from localhost ([127.0.0.1]:58900 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1syrWl-0004RX-El for submit@debbugs.gnu.org; Thu, 10 Oct 2024 07:40:19 -0400 Received: from eggs.gnu.org ([209.51.188.92]:44994) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1syrWj-0004Lv-U2 for 73728@debbugs.gnu.org; Thu, 10 Oct 2024 07:40:18 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1syrWS-0007yo-TW; Thu, 10 Oct 2024 07:40:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=fWvgD6YeqloEb8hmWE7PZpgHiEa1Ts5hsID0HyFdD0c=; b=Mbqvatu/8sOdd+uNZLYg GJ4GyhHinrdnIs+9uATPKs6zCaozmATp1op14ihcTNRH3+Tv9+mo5HyiJTKYMdbaw0sVeovO0G8xl 5mYQxBLaGowciTNQL9Q0rginymlW7croh/KW4soE2ay696kmKqPCTqy7NF38xo/o3OMo80QP49xzw rOPiGi3hcX5VZYnsqCWtwqMcVeFaqOYYBvZUrw2JEuAe0UbXNM5gawEYkcx2AEVCkqQaDrc/VZj6M LUEEd8DdNmy9IX2FHGZTm1jODeKEZYD8g+rLtzH9xehIGZ4M33r7L/b3W0mLeUU+VXz9T7RzJeL2e P1ykBd1haZCxZQ==; Date: Thu, 10 Oct 2024 14:39:55 +0300 Message-Id: <86plo81910.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <7272c84ccb6bc7c39cb5b5cb1af4927f@purelymail.com> (bug-gnu-emacs@gnu.org) References: <7272c84ccb6bc7c39cb5b5cb1af4927f@purelymail.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Thu, 10 Oct 2024 08:56:43 +0200 > From: Jonas Großekathöfer via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > I want emacsclientw.exe to start up an emacs daemon with a custom --init-directory in case no server is > running. For that case, I think, I need to explicitly set the value for the "--alternate-editor"-flag to something > like: > > -a "%UserProfile%\bin\emacs-29.3\bin\runemacs.exe --init-directory > %APPDATA%\Dotfiles\emacs\.emacs.d\" Can you explain why you need a custom --init-directory in that case? > However, doing so results in the following error: "file name or argument required". This is also true when > specifing a relative path (i.e. AppData\Dotfiles\emacs\.emacs.d\). > > After some more trials with single and/or double qoutes (details see below), I got the impression that this > behavior is unlikely intentional. And I am somewhat confident, that more then one oy my many attempts > should've been successful. (Note that I raised this issue first here: > https://emacs.stackexchange.com/a/82355/30098) > > For completeness, the full comand ("Target") I am trying to run is: > > %UserProfile%\bin\emacs-29.3\bin\emacsclientw.exe -a '%UserProfile%\bin\emacs-29.3\bin\runemacs.exe - > -init-directory "AppData\Dotfiles\emacs\.emacs.d\"' -n -c --server-file > %APPDATA%\Dotfiles\emacs\.emacs.d\server\server > > that command starts in > > %UserProfile% > > ATM, I have as a work around a shortcut to emacscleintw.exe without an -a flag. Before using it, I once have > to run: > > %UserProfile%\bin\emacs-29.3\bin\runemacs.exe --daemon ----init-directory > %APPDATA%\Dotfiles\emacs\.emacs.d\ > > Obviously, I would rather have to have it all in one place. > > And here are the Details, regarding the use of quotes with or without relative path for --init-directory: > > For the several options using quotes, I got the following problems, depending on whether I put single or > double quoutes for the whole argument or just the path: > > Double quotes around the argmument and single quotes for the path, using the full path: > > -a "%UserProfile%\bin\emacs-29.3\bin\runemacs.exe --init-directory > '%APPDATA%\Dotfiles\emacs\.emacs.d\'" > > --> Warning: "Warning (initialization): Unable to create `user-emacs-directory' > (c:/Users/gross20/'C:/Users/gross20/AppData/Roaming/Dotfiles/emacs/.emacs.d/'/)." > > Single quotes around the argmument and double quotes for the path, using the full path: > > -a '%UserProfile%\bin\emacs-29.3\bin\runemacs.exe --init-directory > "%APPDATA%\Dotfiles\emacs\.emacs.d\"' > > --> Error: Try --help for more information > > Double quotes around the argmument and single quotes for the path, using a relative path: > > -a "%UserProfile%\bin\emacs-29.3\bin\runemacs.exe --init-directory > 'AppData\Roaming\Dotfiles\emacs\.emacs.d\'" > > --> Strarts without errors or warning, but the user-emacs-directory is > "c:/Users/XXX/'AppData/Roaming/Dotfiles/emacs/.emacs.d/'/" (Note the single quote in the folder name for > AppData) > > Single quotes around the argmument and single quotes for the path, using a relative path: > > -a '%UserProfile%\bin\emacs-29.3\bin\runemacs.exe --init-directory "AppData\Dotfiles\emacs\.emacs.d\"' > > --> Error: Try --help for more information Don't use single quotes, they are not supported by Windows. But I admit I don't understand why you needed nested quotes at all. What happens if you use double quotes around the entire argument of the -a option? From unknown Sun Jun 22 07:56:48 2025 X-Loop: help-debbugs@gnu.org Subject: bug#73728: 29.3; Specifing an --alternate-editor for emacscleintw.exe with custom --init-directory does not work on Windows Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Oct 2024 13:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73728 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Jonas =?UTF-8?Q?Gro=C3=9Fekath=C3=B6fer?= Cc: 73728@debbugs.gnu.org Received: via spool by 73728-submit@debbugs.gnu.org id=B73728.17285666165147 (code B ref 73728); Thu, 10 Oct 2024 13:24:02 +0000 Received: (at 73728) by debbugs.gnu.org; 10 Oct 2024 13:23:36 +0000 Received: from localhost ([127.0.0.1]:59036 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1syt8h-0001Kx-L1 for submit@debbugs.gnu.org; Thu, 10 Oct 2024 09:23:36 -0400 Received: from eggs.gnu.org ([209.51.188.92]:51230) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1syt8f-0001Kj-6z for 73728@debbugs.gnu.org; Thu, 10 Oct 2024 09:23:34 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1syt8N-0000dC-Od; Thu, 10 Oct 2024 09:23:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=Hl99ptkZl/rLbh6XCcgjO1NX1foZx9KKjc/Uc32ntdE=; b=VBd7AsR+ad0ZKvJ+Gq6i i/kEBuqAaVfWWnZJALIcJDPQpjd8RPwfjuFXQrpmmiYAtd1TG1ILFqpWENoxI9LQO+Ltx/DciO/GX 6pMPNMs7MMxaDbGZBpSiOOJshV1cneheU5+od+mQFOYiqw+Rxrcftj4sW2orOBquSdr6KWj53bTGf hwSLconKLopBV3XrLQWSkddKcjyJ4wVdRutoX/VKKJgIY4MJTnq+8lpp3F5L0yNvwR9/i3qqBcuuM H0elyAPmCDkywDJxit+7r0WD5lWPM/5zsTkY1u2US4ck1SCLaJxcl+qpyjTY8cmVnYv+UYvPkEvfV mWr5CWLDGfvtrw==; Date: Thu, 10 Oct 2024 16:23:12 +0300 Message-Id: <86jzeg148v.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <280234ee7b69e2ad82f991a534a9254b@purelymail.com> (message from Jonas =?UTF-8?Q?Gro=C3=9Fekath=C3=B6fer?= on Thu, 10 Oct 2024 14:32:30 +0200) References: <7272c84ccb6bc7c39cb5b5cb1af4927f@purelymail.com> <86plo81910.fsf@gnu.org> <280234ee7b69e2ad82f991a534a9254b@purelymail.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Thu, 10 Oct 2024 14:32:30 +0200 > From: Jonas Großekathöfer > Cc: 73728@debbugs.gnu.org > > Can you explain why you need a custom --init-directory in that case? > > Quality of life improvement: I have my configs online in a git-repo. I manage the dotfiles on my Linux machine > with stow. On my Windows machine I want Emacs to follow that structure. As such I want to link to the config > via --init-directory, so that I can place the Dotfiles-Folder where ever I want. However, I can't place the > Dotfiles folder so, that the ".emacs.d/"-folder ends up under the parent "~/" as well. Then you need to be aware that --init-directory does NOT replace your user home directory for all purposes. See the description of what this does in the Emacs user manual for details. > I already tried a route via tangling to different targets for Linux and Windows. But that introduced other > problems... so I decided to follow this route. Seems the most straightforward to me actually. For the start I > decided to place it under "~/" on Windows as well. As such I ended up with that specific location. But AFAICT > my problem is location agnostic. > > I am open to suggestions if I am missing the super obvious solution here. (: Why not load a specific file from your usual .emacs instead? If that avoids the need to quote stuff in complex ways, it's a net win for you. > Don't use single quotes, they are not supported by Windows. > > But I admit I don't understand why you needed nested quotes at all. > What happens if you use double quotes around the entire argument of > the -a option? > > > Do you mean like how in the first example I gave? > > -a "%UserProfile%\bin\emacs-29.3\bin\runemacs.exe --init-directory %AppData%\Dotfiles\emacs\.emacs.d\" > > That one gives "file name or Argument required. Try --help" First, remove the last backslash before the closing quote" it prevents the closing quote from being recognized. And if that doesn't help, maybe we have a real bug. From unknown Sun Jun 22 07:56:48 2025 X-Loop: help-debbugs@gnu.org Subject: bug#73728: 29.3; Specifing an --alternate-editor for emacscleintw.exe with custom --init-directory does not work on Windows Resent-From: Jonas =?UTF-8?Q?Gro=C3=9Fekath=C3=B6fer?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Oct 2024 16:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73728 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 73728@debbugs.gnu.org Received: via spool by 73728-submit@debbugs.gnu.org id=B73728.17285771299928 (code B ref 73728); Thu, 10 Oct 2024 16:19:01 +0000 Received: (at 73728) by debbugs.gnu.org; 10 Oct 2024 16:18:49 +0000 Received: from localhost ([127.0.0.1]:60285 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1syvsF-0002a1-A7 for submit@debbugs.gnu.org; Thu, 10 Oct 2024 12:18:49 -0400 Received: from sendmail.purelymail.com ([34.202.193.197]:42936) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sysLf-000797-FQ for 73728@debbugs.gnu.org; Thu, 10 Oct 2024 08:32:59 -0400 DKIM-Signature: a=rsa-sha256; b=RdA6bID4Ds0XHAsBZJ5+6qi61cKxIKsS+BSPxp4kbj8umhFGqw0hcoAdFBJEpLX0kFSl91e4R1+buePAdhRR6GqdCXsOYq5Q9Atm6klHPgc1yDTgHuq1Y69o7pJUpubyl/0jFCir2HSwEVucZnGhc1BjhRU8y6nFCTJe36mVtNnrvfNah6gUO+dvZY3NTzm5Ve4xH7hO8h1VDpVan1TQTtZ1oQXUs8sDHV/CkPFLRJBrIU7pzoFVhDi7ic4nX+kL0WD/kf+R70DZQNLLLVYNEqfUft5EK2Eo6Kwsl7xxaGWiIE/IvgsRdIMLlKlenkMmG86GIO8PS8yNLGuVCy1o5A==; s=purelymail3; d=grszkth.fr; v=1; bh=K7qAR+JGE2HTIwU0BFgTB7jgq0cHyqglOHZiDF7vit8=; h=Received:Date:From:To:Subject; DKIM-Signature: a=rsa-sha256; b=qrtV42ppU3i9Wbo6M3eyYWhcNevANuEEfp5Fp4e3nkn+11pOdGzyBCc+hxU6xfLO9cN0To/MpuDW8uhcTHZCYXI7r1/9mkabW/r2yZ/z12E2QPigXbG+hX7vyarXVIPZeInmMWQAgRIOxiUN5xEL26i1a3ZUX0cm1wgdILuQHXqTW/TmHPyZs4+js0WHJKfGrG6M48L3WNrGCw3qTSk1tromydNQPQb9E/QfPC7maIygFNrvGZARkVKEwRk194TxiIlVdqJ6wuS/XMu7XQjSwbr69DTVjfiFu0mjNC4aNR9snlP7h2KPsASQUTSjWppUNIwNNdAmmzbZWPKIwb5S2A==; s=purelymail3; d=purelymail.com; v=1; bh=K7qAR+JGE2HTIwU0BFgTB7jgq0cHyqglOHZiDF7vit8=; h=Feedback-ID:Received:Date:From:To:Subject; Feedback-ID: 3122:761:null:purelymail X-Pm-Original-To: 73728@debbugs.gnu.org Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPA id 702876426; Thu, 10 Oct 2024 12:32:30 +0000 (UTC) MIME-Version: 1.0 Date: Thu, 10 Oct 2024 14:32:30 +0200 From: Jonas =?UTF-8?Q?Gro=C3=9Fekath=C3=B6fer?= In-Reply-To: <86plo81910.fsf@gnu.org> References: <7272c84ccb6bc7c39cb5b5cb1af4927f@purelymail.com> <86plo81910.fsf@gnu.org> User-Agent: Purely Mail via Roundcube/1.6.8 Message-ID: <280234ee7b69e2ad82f991a534a9254b@purelymail.com> X-Sender: jonas@grszkth.fr Content-Type: multipart/alternative; boundary="=_57dbc93cfb40098b96d16b2139ea41ba" X-Spam-Score: 0.0 (/) X-Mailman-Approved-At: Thu, 10 Oct 2024 12:18:45 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=_57dbc93cfb40098b96d16b2139ea41ba Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8; format=flowed X-MIME-Autoconverted: from 8bit to quoted-printable by Purelymail Am 2024-10-10 13:39, schrieb Eli Zaretskii: >> Date: Thu, 10 Oct 2024 08:56:43 +0200 >> From: Jonas Gro=C3=9Fekath=C3=B6fer via "Bug reports for GNU Emacs, >> the Swiss army knife of text editors" >>=20 >> I want emacsclientw.exe to start up an emacs daemon with a custom=20 >> --init-directory in case no server is >> running. For that case, I think, I need to explicitly set the value=20 >> for the "--alternate-editor"-flag to something >> like: >>=20 >> -a "%UserProfile%\bin\emacs-29.3\bin\runemacs.exe --init-directory >> %APPDATA%\Dotfiles\emacs\.emacs.d\" >=20 > Can you explain why you need a custom --init-directory in that case? Quality of life improvement: I have my configs online in a git-repo. I=20 manage the dotfiles on my Linux machine with stow. On my Windows machine=20 I want Emacs to follow that structure. As such I want to link to the=20 config via --init-directory, so that I can place the Dotfiles-Folder=20 where ever I want. However, I can't place the Dotfiles folder so, that=20 the ".emacs.d/"-folder ends up under the parent "~/" as well. I already tried a route via tangling to different targets for Linux and=20 Windows. But that introduced other problems... so I decided to follow=20 this route. Seems the most straightforward to me actually. For the start=20 I decided to place it under "~/" on Windows as well. As such I ended up=20 with that specific location. But AFAICT my problem is location agnostic. I am open to suggestions if I am missing the super obvious solution=20 here. (: >> However, doing so results in the following error: "file name or=20 >> argument required". This is also true when >> specifing a relative path (i.e. AppData\Dotfiles\emacs\.emacs.d\). >>=20 >> After some more trials with single and/or double qoutes (details see=20 >> below), I got the impression that this >> behavior is unlikely intentional. And I am somewhat confident, that=20 >> more then one oy my many attempts >> should've been successful. (Note that I raised this issue first here: >> https://emacs.stackexchange.com/a/82355/30098) >>=20 >> For completeness, the full comand ("Target") I am trying to run is: >>=20 >> %UserProfile%\bin\emacs-29.3\bin\emacsclientw.exe -a=20 >> '%UserProfile%\bin\emacs-29.3\bin\runemacs.exe - >> -init-directory "AppData\Dotfiles\emacs\.emacs.d\"' -n -c=20 >> --server-file >> %APPDATA%\Dotfiles\emacs\.emacs.d\server\server >>=20 >> that command starts in >>=20 >> %UserProfile% >>=20 >> ATM, I have as a work around a shortcut to emacscleintw.exe without an= =20 >> -a flag. Before using it, I once have >> to run: >>=20 >> %UserProfile%\bin\emacs-29.3\bin\runemacs.exe --daemon=20 >> ----init-directory >> %APPDATA%\Dotfiles\emacs\.emacs.d\ >>=20 >> Obviously, I would rather have to have it all in one place. >>=20 >> And here are the Details, regarding the use of quotes with or without=20 >> relative path for --init-directory: >>=20 >> For the several options using quotes, I got the following problems,=20 >> depending on whether I put single or >> double quoutes for the whole argument or just the path: >>=20 >> Double quotes around the argmument and single quotes for the path,=20 >> using the full path: >>=20 >> -a "%UserProfile%\bin\emacs-29.3\bin\runemacs.exe --init-directory >> '%APPDATA%\Dotfiles\emacs\.emacs.d\'" >>=20 >> --> Warning: "Warning (initialization): Unable to create=20 >> `user-emacs-directory' >> (c:/Users/gross20/'C:/Users/gross20/AppData/Roaming/Dotfiles/emacs/.emac= s.d/'/)." >>=20 >> Single quotes around the argmument and double quotes for the path,=20 >> using the full path: >>=20 >> -a '%UserProfile%\bin\emacs-29.3\bin\runemacs.exe --init-directory >> "%APPDATA%\Dotfiles\emacs\.emacs.d\"' >>=20 >> --> Error: Try --help for more information >>=20 >> Double quotes around the argmument and single quotes for the path,=20 >> using a relative path: >>=20 >> -a "%UserProfile%\bin\emacs-29.3\bin\runemacs.exe --init-directory >> 'AppData\Roaming\Dotfiles\emacs\.emacs.d\'" >>=20 >> --> Strarts without errors or warning, but the user-emacs-directory is >> "c:/Users/XXX/'AppData/Roaming/Dotfiles/emacs/.emacs.d/'/" (Note the=20 >> single quote in the folder name for >> AppData) >>=20 >> Single quotes around the argmument and single quotes for the path,=20 >> using a relative path: >>=20 >> -a '%UserProfile%\bin\emacs-29.3\bin\runemacs.exe --init-directory=20 >> "AppData\Dotfiles\emacs\.emacs.d\"' >>=20 >> --> Error: Try --help for more information >=20 > Don't use single quotes, they are not supported by Windows. >=20 > But I admit I don't understand why you needed nested quotes at all. > What happens if you use double quotes around the entire argument of > the -a option? Do you mean like how in the first example I gave? -a "%UserProfile%\bin\emacs-29.3\bin\runemacs.exe --init-directory=20 %AppData%\Dotfiles\emacs\.emacs.d\" That one gives "file name or Argument required. Try --help" Best Jonas --=_57dbc93cfb40098b96d16b2139ea41ba Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=UTF-8

Am 2024-10-10 13:39, schrieb Eli Zaretskii:

Date: Thu, 10 Oct 2024 08:56:43 +0200
From:  = ;Jonas Großekathöfer via "Bug reports for GNU Emacs,
 = the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>

I want emacsclientw.exe to= start up an emacs daemon with a custom --init-directory in case no server = is
running. For that case, I think, I need to explicitly set the value= for the "--alternate-editor"-flag to something
like:

-a "%= UserProfile%\bin\emacs-29.3\bin\runemacs.exe --init-directory
%APPDATA= %\Dotfiles\emacs\.emacs.d\"

Can you explain why you need a custom --init-directory in that case?<= /div>
=  
=  
= Quality of life improvement: I have my configs online in a git-repo. I mana= ge the dotfiles on my Linux machine with stow. On my Windows machine I want= Emacs to follow that structure. As such I want to link to the config via -= -init-directory, so that I can place the Dotfiles-Folder where ever I want.= However, I can't place the Dotfiles folder so, that the ".emacs.d/"-folder= ends up under the parent "~/" as well.
=  
= I already tried a route via tangling to different targets for Linux and Win= dows. But that introduced other problems... so I decided to follow this rou= te. Seems the most straightforward to me actually. For the start I decided = to place it under "~/" on Windows as well. As such I ended up with that spe= cific location. But AFAICT my problem is location agnostic.
=  
= I am open to suggestions if I am missing the super obvious solution here. (= :
=  

However, doing so results in the following error: "fil= e name or argument required". This is also true when
specifing a relat= ive path (i.e. AppData\Dotfiles\emacs\.emacs.d\).

After some mor= e trials with single and/or double qoutes (details see below), I got the im= pression that this
behavior is unlikely intentional. And I am somewhat= confident, that more then one oy my many attempts
should've been succ= essful. (Note that I raised this issue first here:
https://emacs.stackexchange.com/a/82355/30098)

For= completeness, the full comand ("Target") I am trying to run is:

%UserProfile%\bin\emacs-29.3\bin\emacsclientw.exe -a '%UserProfile%\bin\e= macs-29.3\bin\runemacs.exe -
-init-directory "AppData\Dotfiles\emacs\.= emacs.d\"' -n -c --server-file
%APPDATA%\Dotfiles\emacs\.emacs.d\serve= r\server

that command starts in

%UserProfile%
<= br />ATM, I have as a work around a shortcut to emacscleintw.exe without an= -a flag. Before using it, I once have
to run:

%UserProfile= %\bin\emacs-29.3\bin\runemacs.exe --daemon ----init-directory
%APPDATA= %\Dotfiles\emacs\.emacs.d\

Obviously, I would rather have to hav= e it all in one place.

And here are the Details, regarding the u= se of quotes with or without relative path for --init-directory:

For the several options using quotes, I got the following problems, depend= ing on whether I put single or
double quoutes for the whole argument o= r just the path:

Double quotes around the argmument and single q= uotes for the path, using the full path:

-a "%UserProfile%\bin\e= macs-29.3\bin\runemacs.exe --init-directory
'%APPDATA%\Dotfiles\emacs\= =2Eemacs.d\'"

--> Warning: "Warning (initialization): Unable = to create `user-emacs-directory'
(c:/Users/gross20/'C:/Users/gross20/A= ppData/Roaming/Dotfiles/emacs/.emacs.d/'/)."

Single quotes aroun= d the argmument and double quotes for the path, using the full path:
<= br />-a '%UserProfile%\bin\emacs-29.3\bin\runemacs.exe --init-directory
"%APPDATA%\Dotfiles\emacs\.emacs.d\"'

--> Error: Try --help= for more information

Double quotes around the argmument and sin= gle quotes for the path, using a relative path:

-a "%UserProfile= %\bin\emacs-29.3\bin\runemacs.exe --init-directory
'AppData\Roaming\Do= tfiles\emacs\.emacs.d\'"

--> Strarts without errors or warnin= g, but the user-emacs-directory is
"c:/Users/XXX/'AppData/Roaming/Dotf= iles/emacs/.emacs.d/'/" (Note the single quote in the folder name for
= AppData)

Single quotes around the argmument and single quotes fo= r the path, using a relative path:

-a '%UserProfile%\bin\emacs-2= 9.3\bin\runemacs.exe --init-directory "AppData\Dotfiles\emacs\.emacs.d\"'
--> Error: Try --help for more information

Don't use single quotes, they are not supported by Windows.

But I admit I don't understand why you needed nested quotes at all.
= What happens if you use double quotes around the entire argument of
th= e -a option?
 
Do you mean like how in the = first example I gave?
 
-a "%UserProfile%\bin\emacs-= 29.3\bin\runemacs.exe --init-directory %AppData%\Dotfiles\emacs\.emacs.d\"<= /div>
 
That one gives "file name or= Argument required. Try --help"
 
Best
Jonas
 
--=_57dbc93cfb40098b96d16b2139ea41ba-- From unknown Sun Jun 22 07:56:48 2025 X-Loop: help-debbugs@gnu.org Subject: bug#73728: 29.3; Specifing an --alternate-editor for emacscleintw.exe with custom --init-directory does not work on Windows Resent-From: =?UTF-8?Q?Sebasti=C3=A1n_?= =?UTF-8?Q?Mon=C3=ADa?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Oct 2024 18:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73728 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Jonas =?UTF-8?Q?Gro=C3=9Fekath=C3=B6fer?= Cc: 73728@debbugs.gnu.org, Eli Zaretskii Received: via spool by 73728-submit@debbugs.gnu.org id=B73728.172858315930228 (code B ref 73728); Thu, 10 Oct 2024 18:00:02 +0000 Received: (at 73728) by debbugs.gnu.org; 10 Oct 2024 17:59:19 +0000 Received: from localhost ([127.0.0.1]:60456 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1syxRW-0007rU-HW for submit@debbugs.gnu.org; Thu, 10 Oct 2024 13:59:18 -0400 Received: from fout-a3-smtp.messagingengine.com ([103.168.172.146]:57469) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1syxRT-0007rD-6S for 73728@debbugs.gnu.org; Thu, 10 Oct 2024 13:59:16 -0400 Received: from phl-compute-12.internal (phl-compute-12.phl.internal [10.202.2.52]) by mailfout.phl.internal (Postfix) with ESMTP id 5DB62138024A; Thu, 10 Oct 2024 13:58:58 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-12.internal (MEProxy); Thu, 10 Oct 2024 13:58:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sebasmonia.com; h=cc:cc:content-transfer-encoding:content-type:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:subject:subject:to:to; s=fm2; t=1728583138; x=1728669538; bh=f/aQjR1RToNerELwFVhDbDvUPR7sINZo gyri40DFO5g=; b=ABGghnwwzTWDVUixmhOLmwvY2ByYUKkwcvsqyuPrcw+sUxZH x7FxJwDU09y8GSF+f1IS5xQ599UPLonuu85eJ1zOrZfHdqZjk4XcdVVjQ9N8ZiR0 MDuxYi8Q4z+4iAM6L6D9A/3kEDH7hPlB/2dA2G8DLwJXwI+Takap8A8QxmWF9U8/ EDySxRo/DpnkODHUwOReQzWJhrPaRU4tiBvR4az/aK5KS2SWw8UcpInekb+y/2CH a5JNyPv0Q3TC4aDYUJ4D8m3Ntaq46MT+nKFGdMbZCzPTkyRYVvAliJhY46ea61C6 KmTabZ6hXFg2mxELCEUvivcMULeaYQhTlbIojQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1728583138; x= 1728669538; bh=f/aQjR1RToNerELwFVhDbDvUPR7sINZogyri40DFO5g=; b=c g09RvyS7N8OngWtuG9VwXrfN8BO58f/LTDRKjcOuYB12nKCB6Gpsfp9WscTKrUwR 897LnvI+z1Lk7mG2fp7Fyn1h57CGLYarQKSoO5oDXfCVWb10KpCUnu74QCUDfbze gasxS9oluTTihoDB6yeL29nnhgNhevnUufc+etBxEY5tTfUbqU1FLOD9PUEH1YUw hygaRhKrokhNVJikUH2CPCSPUqlqQ54KGMDD0YL0UZtgAgkeOggDeKGBMVVOTasg Fyp3Kwj3qsrlFDH7E4/U6lfGiPXTv0jgXeKLPrr0RtmMceyLRu54OppEK9LOKL5c wnwpwrb5tgRQBC6cSfqag== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrvdefhedguddvvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpefhvfevufgjfhgffffkgggtgfesthhqredttder udenucfhrhhomhepufgvsggrshhtihojnhcuofhonhovrgcuoehsvggsrghsthhirghnse hsvggsrghsmhhonhhirgdrtghomheqnecuggftrfgrthhtvghrnheptddtleethedvjefg keetudetffefhedugfehffelleeigeefueeitdelkeefudevnecuffhomhgrihhnpehsvg gsrghsmhhonhhirgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhep mhgrihhlfhhrohhmpehsvggsrghsthhirghnsehsvggsrghsmhhonhhirgdrtghomhdpnh gspghrtghpthhtohepfedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepjeefjedv keesuggvsggsuhhgshdrghhnuhdrohhrghdprhgtphhtthhopegvlhhiiiesghhnuhdroh hrghdprhgtphhtthhopehjohhnrghssehgrhhsiihkthhhrdhfrh X-ME-Proxy: Feedback-ID: iab2c46da:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 10 Oct 2024 13:58:57 -0400 (EDT) From: =?UTF-8?Q?Sebasti=C3=A1n_?= =?UTF-8?Q?Mon=C3=ADa?= In-Reply-To: <280234ee7b69e2ad82f991a534a9254b@purelymail.com> ("Jonas =?UTF-8?Q?Gro=C3=9Fekath=C3=B6fer?="'s message of "Thu, 10 Oct 2024 14:32:30 +0200") References: <7272c84ccb6bc7c39cb5b5cb1af4927f@purelymail.com> <86plo81910.fsf@gnu.org> <280234ee7b69e2ad82f991a534a9254b@purelymail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Date: Thu, 10 Oct 2024 13:58:57 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Jonas Gro=DFekath=F6fer writes:=20=20 > Quality of life improvement: I have my configs online in a git-repo. I m= anage the dotfiles on my Linux machine with stow. On my Windows machine I w= ant > Emacs to follow that structure. As such I want to link to the config via= --init-directory, so that I can place the Dotfiles-Folder where ever I wan= t. However, > I can't place the Dotfiles folder so, that the ".emacs.d/"-folder ends u= p under the parent "~/" as well. > I am open to suggestions if I am missing the super obvious solution here= . (: I am using a "junction" to link ~/.emacs.d to the directory where I cloned my Emacs config. I don't know if that helps. Unlike symlinks, junctions don't need admin rights. --=20 Sebasti=E1n Mon=EDa https://site.sebasmonia.com/ From unknown Sun Jun 22 07:56:48 2025 X-Loop: help-debbugs@gnu.org Subject: bug#73728: 29.3; Specifing an --alternate-editor for emacscleintw.exe with custom --init-directory does not work on Windows Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Oct 2024 18:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73728 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: =?UTF-8?Q?Sebasti=C3=A1n_?= =?UTF-8?Q?Mon=C3=ADa?= Cc: 73728@debbugs.gnu.org, jonas@grszkth.fr Received: via spool by 73728-submit@debbugs.gnu.org id=B73728.1728583950691 (code B ref 73728); Thu, 10 Oct 2024 18:13:02 +0000 Received: (at 73728) by debbugs.gnu.org; 10 Oct 2024 18:12:30 +0000 Received: from localhost ([127.0.0.1]:60495 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1syxeH-0000B4-OB for submit@debbugs.gnu.org; Thu, 10 Oct 2024 14:12:30 -0400 Received: from eggs.gnu.org ([209.51.188.92]:51302) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1syxeF-0000Ap-Nc for 73728@debbugs.gnu.org; Thu, 10 Oct 2024 14:12:28 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1syxdy-00081N-HP; Thu, 10 Oct 2024 14:12:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=tkP+jfBK0oAEP0csQS/UDU3FX3YjLKIfuSCz2igLElc=; b=n7QoUVxmgYxSj4zzH6d6 ncArtdtSJ1cC0q4o7YnZ7XxF96FWG6WbKilxSrbNnoBgmsYgtbDcJcSNN6HBPrSvjMFirnQSJixgY bSeBgkj1zHLYnaBJ2p5cIXojrrqhthrhKDWCOfeIYat/doVDRwhWZi8cSOZFPDcWUxJy6D4U6bImF 3o2qn0/Yk62HKkez7YWYPjG+0bMlxwAUUAg/+e1Mmy7F+6xLSyK9f25KjDg/yAEqFiFILLNp04j0n PfHRZW9CEM0BAXNBqetnqPySeyvq/93W2L7MVFbx7sPbcBBbaFrOQclg/+mirZ3lbQsY1PSyV29lf Bnk7Xqaw0W2QKA==; Date: Thu, 10 Oct 2024 21:12:03 +0300 Message-Id: <86a5fb25fw.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: (message from =?UTF-8?Q?Sebasti=C3=A1n_?= =?UTF-8?Q?Mon=C3=ADa?= on Thu, 10 Oct 2024 13:58:57 -0400) References: <7272c84ccb6bc7c39cb5b5cb1af4927f@purelymail.com> <86plo81910.fsf@gnu.org> <280234ee7b69e2ad82f991a534a9254b@purelymail.com> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Sebastián Monía > Cc: Eli Zaretskii , 73728@debbugs.gnu.org > Date: Thu, 10 Oct 2024 13:58:57 -0400 > > > Jonas Großekathöfer writes: > > Quality of life improvement: I have my configs online in a git-repo. I manage the dotfiles on my Linux machine with stow. On my Windows machine I want > > Emacs to follow that structure. As such I want to link to the config via --init-directory, so that I can place the Dotfiles-Folder where ever I want. However, > > I can't place the Dotfiles folder so, that the ".emacs.d/"-folder ends up under the parent "~/" as well. > > > I am open to suggestions if I am missing the super obvious solution here. (: > > I am using a "junction" to link ~/.emacs.d to the directory where I > cloned my Emacs config. I don't know if that helps. > Unlike symlinks, junctions don't need admin rights. Why not simply change the directory to which the HOME variable points? From unknown Sun Jun 22 07:56:48 2025 X-Loop: help-debbugs@gnu.org Subject: bug#73728: 29.3; Specifing an --alternate-editor for emacscleintw.exe with custom --init-directory does not work on Windows Resent-From: =?UTF-8?Q?Sebasti=C3=A1n_?= =?UTF-8?Q?Mon=C3=ADa?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Oct 2024 18:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73728 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 73728@debbugs.gnu.org, jonas@grszkth.fr Received: via spool by 73728-submit@debbugs.gnu.org id=B73728.17285846093058 (code B ref 73728); Thu, 10 Oct 2024 18:24:02 +0000 Received: (at 73728) by debbugs.gnu.org; 10 Oct 2024 18:23:29 +0000 Received: from localhost ([127.0.0.1]:60512 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1syxou-0000nG-IS for submit@debbugs.gnu.org; Thu, 10 Oct 2024 14:23:28 -0400 Received: from fhigh-a1-smtp.messagingengine.com ([103.168.172.152]:54749) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1syxos-0000n0-Cz for 73728@debbugs.gnu.org; Thu, 10 Oct 2024 14:23:27 -0400 Received: from phl-compute-03.internal (phl-compute-03.phl.internal [10.202.2.43]) by mailfhigh.phl.internal (Postfix) with ESMTP id 86D3B11400A8; Thu, 10 Oct 2024 14:23:09 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-03.internal (MEProxy); Thu, 10 Oct 2024 14:23:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sebasmonia.com; h=cc:cc:content-transfer-encoding:content-type:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:subject:subject:to:to; s=fm2; t=1728584589; x=1728670989; bh=wAaI06wEmHE+ajWZybkstl47G0HSkIae 7LAkT8/c7VQ=; b=ou8WkY5h3+L9X+WeOlksqn4mIqxvKfvlL99IZWkO+hh66X+m iv0nLqmYh45KdGPcKm//1Sghv38W5XbZPgpSzIUrbIdueY1HlZua/ViMtKceP2OM IS1B56U66gZwXanlimxYu/oQo7LA9VqrWT1fF7T8KHeMyEIy0EV+m8fiD247oFef tfpeMWp9iWfX5hBRd/FL/25VselAyQfsJP7giTy5VJQJHTdeJmS1L7R4w5V7hX5q X/4nV2of2JsmIicHkGHIW+3e2dq3YmANrgtL5/JO4sgBf6wBB0LSXJGLJGYGqMGz oFRlV8+O9UxQRHhJ4XOY35EZ8FziEsD+GG/dfw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1728584589; x= 1728670989; bh=wAaI06wEmHE+ajWZybkstl47G0HSkIae7LAkT8/c7VQ=; b=G 38FWPnApm6weVAR0iBW3HzGJfZZWeZGIJ6nHSZB2MYP2Q5xfY2ko2aDxM1qBpx/0 6yV+VFzavifoNwNpTeZOXitpoKornX3T9aSAdIEWJuhgkcnyucMmS9pmaVuf1BRc UMZaNqDWZTLqNVR2gER+lrfFDrtp+Kx9R4M0TV45G6OxWc9ZYpyVxqttZJDgvLxS SFzGzIplE79DAH68w1vFcHhzvMZDVCDTnJbFDpMhq4ciuNdX84V8buvB6JOUTQsQ 55mD7vdQd+7hv/llg211hdzwfCugu0Ucy3XyXFWMLulgMf04MWtSnwGT+Rci5Z6S fqWj1jfCHoSGKb5M/u8eA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrvdefhedguddvjecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpefhvfevufgjfhffkfgfgggtgfesthhqredttder udenucfhrhhomhepufgvsggrshhtihojnhcuofhonhovrgcuoehsvggsrghsthhirghnse hsvggsrghsmhhonhhirgdrtghomheqnecuggftrfgrthhtvghrnhepjeefkeetveeuvdff hedtgeeukedtveekveethfdvgfffieeiieetuefgvdeiveeknecuffhomhgrihhnpehsvg gsrghsmhhonhhirgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhep mhgrihhlfhhrohhmpehsvggsrghsthhirghnsehsvggsrghsmhhonhhirgdrtghomhdpnh gspghrtghpthhtohepfedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepjeefjedv keesuggvsggsuhhgshdrghhnuhdrohhrghdprhgtphhtthhopehjohhnrghssehgrhhsii hkthhhrdhfrhdprhgtphhtthhopegvlhhiiiesghhnuhdrohhrgh X-ME-Proxy: Feedback-ID: iab2c46da:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 10 Oct 2024 14:23:09 -0400 (EDT) From: =?UTF-8?Q?Sebasti=C3=A1n_?= =?UTF-8?Q?Mon=C3=ADa?= In-Reply-To: <86a5fb25fw.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 10 Oct 2024 21:12:03 +0300") References: <7272c84ccb6bc7c39cb5b5cb1af4927f@purelymail.com> <86plo81910.fsf@gnu.org> <280234ee7b69e2ad82f991a534a9254b@purelymail.com> <86a5fb25fw.fsf@gnu.org> Date: Thu, 10 Oct 2024 14:23:08 -0400 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Eli Zaretskii writes: > Why not simply change the directory to which the HOME variable points? My dotfiles repository has more things I don't need/want in my Windows HOME. But I did that in the past too, yes. --=20 Sebasti=E1n Mon=EDa https://site.sebasmonia.com/ From unknown Sun Jun 22 07:56:48 2025 X-Loop: help-debbugs@gnu.org Subject: bug#73728: 29.3; Specifing an --alternate-editor for emacscleintw.exe with custom --init-directory does not work on Windows Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Oct 2024 18:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73728 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Jonas =?UTF-8?Q?Gro=C3=9Fekath=C3=B6fer?= Cc: 73728@debbugs.gnu.org, sebastian@sebasmonia.com Received: via spool by 73728-submit@debbugs.gnu.org id=B73728.17285851905143 (code B ref 73728); Thu, 10 Oct 2024 18:34:02 +0000 Received: (at 73728) by debbugs.gnu.org; 10 Oct 2024 18:33:10 +0000 Received: from localhost ([127.0.0.1]:60552 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1syxyI-0001Kt-0h for submit@debbugs.gnu.org; Thu, 10 Oct 2024 14:33:10 -0400 Received: from eggs.gnu.org ([209.51.188.92]:60798) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1syxyF-0001Kd-JK for 73728@debbugs.gnu.org; Thu, 10 Oct 2024 14:33:08 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1syxxy-0001te-Im; Thu, 10 Oct 2024 14:32:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=3dSavQrBuuP6geKWuqri+fr9x4su32Dgf+5OonSzpFk=; b=O3Kf0P3EVc6uPzAa/N7m mZvVQTXWvd6g7YnHZSzKJ0TRJblW82wNkl05hUte/IyvENZHKTbRoPgzz2sNHLzRTgqYYHJ95T7mL bbOzj84q+f4Hqdzy5tDo/IB8l4TU3JYCULGqhrdyrzbACe0mRRTf0PRs3VMjwRFSz3syH8pX2TDie gCwTKI0Zt1DKH59gAtyjUc3exRjM2GddJ1tnMQ9P6Z+6LsuNvvy1vz8F1P9Pwre6gUgJjHBCV/cHq ktsfrYVZ4Oi0jZzn7hFqvac4+OV/EgDL6Sikahb6RmUM0SzMLvx0Tzfp1uERfF0X+bd2UyIPs7kDC O/b89S+ECAcQZQ==; Date: Thu, 10 Oct 2024 21:32:46 +0300 Message-Id: <867caf24hd.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <8A03740D-08EA-4AA5-A124-D1DA942A3E25@grszkth.fr> (message from Jonas =?UTF-8?Q?Gro=C3=9Fekath=C3=B6fer?= on Thu, 10 Oct 2024 20:27:46 +0200) References: <86a5fb25fw.fsf@gnu.org> <8A03740D-08EA-4AA5-A124-D1DA942A3E25@grszkth.fr> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Jonas Großekathöfer > Date: Thu, 10 Oct 2024 20:27:46 +0200 > Cc: Sebastián Monía , > 73728@debbugs.gnu.org > > Can‘t Test test your suggestions right now. But as Sebastian suggests, I need a solution that does not involve admin rights. If I can use environment variables I could also try the ALTERNATE_EDITOR one… AFAIK, setting environment variables for your user (as opposed to system-wide) does not need admin rights. From unknown Sun Jun 22 07:56:48 2025 X-Loop: help-debbugs@gnu.org Subject: bug#73728: 29.3; Specifing an --alternate-editor for emacscleintw.exe with custom --init-directory does not work on Windows Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 14 Oct 2024 14:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73728 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Jonas =?UTF-8?Q?Gro=C3=9Fekath=C3=B6fer?= Cc: 73728@debbugs.gnu.org Received: via spool by 73728-submit@debbugs.gnu.org id=B73728.172891562723951 (code B ref 73728); Mon, 14 Oct 2024 14:21:02 +0000 Received: (at 73728) by debbugs.gnu.org; 14 Oct 2024 14:20:27 +0000 Received: from localhost ([127.0.0.1]:39457 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t0Lvu-0006DO-6b for submit@debbugs.gnu.org; Mon, 14 Oct 2024 10:20:27 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47172) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t0Lvn-00069I-6M for 73728@debbugs.gnu.org; Mon, 14 Oct 2024 10:20:19 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t0Lpb-00006N-0b; Mon, 14 Oct 2024 10:13:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=CeGjt8M/TT3/et3IA020+rgAaQOc3/n8XIIGhNM5Joo=; b=F26y62ot4e7HGjAB8ynr 80sMJpvAGSTlDvZFBK8TA32X3+Hsphbj2L5hA9trnK44zQl/nKWn2+zhvQX56T2HKGK1AZMI7rfJi nKvTvHCV0FpYSiqvy3mSktwNr9HZ/IpB7KjzsoeoTPlkP2yDIQgx+zkhjjP26uUvUWizU/p3hy+MV zR8c3rFNCnFmqKi9SwEZb6ErU4UYWamA8wTeL7iqZEXsb6XjOn7k7ETniX3Xp3Y3qLEAoT8LtKd3a 3+cXxs68GmxrJuVXtR/3/UPgvtWmel4+HBP/4LkVzw4Kw2VABUgFUiNMQ8wQltdbkYHJeLp8HL1yJ E57SXWi/Mbm4BQ==; Date: Mon, 14 Oct 2024 17:13:38 +0300 Message-Id: <86msj6srfx.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <91f8c7d28fa5981019ae2aea0dccb3ab@purelymail.com> (message from Jonas =?UTF-8?Q?Gro=C3=9Fekath=C3=B6fer?= on Mon, 14 Oct 2024 11:08:05 +0200) References: <7272c84ccb6bc7c39cb5b5cb1af4927f@purelymail.com> <86plo81910.fsf@gnu.org> <280234ee7b69e2ad82f991a534a9254b@purelymail.com> <86jzeg148v.fsf@gnu.org> <91f8c7d28fa5981019ae2aea0dccb3ab@purelymail.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Mon, 14 Oct 2024 11:08:05 +0200 > From: Jonas Großekathöfer > Cc: 73728@debbugs.gnu.org > > Am 2024-10-10 15:23, schrieb Eli Zaretskii: > > Then you need to be aware that --init-directory does NOT replace your > user home directory for all purposes. See the description of what > this does in the Emacs user manual for details. > > > Thank you, for the information. > > I had a look at the manual. Can you point me to the section you are referring to? I couldn't find anything > meaningful in that regard. "C.2 Initial Options" is the only page (besides Antinews and an Index) where I find > "--init-directory" mentioned. On top, I read some more pages like "50.4.4 How Emacs Finds Your Init File", but > this includes no description or comments with regard to the --init-directory. Here's the text in the manual (its latest version for Emacs 30): ‘--init-directory’ Specify the directory to use when looking for the Emacs init files. Note that this merely overrides the value of ‘user-emacs-directory’, the directory which Emacs usually determines as side effect of searching for your init file (*note Find Init::), but does not change the search for the ‘~/.emacs’ init file. In particular, if there's no ‘init.el’ file in the directory named by this option, Emacs will find and use ‘init.el’ it would have used without this option (but will search for your other per-user Emacs files in the directory specified by this option). If you want to force Emacs to use ‘init.el’ file in this directory, make sure it exists there before starting Emacs with this option. If this is unclear, feel free to ask specific questions. From unknown Sun Jun 22 07:56:48 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Jonas =?UTF-8?Q?Gro=C3=9Fekath=C3=B6fer?= Subject: bug#73728: closed (Re: bug#73728: 29.3; Specifing an --alternate-editor for emacscleintw.exe with custom --init-directory does not work on Windows) Message-ID: References: <86o73msrmt.fsf@gnu.org> <7272c84ccb6bc7c39cb5b5cb1af4927f@purelymail.com> X-Gnu-PR-Message: they-closed 73728 X-Gnu-PR-Package: emacs Reply-To: 73728@debbugs.gnu.org Date: Mon, 14 Oct 2024 14:21:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1728915663-24158-1" This is a multi-part message in MIME format... ------------=_1728915663-24158-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #73728: 29.3; Specifing an --alternate-editor for emacscleintw.exe with cus= tom --init-directory does not work on Windows which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 73728@debbugs.gnu.org. --=20 73728: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D73728 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1728915663-24158-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 73728-done) by debbugs.gnu.org; 14 Oct 2024 14:20:28 +0000 Received: from localhost ([127.0.0.1]:39460 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t0Lvv-0006EG-En for submit@debbugs.gnu.org; Mon, 14 Oct 2024 10:20:28 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47172) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t0Lvo-00069I-A6 for 73728-done@debbugs.gnu.org; Mon, 14 Oct 2024 10:20:20 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t0LlM-00087H-LP; Mon, 14 Oct 2024 10:09:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=XTwU2x0+IaYXyIglyrdFa+33Dgll6b1zt4FP46otSI4=; b=gm8sznWAYOmbDfh07mII YeVXi0Bne7XOr6fEEglEno4iWxvQ9bJ2mxsaQeEs9e6pKlbtrjLSpAckZwBdjDxvLBBASBRmFy/OB 081VSJ0Ret0xrufnhgLK6jt5SvPNhBYy/lH9xdmg6EHpnybIEjQ9VMRl3qaDmxPvQKSk9Y9OUhKtO 1TVDTVWO0K07440RLihu5YBnVIqlnc9Syb4L1tyGFeAr7j+RbhmCYfgil5L8lX39VwyI/UGa/SC8e +UTYqnJg6wHdkpwODEDgsxsifFra2EP3YqlM+gWvbDcYWqUDAsSuz567LfrAZ66/mFN/EpsRmp4Uc IdwBNO8r9OnBkg==; Date: Mon, 14 Oct 2024 17:09:30 +0300 Message-Id: <86o73msrmt.fsf@gnu.org> From: Eli Zaretskii To: Jonas =?utf-8?Q?Gro=C3=9Fekath=C3=B6fer?= In-Reply-To: <9a27c88f6c98477d1a6bd2b944a93ba0@purelymail.com> (message from Jonas =?utf-8?Q?Gro=C3=9Fekath=C3=B6fer?= on Mon, 14 Oct 2024 10:14:45 +0200) Subject: Re: bug#73728: 29.3; Specifing an --alternate-editor for emacscleintw.exe with custom --init-directory does not work on Windows References: <7272c84ccb6bc7c39cb5b5cb1af4927f@purelymail.com> <86plo81910.fsf@gnu.org> <280234ee7b69e2ad82f991a534a9254b@purelymail.com> <86jzeg148v.fsf@gnu.org> <9a27c88f6c98477d1a6bd2b944a93ba0@purelymail.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 73728-done Cc: 73728-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Mon, 14 Oct 2024 10:14:45 +0200 > From: Jonas Großekathöfer > Cc: 73728@debbugs.gnu.org > > Do you mean like how in the first example I gave? > > -a "%UserProfile%\bin\emacs-29.3\bin\runemacs.exe --init-directory > %AppData%\Dotfiles\emacs\.emacs.d\" > > That one gives "file name or Argument required. Try --help" > > First, remove the last backslash before the closing quote" it prevents > the closing quote from being recognized. And if that doesn't help, > maybe we have a real bug. > > > That was it! Thank you, it's working now. (: Thanks, I'm therefore closing this non-bug. ------------=_1728915663-24158-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 10 Oct 2024 10:55:24 +0000 Received: from localhost ([127.0.0.1]:58823 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1syqpG-00024e-R8 for submit@debbugs.gnu.org; Thu, 10 Oct 2024 06:55:24 -0400 Received: from lists.gnu.org ([209.51.188.17]:59436) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1syn6b-0006XP-T9 for submit@debbugs.gnu.org; Thu, 10 Oct 2024 02:57:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1syn6P-0004mB-TS for bug-gnu-emacs@gnu.org; Thu, 10 Oct 2024 02:56:49 -0400 Received: from sendmail.purelymail.com ([34.202.193.197]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1syn6M-0004Us-Vu for bug-gnu-emacs@gnu.org; Thu, 10 Oct 2024 02:56:49 -0400 DKIM-Signature: a=rsa-sha256; b=myOk01MplM0qLrEVVlVx4aa7oZs10b3TDBDqa/EkUEBmf6KAeSK1x7mSS3UOZgL8OYv1aPWfWUL8x7UZgzp9mEARa8EGnpGaqVSYU7Q5GoTGqPRF8HWKlkOy/KqcuO9vyr6lUdrRllff2tlgB5IGZO5RPeWM82IoqPo4Zb9fGizn6i4i0BsjHeoLE4by7e94orSWF95+N+egCIjYcPLwwMzN7wateSDsOZRu8n2gzUPIRzHGipfAW+hBZKjN3LCCY8gpEB6H7Qb7YFA7dnaNy6FZx5/UQv9BRFpJWUeARwN38Ft9evK9S597vBGS5U9E5R/WQi4wLd/mNDj5rf6U5w==; s=purelymail3; d=grszkth.fr; v=1; bh=AyQTJEot6NvkZgy+p0omu7GyGpfZqZRVvj/jxSBNB60=; h=Received:Date:From:To:Subject; DKIM-Signature: a=rsa-sha256; b=Wqj5gJhXxFfOR/LcYji1lt9pm2Vw+ZmUJQZMPYjT/qQKEjpZL5D8XdyLmi6esToEcUW9Vt8TsrnFZsiYV5kETTRzt5F+4sal/KYuXEKcZFAw3U6vHoCDzCWe1E1xr4bsoVzv1be4PhNU94svQqG10k4JWGmun4Wyz/aziSvEwiRDUXYT1PRAEbxUPHVXqfCXSsh9Aebf827TQfNa5DcdkuknIjZIlMq5mzzF7IdEz8EGglttajqqKttkxIf5lyTeP9HfAwOekKhfQ0E0EWTTKJj7n4doDX1wuxMnkETyNL4w6YQ9WPX2ZGJXfnC2kV5OuPIyO6xjH+8XZ8lTybxlVw==; s=purelymail3; d=purelymail.com; v=1; bh=AyQTJEot6NvkZgy+p0omu7GyGpfZqZRVvj/jxSBNB60=; h=Feedback-ID:Received:Date:From:To:Subject; Feedback-ID: 3122:761:null:purelymail X-Pm-Original-To: bug-gnu-emacs@gnu.org Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPA id 1336653577 for ; Thu, 10 Oct 2024 06:56:43 +0000 (UTC) MIME-Version: 1.0 Date: Thu, 10 Oct 2024 08:56:43 +0200 From: =?UTF-8?Q?Jonas_Gro=C3=9Fekath=C3=B6fer?= To: bug-gnu-emacs@gnu.org Subject: 29.3; Specifing an --alternate-editor for emacscleintw.exe with custom --init-directory does not work on Windows User-Agent: Purely Mail via Roundcube/1.6.8 Message-ID: <7272c84ccb6bc7c39cb5b5cb1af4927f@purelymail.com> X-Sender: jonas@grszkth.fr Content-Type: multipart/alternative; boundary="=_9a31245fc02ae2258a1624b18582daf2" Received-SPF: pass client-ip=34.202.193.197; envelope-from=jonas@grszkth.fr; helo=sendmail.purelymail.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Thu, 10 Oct 2024 06:55:21 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --=_9a31245fc02ae2258a1624b18582daf2 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed Hi all, I want emacsclientw.exe to start up an emacs daemon with a custom --init-directory in case no server is running. For that case, I think, I need to explicitly set the value for the "--alternate-editor"-flag to something like: -a "%UserProfile%\bin\emacs-29.3\bin\runemacs.exe --init-directory %APPDATA%\Dotfiles\emacs\.emacs.d\" However, doing so results in the following error: "file name or argument required". This is also true when specifing a relative path (i.e. AppData\Dotfiles\emacs\.emacs.d\). After some more trials with single and/or double qoutes (details see below), I got the impression that this behavior is unlikely intentional. And I am somewhat confident, that more then one oy my many attempts should've been successful. (Note that I raised this issue first here: https://emacs.stackexchange.com/a/82355/30098) For completeness, the full comand ("Target") I am trying to run is: %UserProfile%\bin\emacs-29.3\bin\emacsclientw.exe -a '%UserProfile%\bin\emacs-29.3\bin\runemacs.exe --init-directory "AppData\Dotfiles\emacs\.emacs.d\"' -n -c --server-file %APPDATA%\Dotfiles\emacs\.emacs.d\server\server that command starts in %UserProfile% ATM, I have as a work around a shortcut to emacscleintw.exe without an -a flag. Before using it, I once have to run: %UserProfile%\bin\emacs-29.3\bin\runemacs.exe --daemon ----init-directory %APPDATA%\Dotfiles\emacs\.emacs.d\ Obviously, I would rather have to have it all in one place. And here are the Details, regarding the use of quotes with or without relative path for --init-directory: For the several options using quotes, I got the following problems, depending on whether I put single or double quoutes for the whole argument or just the path: Double quotes around the argmument and single quotes for the path, using the full path: -a "%UserProfile%\bin\emacs-29.3\bin\runemacs.exe --init-directory '%APPDATA%\Dotfiles\emacs\.emacs.d\'" --> Warning: "Warning (initialization): Unable to create `user-emacs-directory' (c:/Users/gross20/'C:/Users/gross20/AppData/Roaming/Dotfiles/emacs/.emacs.d/'/)." Single quotes around the argmument and double quotes for the path, using the full path: -a '%UserProfile%\bin\emacs-29.3\bin\runemacs.exe --init-directory "%APPDATA%\Dotfiles\emacs\.emacs.d\"' --> Error: Try --help for more information Double quotes around the argmument and single quotes for the path, using a relative path: -a "%UserProfile%\bin\emacs-29.3\bin\runemacs.exe --init-directory 'AppData\Roaming\Dotfiles\emacs\.emacs.d\'" --> Strarts without errors or warning, but the user-emacs-directory is "c:/Users/XXX/'AppData/Roaming/Dotfiles/emacs/.emacs.d/'/" (Note the single quote in the folder name for AppData) Single quotes around the argmument and single quotes for the path, using a relative path: -a '%UserProfile%\bin\emacs-29.3\bin\runemacs.exe --init-directory "AppData\Dotfiles\emacs\.emacs.d\"' --> Error: Try --help for more information And one additional observation: From my many attempts, related or not, I also got the impression, that I am closer to what I want ommiting the --daemon flag within the argument for the -a flag. However, I need it when linking to runemacs.exe directly. This is my first bug report to this mailing list, hope it contributes a tiny tiny bit. (: Best Jonas In GNU Emacs 29.3 (build 2, x86_64-w64-mingw32) of 2024-03-24 built on AVALON Windowing system distributor 'Microsoft Corp.', version 10.0.19045 System Description: Microsoft Windows 10 Enterprise (v10.0.2009.19045.4894) Configured using: 'configure --with-modules --without-dbus --with-native-compilation=aot --without-compress-install --with-sqlite3 --with-tree-sitter CFLAGS=-O2' Configured features: ACL GIF GMP GNUTLS HARFBUZZ JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP NOTIFY W32NOTIFY PDUMPER PNG RSVG SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XPM ZLIB (NATIVE_COMP present but libgccjit not available) Important settings: value of $LANG: DEU locale-coding-system: cp1252 Major mode: Org-Agenda Week Ddl Grid Minor modes in effect: hl-line-mode: t server-mode: t consult-notes-org-headings-mode: t consult-notes-denote-mode: t denote-menu-bar-mode: t eat-eshell-mode: t shell-dirtrack-mode: t vertico-mode: t savehist-mode: t winner-mode: t save-place-mode: t global-auto-revert-mode: t recentf-mode: t windmove-mode: t tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t blink-cursor-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: c:/Users/XXX/Dotfiles/emacs/.emacs.d/elpa/transient-0.7.4/transient hides c:/Users/gross20/bin/emacs-29.3/share/emacs/29.3/lisp/transient Features: (shadow sort mail-extr emacsbug mule-util cal-move crm time-stamp tabify org-datetree org-capture timezone misearch multi-isearch cursor-sensor hl-line org-duration diary-lib diary-loaddefs cal-iso vc-git diff-mode easy-mmode vc-dispatcher org-indent oc-basic ol-eww eww url-queue thingatpt mm-url ol-rmail ol-mhe ol-irc ol-info ol-gnus nnselect gnus-art mm-uu mml2015 mm-view mml-smime smime gnutls dig gnus-sum shr pixel-fill kinsoku url-file svg dom gnus-group gnus-undo gnus-start gnus-dbus dbus xml gnus-cloud nnimap nnmail mail-source utf7 nnoo parse-time gnus-spec gnus-int gnus-range message sendmail yank-media puny rfc822 mml mml-sec epa derived epg rfc6068 epg-config mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev gmm-utils mailheader gnus-win gnus nnheader gnus-util mail-utils range mm-util mail-prsvr ol-docview doc-view jka-compr image-mode exif ol-bibtex bibtex iso8601 ol-bbdb ol-w3m ol-doi org-link-doi cl-extra help-mode face-remap org-agenda org-element org-persist xdg avl-tree server consult-notes-denote consult-notes-org-headings consult-notes consult-org consult denote dired dired-loaddefs xref project org-bookmark-heading bookmark pp mode-local ob-shell ob-R org-attach org-id org-refile org-tempo org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-src ob-comint org-pcomplete org-list org-footnote org-faces org-entities time-date noutline outline icons ob-emacs-lisp ob-core ob-eval org-cycle org-table ol rx org-fold org-fold-core org-keys oc org-loaddefs find-func cal-menu calendar cal-loaddefs org-compat tempo org-version org-macs format-spec esh-var esh-mode esh-cmd generator esh-ext esh-opt esh-proc esh-io esh-arg esh-module esh-groups esh-util files-x eat term ehelp shell pcomplete color orderless vertico-directory vertico wgrep grep compile text-property-search comint ansi-osc ansi-color savehist winner ring saveplace autorevert filenotify recentf tree-widget wid-edit windmove modus-operandi-theme modus-themes no-littering compat compat-30 finder-inf consult-notes-autoloads consult-recoll-autoloads consult-autoloads denote-autoloads eat-autoloads elpa-mirror-autoloads ess-autoloads magit-autoloads pcase git-commit-autoloads magit-section-autoloads dash-autoloads no-littering-autoloads orderless-autoloads org-bookmark-heading-autoloads quelpa-autoloads s-autoloads transient-autoloads vertico-autoloads wgrep-autoloads with-editor-autoloads info compat-autoloads package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie generate-lisp-file url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs password-cache json subr-x map byte-opt gv bytecomp byte-compile url-vars cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads w32notify w32 lcms2 multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 1381967 381324) (symbols 48 31590 3) (strings 32 149124 80555) (string-bytes 1 4074814) (vectors 16 79509) (vector-slots 8 1761299 703656) (floats 8 492 1171) (intervals 56 74316 5304) (buffers 984 16)) --=_9a31245fc02ae2258a1624b18582daf2 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=UTF-8

Hi all,

I want emacsclientw.exe to start up an emacs daemon with a custom --init= -directory in case no server is running. For that case, I think, I need to = explicitly set the value for the "--alternate-editor"-flag to something lik= e:

-a "%UserProfile%\bin\emacs-29.3\bin\runemacs.exe --init-directory %APPD= ATA%\Dotfiles\emacs\.emacs.d\"

However, doing so results in the following error: "file name or argument= required". This is also true when specifing a relative path (i.e. AppData\= Dotfiles\emacs\.emacs.d\).

After some more trials with single and/or double qoutes (details see bel= ow), I got the impression that this behavior is unlikely intentional. And I= am somewhat confident, that more then one oy my many attempts should've be= en successful. (Note that I raised this issue first here: https://emacs.stackexchange.com/a/= 82355/30098)

For completeness, the full comand ("Target") I am trying to run is:

%UserProfile%\bin\emacs-29.3\bin\emacsclientw.exe -a '%UserProfile%\bin\= emacs-29.3\bin\runemacs.exe --init-directory "AppData\Dotfiles\emacs\.emacs= =2Ed\"' -n -c --server-file %APPDATA%\Dotfiles\emacs\.emacs.d\server\server=

that command starts in

%UserProfile%

ATM, I have as a work around a shortcut to emacscleintw.exe without an -= a flag. Before using it, I once have to run:

%UserProfile%\bin\emacs-29.3\bin\runemacs.exe --daemon ----init-director= y %APPDATA%\Dotfiles\emacs\.emacs.d\

Obviously, I would rather have to have it all in one place.


And here are the Details, regarding the use of quotes with or without re= lative path for --init-directory:

For the several options using quotes, I got the following problems, depe= nding on whether I put single or double quoutes for the whole argument or j= ust the path:

Double quotes around the argmument and single quotes for the path, using= the full path:

-a "%UserProfile%\bin\emacs-29.3\bin\runemacs.exe --init-directory '%APP= DATA%\Dotfiles\emacs\.emacs.d\'"

--> Warning: "Warning (initialization): Unable to create `user-emacs-= directory' (c:/Users/gross20/'C:/Users/gross20/AppData/Roaming/Dotfiles/ema= cs/.emacs.d/'/)."

Single quotes around the argmument and double quotes for the path, using= the full path:

-a '%UserProfile%\bin\emacs-29.3\bin\runemacs.exe --init-directory "%APP= DATA%\Dotfiles\emacs\.emacs.d\"'

--> Error: Try --help for more information

Double quotes around the argmument and single quotes for the path, using= a relative path:

-a "%UserProfile%\bin\emacs-29.3\bin\runemacs.exe --init-directory 'AppD= ata\Roaming\Dotfiles\emacs\.emacs.d\'"


--> Strarts without errors or war= ning, but the user-emacs-directory is "c:/Users/XXX/'AppData/Roaming/Dotfil= es/emacs/.emacs.d/'/" (Note the single quote in the folder name for AppData= )

Single quotes around the argmument and single quotes for the path, using= a relative path:

-a '%UserProfile%\bin\emacs-29.3\bin\runemacs.exe --init-directory "AppD= ata\Dotfiles\emacs\.emacs.d\"'

--> Error: Try --help for more in= formation


And one additional observation: From my many attempts, related or not, I= also got the impression, that I am closer to what I want ommiting the --da= emon flag within the argument for the -a flag. However, I need it when link= ing to runemacs.exe directly.

This is my first bug report to this mailing list, hope it contributes a = tiny tiny bit. (:

Best

Jonas


In GNU Emacs 29.3 (build 2, x86_64-w64-mingw32) of 2024-03-24 built on AVALON
Windowing system distributor 'Microsoft Corp.', versi= on 10.0.19045
System Description: Microsoft Windows 10 Enterprise (v10= =2E0.2009.19045.4894)

Configured using:
 'configure --with-modules --without-dbus --= with-native-compilation=3Daot
 --without-compress-install --with-= sqlite3 --with-tree-sitter
 CFLAGS=3D-O2'

Configured features:
ACL GIF GMP GNUTLS HARFBUZZ JPEG JSON LCMS2 LI= BXML2 MODULES NATIVE_COMP
NOTIFY W32NOTIFY PDUMPER PNG RSVG SOUND SQLI= TE3 THREADS TIFF
TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XPM ZLIB

(NATIVE_COMP present but libgccjit not available)

Important settings:
  value of $LANG: DEU
  locale-c= oding-system: cp1252

Major mode: Org-Agenda Week Ddl Grid

Minor modes in effect:
  hl-line-mode: t
  server-mo= de: t
  consult-notes-org-headings-mode: t
  consult-no= tes-denote-mode: t
  denote-menu-bar-mode: t
  eat-eshe= ll-mode: t
  shell-dirtrack-mode: t
  vertico-mode: t  savehist-mode: t
  winner-mode: t
  save-pla= ce-mode: t
  global-auto-revert-mode: t
  recentf-mode:= t
  windmove-mode: t
  tooltip-mode: t
  glo= bal-eldoc-mode: t
  show-paren-mode: t
  electric-inden= t-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
=   blink-cursor-mode: t
  buffer-read-only: t
  lin= e-number-mode: t
  transient-mark-mode: t
  auto-compos= ition-mode: t
  auto-encryption-mode: t
  auto-compress= ion-mode: t

Load-path shadows:
c:/Users/XXX/Dotfiles/emacs/.emacs.d/elpa/transi= ent-0.7.4/transient hides c:/Users/gross20/bin/emacs-29.3/share/emacs/29.3/= lisp/transient

Features:
(shadow sort mail-extr emacsbug mule-util cal-move crm ti= me-stamp tabify
org-datetree org-capture timezone misearch multi-isear= ch cursor-sensor
hl-line org-duration diary-lib diary-loaddefs cal-iso= vc-git diff-mode
easy-mmode vc-dispatcher org-indent oc-basic ol-eww = eww url-queue
thingatpt mm-url ol-rmail ol-mhe ol-irc ol-info ol-gnus = nnselect
gnus-art mm-uu mml2015 mm-view mml-smime smime gnutls dig gnu= s-sum shr
pixel-fill kinsoku url-file svg dom gnus-group gnus-undo gnu= s-start
gnus-dbus dbus xml gnus-cloud nnimap nnmail mail-source utf7 n= noo
parse-time gnus-spec gnus-int gnus-range message sendmail yank-med= ia
puny rfc822 mml mml-sec epa derived epg rfc6068 epg-config mm-decod= e
mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drumsmailabbrev gmm-utils mailheader gnus-win gnus nnheader gnus-util
ma= il-utils range mm-util mail-prsvr ol-docview doc-view jka-compr
image-= mode exif ol-bibtex bibtex iso8601 ol-bbdb ol-w3m ol-doi
org-link-doi = cl-extra help-mode face-remap org-agenda org-element
org-persist xdg a= vl-tree server consult-notes-denote
consult-notes-org-headings consult= -notes consult-org consult denote
dired dired-loaddefs xref project or= g-bookmark-heading bookmark pp
mode-local ob-shell ob-R org-attach org= -id org-refile org-tempo org ob
ob-tangle ob-ref ob-lob ob-table ob-ex= p org-macro org-src ob-comint
org-pcomplete org-list org-footnote org-= faces org-entities time-date
noutline outline icons ob-emacs-lisp ob-c= ore ob-eval org-cycle org-table
ol rx org-fold org-fold-core org-keys = oc org-loaddefs find-func cal-menu
calendar cal-loaddefs org-compat te= mpo org-version org-macs format-spec
esh-var esh-mode esh-cmd generato= r esh-ext esh-opt esh-proc esh-io
esh-arg esh-module esh-groups esh-ut= il files-x eat term ehelp shell
pcomplete color orderless vertico-dire= ctory vertico wgrep grep compile
text-property-search comint ansi-osc = ansi-color savehist winner ring
saveplace autorevert filenotify recent= f tree-widget wid-edit windmove
modus-operandi-theme modus-themes no-l= ittering compat compat-30
finder-inf consult-notes-autoloads consult-r= ecoll-autoloads
consult-autoloads denote-autoloads eat-autoloads elpa-= mirror-autoloads
ess-autoloads magit-autoloads pcase git-commit-autolo= ads
magit-section-autoloads dash-autoloads no-littering-autoloads
orderless-autoloads org-bookmark-heading-autoloads quelpa-autoloads
s= -autoloads transient-autoloads vertico-autoloads wgrep-autoloads
with-= editor-autoloads info compat-autoloads package browse-url url
url-prox= y url-privacy url-expand url-methods url-history url-cookie
generate-l= isp-file url-domsuf url-util mailcap url-handlers url-parse
auth-sourc= e cl-seq eieio eieio-core cl-macs password-cache json subr-x
map byte-= opt gv bytecomp byte-compile url-vars cl-loaddefs cl-lib rmc
iso-trans= l tooltip cconv eldoc paren electric uniquify ediff-hook
vc-hooks lisp= -float-type elisp-mode mwheel dos-w32 ls-lisp disp-table
term/w32-win = w32-win w32-vars term/common-win tool-bar dnd fontset image
regexp-opt= fringe tabulated-list replace newcomment text-mode lisp-mode
prog-mod= e register page tab-bar menu-bar rfn-eshadow isearch easymenu
timer se= lect scroll-bar mouse jit-lock font-lock syntax font-core
term/tty-col= ors frame minibuffer nadvice seq simple cl-generic
indonesian philippi= ne cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet= lao korean japanese eucjp-ms cp51932 hebrew greek
romanian slovak cze= ch european ethiopic indian cyrillic chinese
composite emoji-zwj chars= cript charprop case-table epa-hook
jka-cmpr-hook help abbrev obarray o= closure cl-preloaded button loaddefs
theme-loaddefs faces cus-face mac= roexp files window text-properties
overlay sha1 md5 base64 format env = code-pages mule custom widget keymap
hashtable-print-readable backquot= e threads w32notify w32 lcms2 multi-tty
make-network-process native-co= mpile emacs)

Memory information:
((conses 16 1381967 381324)
 (symbols= 48 31590 3)
 (strings 32 149124 80555)
 (string-bytes = 1 4074814)
 (vectors 16 79509)
 (vector-slots 8 1761299= 703656)
 (floats 8 492 1171)
 (intervals 56 74316 5304= )
 (buffers 984 16))

--=_9a31245fc02ae2258a1624b18582daf2-- ------------=_1728915663-24158-1--