From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 03 23:56:21 2023 Received: (at submit) by debbugs.gnu.org; 4 Aug 2023 03:56:21 +0000 Received: from localhost ([127.0.0.1]:53205 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qRlvI-0003R4-3L for submit@debbugs.gnu.org; Thu, 03 Aug 2023 23:56:21 -0400 Received: from lists.gnu.org ([2001:470:142::17]:34094) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qRkr1-0001ic-Ti for submit@debbugs.gnu.org; Thu, 03 Aug 2023 22:47:53 -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 1qRkqw-0000TR-Db for bug-gnu-emacs@gnu.org; Thu, 03 Aug 2023 22:47:46 -0400 Received: from mail-il1-x132.google.com ([2607:f8b0:4864:20::132]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qRkqu-00073S-0H for bug-gnu-emacs@gnu.org; Thu, 03 Aug 2023 22:47:46 -0400 Received: by mail-il1-x132.google.com with SMTP id e9e14a558f8ab-34911a634edso6502155ab.0 for ; Thu, 03 Aug 2023 19:47:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691117251; x=1691722051; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=JIapxyVAnnZ9lktVbqhFRdGD0jFle1WenZonXM1sZsA=; b=EKJcPYentpwippKOtna6sHnr1qH5579NPglv5FdM0406L64atrajRBMGN/5H9rtcDf pp01242fozZG8MsrVT+1SBgdzwTewx2pbbnQSne7Ir75RJ0Ko9jgfFRIQkI1efaPl2VM H1J1GNnmgArD53kKQ+JbLmKPUH5l7bQRYj8mOdMWI7gyGAmwSgiWd3q7KUdyCd6FjF4f ypnnbY1R7YrOaM9M+yhGpeVqwZCIY9tFoNq8kyDjm9jYleYzLjEf31ytzbiMdbQuBu2p zp5BcCFq4JAi3jCC78tNKKkKlQiOC9TpK1B10KWWS75Bmiu7P50LNdzUWLsqsYv1l3yC EstQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691117251; x=1691722051; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=JIapxyVAnnZ9lktVbqhFRdGD0jFle1WenZonXM1sZsA=; b=ORjxuf5lTbWOw/Q8vUnxXMDz69HuKy/CpyZ8ybuhZA5AP99BVRkhTRMfEKke2xZEV2 l5uOGENlKKnqVASnisnvWbIcrDjHt0v99QAu9Na1ZrwyuEGsjsApxxNHLU/d7hdWTymM M6ulJ/2vaSI3+Ep75YR5Tw+ezq+m6NCOFm+/vBfaM7B7LObeyY7XjcartMvxr1Qrm6bq EsrfMeKXU3vc8i4nSYMkdB3xTHAYSaufmJs8Cvij27qVuAmcLlCYNsf5O/SRuSJNp91A +vTOw8ec3PRL+874+X8bEN3WSRfZKf+36G6vY8q47eRORNQaSSIessDDbOd2qHMfModM KEFg== X-Gm-Message-State: AOJu0Yz1hbdleSacNpDvqeCRISa/l0aRpHrb+hIza5uy2F4DQkqGBNWR qqS2v12er899ApTMHZ12w0ahUj1TdI8pqSc7PMBzo9sBc2s= X-Google-Smtp-Source: AGHT+IGN1zR3b6ILQdFuD21yv2u2zryMVygmuJXRPKaoq0B/sM4g+8ctcpmGNSi+Jc8ZyhZKyZj8ygD4dl+tQNblwYA= X-Received: by 2002:a05:6e02:b47:b0:349:3816:9a93 with SMTP id f7-20020a056e020b4700b0034938169a93mr726420ilu.22.1691117250596; Thu, 03 Aug 2023 19:47:30 -0700 (PDT) MIME-Version: 1.0 From: John t Date: Thu, 3 Aug 2023 22:47:19 -0400 Message-ID: Subject: 29.1; cli argument "-x" fails with "unknown option" error on PGTK Emacs To: bug-gnu-emacs@gnu.org Content-Type: multipart/mixed; boundary="000000000000ff11d006020fea52" Received-SPF: pass client-ip=2607:f8b0:4864:20::132; envelope-from=jturner.usa@gmail.com; helo=mail-il1-x132.google.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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Thu, 03 Aug 2023 23:56:12 -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: -0.0 (/) --000000000000ff11d006020fea52 Content-Type: multipart/alternative; boundary="000000000000ff11cf06020fea50" --000000000000ff11cf06020fea50 Content-Type: text/plain; charset="UTF-8" In GNU Emacs 29.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.17.8) of 2023-08-02 built on localhost System Description: Gentoo Linux Configured using: 'configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --datarootdir=/usr/share --disable-silent-rules --docdir=/usr/share/doc/emacs-29.1 --htmldir=/usr/share/doc/emacs-29.1/html --libdir=/usr/lib64 --program-suffix=-emacs-29 --includedir=/usr/include/emacs-29 --infodir=/usr/share/info/emacs-29 --localstatedir=/var --enable-locallisppath=/etc/emacs:/usr/share/emacs/site-lisp --without-compress-install --without-hesiod --without-pop --with-file-notification=inotify --with-pdumper --enable-acl --with-dbus --with-modules --without-gameuser --with-libgmp --without-gpm --with-native-compilation=aot --with-json --without-kerberos --without-kerberos5 --with-lcms2 --with-xml2 --without-mailutils --without-selinux --with-sqlite3 --with-gnutls --without-libsystemd --with-threads --with-tree-sitter --with-wide-int --with-sound=alsa --with-zlib --with-pgtk --without-x --without-ns --with-toolkit-scroll-bars --without-gconf --without-gsettings --with-harfbuzz --without-libotf --without-m17n-flt --without-xwidgets --with-gif --with-jpeg --with-png --with-rsvg --with-tiff --with-webp --with-imagemagick --with-dumping=pdumper 'CFLAGS=-march=native -O2 -pipe' 'LDFLAGS=-Wl,-O1 -Wl,--as-needed'' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS HARFBUZZ IMAGEMAGICK JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM GTK3 ZLIB Important settings: value of $LANG: en_US.utf8 locale-coding-system: utf-8-unix Major mode: Info Minor modes in effect: electric-pair-mode: t recentf-mode: t save-place-mode: t delete-selection-mode: t cua-mode: t savehist-mode: t global-git-commit-mode: t magit-auto-revert-mode: t shell-dirtrack-mode: t server-mode: t override-global-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t isearch-fold-quotes-mode: t global-font-lock-mode: t 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: /usr/share/emacs/site-lisp/cmake-mode hides /usr/share/emacs/site-lisp/cmake/cmake-mode /usr/share/emacs/site-lisp/desktop-entry-mode hides /usr/share/emacs/site-lisp/desktop-file-utils/desktop-entry-mode /usr/share/emacs/site-lisp/transient/transient hides /usr/share/emacs/29.1/lisp/transient Features: (shadow sort mail-extr emacsbug tramp-cmds mule-util jka-compr info vc bug-reference cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs face-remap vc-hg vc-bzr rfc2104 tramp-cache time-stamp tramp-sh misearch multi-isearch ibuf-ext dired-aux vc-git vc-dispatcher display-line-numbers elec-pair badger-theme wombat-theme recentf tree-widget wid-edit saveplace delsel cua-base rust-ts-mode c-ts-common tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat parse-time iso8601 savehist man magit-bookmark bookmark magit-imenu git-rebase magit-extras magit-gitignore magit-ediff magit-subtree magit-patch magit-submodule magit-obsolete magit-blame magit-stash magit-reflog magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-tag magit-merge magit-branch magit-reset magit-files magit-refs magit-status magit package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie generate-lisp-file url-domsuf url-handlers magit-repos magit-apply magit-wip magit-log which-func magit-diff smerge-mode diff diff-mode git-commit log-edit message sendmail mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader pcvs-util add-log magit-core magit-autorevert autorevert magit-margin magit-transient magit-process with-editor comp comp-cstr shell pcomplete magit-mode transient edmacro kmacro compat format-spec magit-git magit-section magit-utils crm ielm ibuffer ibuffer-loaddefs highlight-indentation flycheck lisp-mnt dash eglot external-completion array filenotify jsonrpc ert pp ewoc xref flymake-proc flymake thingatpt warnings icons compile text-property-search comint ansi-osc ansi-color ring pcase url-util url-parse auth-source eieio eieio-core password-cache json subr-x map url-vars project imenu ediff ediff-merg ediff-mult ediff-wind ediff-diff ediff-help ediff-init ediff-util ebuild-mode skeleton sh-script smie treesit executable rx conf-mode cl-extra toggle-local-vars reload-library loadhist byte-opt man-completion cl-macs gv cl-seq edebug debug backtrace help-mode find-func server use-package use-package-ensure use-package-delight use-package-diminish use-package-bind-key bind-key easy-mmode use-package-core cl-loaddefs cl-lib bytecomp byte-compile site-gentoo rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/pgtk-win pgtk-win term/common-win pgtk-dnd 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 dbusbind inotify dynamic-setting font-render-setting cairo gtk pgtk lcms2 multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 488020 35871) (symbols 48 25863 0) (strings 32 99619 5192) (string-bytes 1 3259302) (vectors 16 57667) (vector-slots 8 941782 73507) (floats 8 125 489) (intervals 56 38946 0) (buffers 984 22)) Scripts starting with "#!/usr/bin/emacs -x" do not function with PGTK Emacs. Instead of evaluating the file contents, Emacs creates a new instance and opens a frame, echos a warning about "-x" being an unknown option in the minibuffer. This seems to suggest that the "-x" option is not being recognized at all. The statement that parses this specific parameter seems to be inside of a conditionally compiled block of code that toggles based on the macro HAVE_X_WINDOWS (#ifdef HAVE_X_WINDOWS). My current build of Emacs uses the PGTK, and non-PGTK builds appear to function correctly when used with the "-x" option. This option doesn't seem to be related to x11 in any way as far as I can tell, so I have moved it to the location where the "--script" option is parsed, and then decrement skip_args by 2 instead of 1 which is also what "--script" does. These changes cause the "-x" option to function correctly, but I am not experienced in C or with the C parts of Emacs, so this may not be the correct solution! --000000000000ff11cf06020fea50 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
In GNU Emacs 29.1 (build 2, x86_64-pc-linux-gnu, GTK+ Vers= ion 3.24.38,
=C2=A0cairo version 1.17.8) of 2023-08-02 built on localhos= t
System Description: Gentoo Linux

Configured using:
=C2=A0= 9;configure --prefix=3D/usr --build=3Dx86_64-pc-linux-gnu
=C2=A0--host= =3Dx86_64-pc-linux-gnu --mandir=3D/usr/share/man
=C2=A0--infodir=3D/usr/= share/info --datadir=3D/usr/share --sysconfdir=3D/etc
=C2=A0--localstate= dir=3D/var/lib --datarootdir=3D/usr/share
=C2=A0--disable-silent-rules -= -docdir=3D/usr/share/doc/emacs-29.1
=C2=A0--htmldir=3D/usr/share/doc/ema= cs-29.1/html --libdir=3D/usr/lib64
=C2=A0--program-suffix=3D-emacs-29 --= includedir=3D/usr/include/emacs-29
=C2=A0--infodir=3D/usr/share/info/ema= cs-29 --localstatedir=3D/var
=C2=A0--enable-locallisppath=3D/etc/emacs:/= usr/share/emacs/site-lisp
=C2=A0--without-compress-install --without-hes= iod --without-pop
=C2=A0--with-file-notification=3Dinotify --with-pdumpe= r --enable-acl
=C2=A0--with-dbus --with-modules --without-gameuser --wit= h-libgmp
=C2=A0--without-gpm --with-native-compilation=3Daot --with-json=
=C2=A0--without-kerberos --without-kerberos5 --with-lcms2 --with-xml2=C2=A0--without-mailutils --without-selinux --with-sqlite3 --with-gnutls<= br>=C2=A0--without-libsystemd --with-threads --with-tree-sitter --with-wide= -int
=C2=A0--with-sound=3Dalsa --with-zlib --with-pgtk --without-x --wit= hout-ns
=C2=A0--with-toolkit-scroll-bars --without-gconf --without-gsett= ings
=C2=A0--with-harfbuzz --without-libotf --without-m17n-flt --without= -xwidgets
=C2=A0--with-gif --with-jpeg --with-png --with-rsvg --with-tif= f --with-webp
=C2=A0--with-imagemagick --with-dumping=3Dpdumper 'CFL= AGS=3D-march=3Dnative -O2
=C2=A0-pipe' 'LDFLAGS=3D-Wl,-O1 -Wl,--= as-needed''

Configured features:
ACL CAIRO DBUS FREETYPE = GIF GLIB GMP GNUTLS HARFBUZZ IMAGEMAGICK JPEG
JSON LCMS2 LIBXML2 MODULES= NATIVE_COMP NOTIFY INOTIFY PDUMPER PGTK PNG
RSVG SECCOMP SOUND SQLITE3 = THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER
WEBP XIM GTK3 ZLIB

I= mportant settings:
=C2=A0 value of $LANG: en_US.utf8
=C2=A0 locale-co= ding-system: utf-8-unix

Major mode: Info

Minor modes in effec= t:
=C2=A0 electric-pair-mode: t
=C2=A0 recentf-mode: t
=C2=A0 save= -place-mode: t
=C2=A0 delete-selection-mode: t
=C2=A0 cua-mode: t
= =C2=A0 savehist-mode: t
=C2=A0 global-git-commit-mode: t
=C2=A0 magit= -auto-revert-mode: t
=C2=A0 shell-dirtrack-mode: t
=C2=A0 server-mode= : t
=C2=A0 override-global-mode: t
=C2=A0 global-eldoc-mode: t
=C2= =A0 show-paren-mode: t
=C2=A0 electric-indent-mode: t
=C2=A0 mouse-wh= eel-mode: t
=C2=A0 file-name-shadow-mode: t
=C2=A0 isearch-fold-quote= s-mode: t
=C2=A0 global-font-lock-mode: t
=C2=A0 font-lock-mode: t=C2=A0 blink-cursor-mode: t
=C2=A0 buffer-read-only: t
=C2=A0 line-n= umber-mode: t
=C2=A0 transient-mark-mode: t
=C2=A0 auto-composition-m= ode: t
=C2=A0 auto-encryption-mode: t
=C2=A0 auto-compression-mode: t=

Load-path shadows:
/usr/share/emacs/site-lisp/cmake-mode hides /= usr/share/emacs/site-lisp/cmake/cmake-mode
/usr/share/emacs/site-lisp/de= sktop-entry-mode hides /usr/share/emacs/site-lisp/desktop-file-utils/deskto= p-entry-mode
/usr/share/emacs/site-lisp/transient/transient hides /usr/s= hare/emacs/29.1/lisp/transient

Features:
(shadow sort mail-extr e= macsbug tramp-cmds mule-util jka-compr info vc
bug-reference cc-mode cc-= fonts cc-guess cc-menus cc-cmds cc-styles
cc-align cc-engine cc-vars cc-= defs face-remap vc-hg vc-bzr rfc2104
tramp-cache time-stamp tramp-sh mis= earch multi-isearch ibuf-ext
dired-aux vc-git vc-dispatcher display-line= -numbers elec-pair
badger-theme wombat-theme recentf tree-widget wid-edi= t saveplace delsel
cua-base rust-ts-mode c-ts-common tramp tramp-loaddef= s trampver
tramp-integration files-x tramp-compat parse-time iso8601 sav= ehist man
magit-bookmark bookmark magit-imenu git-rebase magit-extrasmagit-gitignore magit-ediff magit-subtree magit-patch magit-submodule
m= agit-obsolete magit-blame magit-stash magit-reflog magit-bisect
magit-pu= sh magit-pull magit-fetch magit-clone magit-remote magit-commit
magit-se= quence magit-notes magit-worktree magit-tag magit-merge
magit-branch mag= it-reset magit-files magit-refs magit-status magit
package browse-url ur= l url-proxy url-privacy url-expand url-methods
url-history url-cookie ge= nerate-lisp-file url-domsuf url-handlers
magit-repos magit-apply magit-w= ip magit-log which-func magit-diff
smerge-mode diff diff-mode git-commit= log-edit message sendmail mailcap
yank-media puny dired dired-loaddefs = rfc822 mml mml-sec epa derived epg
rfc6068 epg-config gnus-util time-dat= e mm-decode mm-bodies mm-encode
mail-parse rfc2231 rfc2047 rfc2045 mm-ut= il ietf-drums mail-prsvr
mailabbrev mail-utils gmm-utils mailheader pcvs= -util add-log magit-core
magit-autorevert autorevert magit-margin magit-= transient magit-process
with-editor comp comp-cstr shell pcomplete magit= -mode transient edmacro
kmacro compat format-spec magit-git magit-sectio= n magit-utils crm ielm
ibuffer ibuffer-loaddefs highlight-indentation fl= ycheck lisp-mnt dash
eglot external-completion array filenotify jsonrpc = ert pp ewoc xref
flymake-proc flymake thingatpt warnings icons compiletext-property-search comint ansi-osc ansi-color ring pcase url-util
ur= l-parse auth-source eieio eieio-core password-cache json subr-x map
url-= vars project imenu ediff ediff-merg ediff-mult ediff-wind ediff-diff
edi= ff-help ediff-init ediff-util ebuild-mode skeleton sh-script smie
treesi= t executable rx conf-mode cl-extra toggle-local-vars
reload-library load= hist byte-opt man-completion cl-macs gv cl-seq edebug
debug backtrace he= lp-mode find-func server use-package
use-package-ensure use-package-deli= ght use-package-diminish
use-package-bind-key bind-key easy-mmode use-pa= ckage-core cl-loaddefs
cl-lib bytecomp byte-compile site-gentoo rmc iso-= transl tooltip cconv
eldoc paren electric uniquify ediff-hook vc-hooks l= isp-float-type
elisp-mode mwheel term/pgtk-win pgtk-win term/common-win = pgtk-dnd
tool-bar dnd fontset image regexp-opt fringe tabulated-list rep= lace
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
mis= c-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms
cp5= 1932 hebrew greek romanian slovak czech european ethiopic indian
cyrilli= c chinese composite emoji-zwj charscript charprop case-table
epa-hook jk= a-cmpr-hook help abbrev obarray oclosure cl-preloaded button
loaddefs th= eme-loaddefs faces cus-face macroexp files window
text-properties overla= y sha1 md5 base64 format env code-pages mule
custom widget keymap hashta= ble-print-readable backquote threads dbusbind
inotify dynamic-setting fo= nt-render-setting cairo gtk pgtk lcms2
multi-tty make-network-process na= tive-compile emacs)

Memory information:
((conses 16 488020 35871)=
=C2=A0(symbols 48 25863 0)
=C2=A0(strings 32 99619 5192)
=C2=A0(s= tring-bytes 1 3259302)
=C2=A0(vectors 16 57667)
=C2=A0(vector-slots 8= 941782 73507)
=C2=A0(floats 8 125 489)
=C2=A0(intervals 56 38946 0)<= br>=C2=A0(buffers 984 22))

Scripts starting with "#!/usr/bin/em= acs -x" do not function with PGTK Emacs.

Instead of evaluating = the file contents, Emacs creates a new instance
and opens a frame, echos= a warning about "-x" being an unknown option in
the minibuffe= r. This seems to suggest that the "-x" option is not being recogn= ized at all.

The statement that parses this specific parameter seems= to be inside
of a conditionally compiled block of code that toggles bas= ed on the
macro HAVE_X_WINDOWS (#ifdef HAVE_X_WINDOWS).

My curren= t build of Emacs uses the PGTK, and non-PGTK builds appear to
function c= orrectly when used with the "-x" option.

This option doesn= 't seem to be related to x11 in any way as far as I can
tell, so I h= ave moved it to the location where the "--script" option is
pa= rsed, and then decrement skip_args by 2 instead of 1 which is also what
= "--script" does.

These changes cause the "-x" op= tion to function correctly, but I am not
experienced in C or with the C = parts of Emacs, so this may not be the
correct solution!
--000000000000ff11cf06020fea50-- --000000000000ff11d006020fea52 Content-Type: application/octet-stream; name="fix-x-option.patch" Content-Disposition: attachment; filename="fix-x-option.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_lkvzing00 RnJvbSA3YWIyZjZhNWQ4YjA2NTBlYjkxYzFmNDc1OTcyZDczMjVlMWY2NDFkIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBKb2huIFR1cm5lciA8anR1cm5lci51c2FAZ21haWwuY29tPgpE YXRlOiBXZWQsIDIgQXVnIDIwMjMgMDI6Mjg6NTggLTA0MDAKU3ViamVjdDogW1BBVENIXSBtb3Zl IGFyZyBwYXJzZSBjYXNlIGZvciAteCBvdXQgb2YgSEFWRV9YX1dJTkRPV1MgI2lmZGVmCgotLS0K IHNyYy9lbWFjcy5jIHwgMTkgKysrKysrKysrLS0tLS0tLS0tLQogMSBmaWxlIGNoYW5nZWQsIDkg aW5zZXJ0aW9ucygrKSwgMTAgZGVsZXRpb25zKC0pCgpkaWZmIC0tZ2l0IGEvc3JjL2VtYWNzLmMg Yi9zcmMvZW1hY3MuYwppbmRleCA4MGEwMTNiNjhkZi4uMzM0OTQ3N2I0YjkgMTAwNjQ0Ci0tLSBh L3NyYy9lbWFjcy5jCisrKyBiL3NyYy9lbWFjcy5jCkBAIC0xNjM5LDEwICsxNjM5LDE5IEBAIG1h aW4gKGludCBhcmdjLCBjaGFyICoqYXJndikKICAgICAgIC8qIEZJWE1FIGJyb2tlbiBmb3IgLS1z Y3JpcHQ9RklMRSAtIGlzIHRoYXQgc3VwcG9zZWQgdG8gd29yaz8gICovCiAgICAgICBhcmd2W3Nr aXBfYXJncyAtIDFdID0gKGNoYXIgKikgIi1zY3JpcHRsb2FkIjsKICAgICAgIHNraXBfYXJncyAt PSAyOwogICAgICAgc29ydF9hcmdzIChhcmdjLCBhcmd2KTsKICAgICB9CisgIGlmIChhcmdtYXRj aCAoYXJndiwgYXJnYywgIi14IiwgMCwgMSwgJmp1bmssICZza2lwX2FyZ3MpKQorICAgICAgewor CW5vbmludGVyYWN0aXZlID0gMTsKKwlub19zaXRlX2xpc3AgPSAxOworCS8qIFRoaXMgaXMgcGlj a2VkIHVwIGluIHN0YXJ0dXAuZWwuICAqLworCWFyZ3Zbc2tpcF9hcmdzIC0gMV0gPSAoY2hhciAq KSAiLXNjcmlwdGV2YWwiOworCXNraXBfYXJncyAtPSAyOworCXNvcnRfYXJncyAoYXJnYywgYXJn dik7CisgICAgICB9CiAKICAgLyogSGFuZGxlIHRoZSAtLWhlbHAgb3B0aW9uLCB3aGljaCBnaXZl cyBhIHVzYWdlIG1lc3NhZ2UuICAqLwogICBpZiAoYXJnbWF0Y2ggKGFyZ3YsIGFyZ2MsICItaGVs cCIsICItLWhlbHAiLCAzLCBOVUxMLCAmc2tpcF9hcmdzKQogICAgICAgJiYgIW9ubHlfdmVyc2lv bikKICAgICB7CkBAIC0yMDUxLDIwICsyMDYwLDEwIEBAIG1haW4gKGludCBhcmdjLCBjaGFyICoq YXJndikKICAgICAgICAgaWYgKGFyZ21hdGNoIChhcmd2LCBhcmdjLCAiLVEiLCAiLS1xdWljayIs IDMsIE5VTEwsICZza2lwX2FyZ3MpCiAgICAgICAgICAgICB8fCBhcmdtYXRjaCAoYXJndiwgYXJn YywgIi1xdWljayIsIDAsIDIsIE5VTEwsICZza2lwX2FyZ3MpKQogICAgICAgICAgIG5vX3NpdGVf bGlzcCA9IDE7CiAgICAgICB9CiAKLSAgICBpZiAoYXJnbWF0Y2ggKGFyZ3YsIGFyZ2MsICIteCIs IDAsIDEsICZqdW5rLCAmc2tpcF9hcmdzKSkKLSAgICAgIHsKLQlub25pbnRlcmFjdGl2ZSA9IDE7 Ci0Jbm9fc2l0ZV9saXNwID0gMTsKLQkvKiBUaGlzIGlzIHBpY2tlZCB1cCBpbiBzdGFydHVwLmVs LiAgKi8KLQlhcmd2W3NraXBfYXJncyAtIDFdID0gKGNoYXIgKikgIi1zY3JpcHRldmFsIjsKLQlz a2lwX2FyZ3MgLT0gMTsKLQlzb3J0X2FyZ3MgKGFyZ2MsIGFyZ3YpOwotICAgICAgfQotCiAgICAg LyogRG9uJ3QgYWN0dWFsbHkgZGlzY2FyZCB0aGlzIGFyZy4gICovCiAgICAgc2tpcF9hcmdzID0g Y291bnRfYmVmb3JlOwogICB9CiAjZWxzZSAgLyogIUhBVkVfWF9XSU5ET1dTICovCiAgIGlmICgh IG5vX3NpdGVfbGlzcCkKLS0gCjIuNDEuMAoK --000000000000ff11d006020fea52-- From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 04 02:20:52 2023 Received: (at 65048) by debbugs.gnu.org; 4 Aug 2023 06:20:52 +0000 Received: from localhost ([127.0.0.1]:53282 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qRoBA-0007Lv-CM for submit@debbugs.gnu.org; Fri, 04 Aug 2023 02:20:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54398) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qRoB7-0007Lh-TA for 65048@debbugs.gnu.org; Fri, 04 Aug 2023 02:20:50 -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 1qRoB2-0005RG-LB; Fri, 04 Aug 2023 02:20:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=QL2cz6cPJlD+VgL1Y3WNkh+znBuSzrmdPdvNcdhrptY=; b=E1cuLAd+TK6v BA1cGLCREipwbynj7plOW8VLnUYIA601jetj0BYxHoWPIdlWM5VvdGjqs4a8AnvBb7bEm/lNpx9FK F3a+GT2PaceqcmrK3auz5xcndFORI/qd2ydzRcQN3hD7K06Joa9iMIbXphCQ0Q1hQVTDdubTY0DBH uUJOY6nfsetaCno7mAW7/oH18PCIKb/JnyVRikzWIbFjOQJ6dHxV2RjJh5Y9btR4vLGQkCNCmNBZ4 CASsZNxdp9hKwfJKvl6bIXO5/HKTZraocnCjaHxzPDJV/FHiyTOCYCBbiKC6J+u0DfQtpxQMnm30c cT80TBwI/+Fma8Ae2zs65A==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qRoB1-00080B-Hi; Fri, 04 Aug 2023 02:20:43 -0400 Date: Fri, 04 Aug 2023 09:20:54 +0300 Message-Id: <83fs4zwcop.fsf@gnu.org> From: Eli Zaretskii To: John t In-Reply-To: (message from John t on Thu, 3 Aug 2023 22:47:19 -0400) Subject: Re: bug#65048: 29.1; cli argument "-x" fails with "unknown option" error on PGTK Emacs References: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 65048 Cc: 65048@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 (---) > From: John t > Date: Thu, 3 Aug 2023 22:47:19 -0400 > > Scripts starting with "#!/usr/bin/emacs -x" do not function with PGTK Emacs. > > Instead of evaluating the file contents, Emacs creates a new instance > and opens a frame, echos a warning about "-x" being an unknown option in > the minibuffer. This seems to suggest that the "-x" option is not being recognized at all. > > The statement that parses this specific parameter seems to be inside > of a conditionally compiled block of code that toggles based on the > macro HAVE_X_WINDOWS (#ifdef HAVE_X_WINDOWS). > > My current build of Emacs uses the PGTK, and non-PGTK builds appear to > function correctly when used with the "-x" option. > > This option doesn't seem to be related to x11 in any way as far as I can > tell, so I have moved it to the location where the "--script" option is > parsed, and then decrement skip_args by 2 instead of 1 which is also what > "--script" does. > > These changes cause the "-x" option to function correctly, but I am not > experienced in C or with the C parts of Emacs, so this may not be the > correct solution! Thanks. You are right: the -x switch should not be X-specific. Please try the patch below instead (which removes some duplicate code, but is in general the same idea as in your suggested patch). Please try this both in the PGTK and in non-PGTK builds, as I have only limited access to such configurations. diff --git a/src/emacs.c b/src/emacs.c index e63b092..37c017d 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -2007,15 +2007,16 @@ main (int argc, char **argv) } #endif /* HAVE_NS */ -#ifdef HAVE_X_WINDOWS /* Stupid kludge to catch command-line display spec. We can't handle this argument entirely in window system dependent code because we don't even know which window system dependent code to run until we've recognized this argument. */ { - char *displayname = 0; int count_before = skip_args; +#ifdef HAVE_X_WINDOWS + char *displayname = 0; + /* Skip any number of -d options, but only use the last one. */ while (!only_version) { @@ -2045,12 +2046,15 @@ main (int argc, char **argv) } argv[count_before + 1] = (char *) "-d"; } +#endif /* !HAVE_X_WINDOWS */ if (! no_site_lisp) { - if (argmatch (argv, argc, "-Q", "--quick", 3, NULL, &skip_args) + + if (argmatch (argv, argc, "-Q", "--quick", 3, NULL, &skip_args) || argmatch (argv, argc, "-quick", 0, 2, NULL, &skip_args)) - no_site_lisp = 1; + no_site_lisp = 1; + } if (argmatch (argv, argc, "-x", 0, 1, &junk, &skip_args)) @@ -2066,18 +2070,6 @@ main (int argc, char **argv) /* Don't actually discard this arg. */ skip_args = count_before; } -#else /* !HAVE_X_WINDOWS */ - if (! no_site_lisp) - { - int count_before = skip_args; - - if (argmatch (argv, argc, "-Q", "--quick", 3, NULL, &skip_args) - || argmatch (argv, argc, "-quick", 0, 2, NULL, &skip_args)) - no_site_lisp = 1; - - skip_args = count_before; - } -#endif /* argmatch must not be used after here, except when building temacs From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 09 07:44:07 2023 Received: (at 65048) by debbugs.gnu.org; 9 Aug 2023 11:44:07 +0000 Received: from localhost ([127.0.0.1]:38392 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qThbj-0001zF-9c for submit@debbugs.gnu.org; Wed, 09 Aug 2023 07:44:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57064) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qThbh-0001yd-Mr for 65048@debbugs.gnu.org; Wed, 09 Aug 2023 07:44:06 -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 1qThbc-00072E-9p; Wed, 09 Aug 2023 07:44:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=VLMtfwVulN5GjyhgmG3cSdixdu1Lfmr5xQgmlvMvS78=; b=AXJepQkdNaac ogy0y600sqTpSEib/zV22spljW1Waz1bkd8zAu1IFkA3KHuP+EIc7dqZ5zutQiyKB2EX3jK4umtVE Wk5CdyWsHCjY9TCGdHtd5PnsLqbVbxVQG81LGu8PmHTxRmG/sCSK7qlIHsbl4t0NiL25KTz31bxXx RJUGa8QyZ89Z//aoklasctPjy8aB3ZVpu7nDH3zFZIfv7Y2fkbPC++5BowdqSsgg1v1EKU5gRMBLW PNJsgg+10mFh+IqVtE6NGnu/D7656graCq4IWo74t4p5jD20VT7BonQLaNgbrL5IeXYfsH67/JJ3N OuCJLYADb4fSrUIarlRTgA==; Date: Wed, 09 Aug 2023 14:44:24 +0300 Message-Id: <838rakmodj.fsf@gnu.org> From: Eli Zaretskii To: John t , Po Lu In-Reply-To: (message from John t on Tue, 8 Aug 2023 23:51:32 -0400) Subject: Re: bug#65048: 29.1; cli argument "-x" fails with "unknown option" error on PGTK Emacs References: <83fs4zwcop.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 65048 Cc: 65048@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 (---) > From: John t > Date: Tue, 8 Aug 2023 23:51:32 -0400 > (You've replied only to me, so no one else saw your message. Please in the future use Reply All, to keep the bug address on the CC list.) > I have tested the patch with PGTK, and headless configurations and the option seems to work > correctly. > > A friend with an x11 emacs tested the patch and reported that it returned the "unknown option" error. That's strange. Can someone please test the patch on X and see if it works, and if not, tell me where I goofed? TIA From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 09 13:34:44 2023 Received: (at 65048) by debbugs.gnu.org; 9 Aug 2023 17:34:44 +0000 Received: from localhost ([127.0.0.1]:40446 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qTn51-0006Yj-M4 for submit@debbugs.gnu.org; Wed, 09 Aug 2023 13:34:43 -0400 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]:45564) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qTn4z-0006YU-Oc for 65048@debbugs.gnu.org; Wed, 09 Aug 2023 13:34:42 -0400 Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-3fe4a89e8c4so44367795e9.3 for <65048@debbugs.gnu.org>; Wed, 09 Aug 2023 10:34:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691602476; x=1692207276; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=7y08L4qq8LR5szZinkUHLgTdUehzkvEtVBhoNtJp0Do=; b=ph509SCmyoV3BXgiJ5Qv2RkCRoiPGhDI26AF0dU7Jtxtc10SRwtXgsBD05w+0si7uG IaRbTXwXhEgsRlHbcD03ix3Gw1Kwjyjg/8cjURuFgVDydsaeSSyXlBptzFZO2FO8Okpm +gXVNbPRqN6aMhqnJaRWUxEXL6fzbylUWxBRRLvGyQZBSqkKXRIH7/7+AbFD6qwfNwsL f5ulncX68IKzwKtwZ1cEzlUf7MiN9GiJVhWfNIl2ohQV593UhmonVCJKTvexqH49qhaA 01BKqYUD5NaZg2XDtFgBKwVXHbL89mKn84IoQz5lKni7Bd7PtrwOmmdrmHO3lYJEphT6 j7FQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691602476; x=1692207276; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=7y08L4qq8LR5szZinkUHLgTdUehzkvEtVBhoNtJp0Do=; b=ODcEWT9ZITp21ZmbuQnDAwqeEGM4QZ+QPFAvP8JPNOovfibq6tU7X3JG2LY2B0Zr4h /txD3ttO2C8pg+mIDwvpKCkC3eCmXw1BGai7cdm8VRet9xmPu5y9Ny4+dD/FXnjNxtB0 Amima2QTXTz3AyaGswJR/c1Rvrndy9M8uIbkizxVpV4LeQ2H8pDX0G4zDD2zMaalHFFF 2NKl/KVFQsddwmuYD6yHjyY3YeAtnnQxse8JO8OMnTBckL5ID8GSXIzt5/48KFNJZBVN vv/2zsKaI3PEEnYUZiaj0mbNJ/E0B+xfOGjvReCpjZ1gQpV7IPmPDUZSfvwfet+x5GXB OkEg== X-Gm-Message-State: AOJu0YyVqvWFVRLQ0pB7KUcrNwiaTJ9/eVsZiS+ljX8q4fe1ACrxCMx+ EuxdRX/CNSoBNbYQny+dae4vISbASjY= X-Google-Smtp-Source: AGHT+IGD9lDDEjkCINCXRCoY3Kg4Kk2FTN5LPTTZoiv4gaWbv9vIRulUeGN1fsBTSaANHEw+Ms7Jaw== X-Received: by 2002:a7b:ca51:0:b0:3fe:2219:9052 with SMTP id m17-20020a7bca51000000b003fe22199052mr2801273wml.18.1691602475567; Wed, 09 Aug 2023 10:34:35 -0700 (PDT) Received: from rltb ([2a01:e0a:3f3:fb50:7df8:d74c:1e19:ef48]) by smtp.gmail.com with ESMTPSA id y25-20020a05600c365900b003fe1afb99a9sm2562120wmq.11.2023.08.09.10.34.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Aug 2023 10:34:34 -0700 (PDT) From: Robert Pluim To: Eli Zaretskii Subject: Re: bug#65048: 29.1; cli argument "-x" fails with "unknown option" error on PGTK Emacs In-Reply-To: <838rakmodj.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 09 Aug 2023 14:44:24 +0300") References: <83fs4zwcop.fsf@gnu.org> <838rakmodj.fsf@gnu.org> Date: Wed, 09 Aug 2023 19:34:34 +0200 Message-ID: <87v8do6rx1.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 65048 Cc: Po Lu , John t , 65048@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: -1.0 (-) >>>>> On Wed, 09 Aug 2023 14:44:24 +0300, Eli Zaretskii said: >> From: John t >> Date: Tue, 8 Aug 2023 23:51:32 -0400 >> Eli> (You've replied only to me, so no one else saw your message. Please Eli> in the future use Reply All, to keep the bug address on the CC list.) >> I have tested the patch with PGTK, and headless configurations and the option seems to work >> correctly. >> >> A friend with an x11 emacs tested the patch and reported that it returned the "unknown option" error. Eli> That's strange. Can someone please test the patch on X and see if it Eli> works, and if not, tell me where I goofed? Looks ok to me: $ src/emacs -x Wrong type argument: stringp, nil Error: wrong-type-argument (stringp nil) mapbacktrace(#f(compiled-function (evald func args flags) #)) debug-early-backtrace() debug-early(error (wrong-type-argument stringp nil)) string-match("^///+" nil) command-line-normalize-file-name(nil) command-line-1(("-scripteval")) command-line() normal-top-level() Robert -- From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 09 14:05:18 2023 Received: (at 65048) by debbugs.gnu.org; 9 Aug 2023 18:05:18 +0000 Received: from localhost ([127.0.0.1]:40486 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qTnYc-0004AI-6O for submit@debbugs.gnu.org; Wed, 09 Aug 2023 14:05:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52354) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qTnYa-0004A3-TP for 65048@debbugs.gnu.org; Wed, 09 Aug 2023 14:05:17 -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 1qTnYV-0000m9-At; Wed, 09 Aug 2023 14:05:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=0IfZjZhpZxW1dzP1PlkAE7e2L3C2vcgIT/5GotBcB8M=; b=EdiIfiYdmt5T 0MS2QSVi8ppKsTAF2Mcx1BdgD35/RhgxIWUOv/fv8hRDFpBfeTaeKdHDNEjVGBBl4gwSw91Dx6J10 pIcMkoBwVmeer6ujkl4mvyB7L9ItbgozWcOKX1Hlmh2Xn2sWCUbBv95mZ/5JIPvFJIBjN4xNDBXg+ 2gmGKMHG6535Nr8v65DxypdMBAmmX5hMdzXxtZmcXJVQEK8DLPNnUIIs6Ie3eQqe+5DtgaojPsovM 4ZFtYRSFiQ+cMaHOXoMfdYwTdDcY2+F9MeDUWp09CFIIHmiG+F0K/Hz8fKKdp69yCeMC0rZKIyR9I O54i6yNH9VOmp8IZZLBzJg==; Date: Wed, 09 Aug 2023 21:05:36 +0300 Message-Id: <83zg30jdlb.fsf@gnu.org> From: Eli Zaretskii To: Robert Pluim In-Reply-To: <87v8do6rx1.fsf@gmail.com> (message from Robert Pluim on Wed, 09 Aug 2023 19:34:34 +0200) Subject: Re: bug#65048: 29.1; cli argument "-x" fails with "unknown option" error on PGTK Emacs References: <83fs4zwcop.fsf@gnu.org> <838rakmodj.fsf@gnu.org> <87v8do6rx1.fsf@gmail.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 65048 Cc: luangruo@yahoo.com, jturner.usa@gmail.com, 65048@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 (---) > From: Robert Pluim > Cc: John t , Po Lu , > 65048@debbugs.gnu.org > Date: Wed, 09 Aug 2023 19:34:34 +0200 > > >>>>> On Wed, 09 Aug 2023 14:44:24 +0300, Eli Zaretskii said: > > Eli> That's strange. Can someone please test the patch on X and see if it > Eli> works, and if not, tell me where I goofed? > > Looks ok to me: > > $ src/emacs -x > > Wrong type argument: stringp, nil Thanks. And if you invoke the following shell script, does it produce the message as expected? #!/path/to/src/emacs -x (message "Hello, emacs scripting!") From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 10 03:37:41 2023 Received: (at 65048) by debbugs.gnu.org; 10 Aug 2023 07:37:41 +0000 Received: from localhost ([127.0.0.1]:41217 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qU0En-0003Tv-8j for submit@debbugs.gnu.org; Thu, 10 Aug 2023 03:37:41 -0400 Received: from mail-lj1-x22d.google.com ([2a00:1450:4864:20::22d]:49452) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qU0Ej-0003Tf-Pp for 65048@debbugs.gnu.org; Thu, 10 Aug 2023 03:37:39 -0400 Received: by mail-lj1-x22d.google.com with SMTP id 38308e7fff4ca-2b9d07a8d84so9610781fa.3 for <65048@debbugs.gnu.org>; Thu, 10 Aug 2023 00:37:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691653051; x=1692257851; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=X63b2Cfsn2Tbhi+kusoGaycvZc7sGLVaxekkFpFmAGE=; b=smwjdfjLxZ7sDJ5ojY7fkeZzsHc69xNeFvozIawpbYCVW5Ya/xsEjzW2GahEchI0tm nlK28uGadpyCmlvdHufDxbGzzC+t4onJ2xY11SsR0Gmixab1NWktaJVERM6ZVALTqZLl rQ+p/+3oSgu30mUY5ZkuO1FEKV0HB6tZuFGp23xEhkMFtJboY+IzxZ+HI32rVBeBnSf8 nvjAPjbY/GeItLjwEpghbzbEb9HG9Co2nUXsG14RAcFPXRUAGIug/yIpkr4VQxC9hMBc SCeSFD8k57uRA7FuYgeXeodDyzVlOXqlT+HMKUxZSv3zVfXYq1KhrED4kEHlxJ7tQIaa 8NHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691653051; x=1692257851; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=X63b2Cfsn2Tbhi+kusoGaycvZc7sGLVaxekkFpFmAGE=; b=LxRv+67Rl5YVkrudeUO3+dwIhgqnB0hgA7Q9RsCt1NcZOsw3nbw7e7hk5gX6sdiqzf V8Bylmmnpph95iHuiKk+LSY0m88hejcweJbzeOCiy9VjQ++7i/zMFLG94vgPCsI9lyTb 08DgVQg8C0WspifVoeJGt7JVwi7c71EtkRiHGOjbBHPFubu4TtjCCJD/ExflQjQIoUl+ evSXg+6aBBxOwVUbHSj/ZlHziulUGOHEur3G8/B2aVXzAPnNJ/AH4fI2aOLK/xO03sv3 jWqPp/FRpkmtPF6Iyqspar7gxPlTLglLK0HoegsSjHEScZ2W9HSZT2rnmC8BNqo3ehKA Svlg== X-Gm-Message-State: AOJu0YzWDFW8MSz+hk0bQYHj2EdrU0hKg61p5juPH2cAVT6jvNekheVJ MXTRHBN/A7w694eDcD0P6U6yB24lp+c= X-Google-Smtp-Source: AGHT+IFpcn6TCVRpcF2ZqhCR3/DB9Q/9h8QnH4Jo/nQOyz3oaFxQtsa8q9QsN7x4wK0azS2OIJBytA== X-Received: by 2002:a2e:3817:0:b0:2b6:a827:164f with SMTP id f23-20020a2e3817000000b002b6a827164fmr1161706lja.10.1691653050890; Thu, 10 Aug 2023 00:37:30 -0700 (PDT) Received: from rltb ([2a01:e0a:3f3:fb50:7df8:d74c:1e19:ef48]) by smtp.gmail.com with ESMTPSA id n24-20020a7bcbd8000000b003fbb0c01d4bsm1235811wmi.16.2023.08.10.00.37.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Aug 2023 00:37:30 -0700 (PDT) From: Robert Pluim To: Eli Zaretskii Subject: Re: bug#65048: 29.1; cli argument "-x" fails with "unknown option" error on PGTK Emacs In-Reply-To: <83zg30jdlb.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 09 Aug 2023 21:05:36 +0300") References: <83fs4zwcop.fsf@gnu.org> <838rakmodj.fsf@gnu.org> <87v8do6rx1.fsf@gmail.com> <83zg30jdlb.fsf@gnu.org> Date: Thu, 10 Aug 2023 09:37:29 +0200 Message-ID: <87r0ob73gm.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 65048 Cc: luangruo@yahoo.com, jturner.usa@gmail.com, 65048@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: -1.0 (-) >>>>> On Wed, 09 Aug 2023 21:05:36 +0300, Eli Zaretskii said: Eli> Thanks. And if you invoke the following shell script, does it produce Eli> the message as expected? Eli> #!/path/to/src/emacs -x Eli> (message "Hello, emacs scripting!") (emacs-29 *)> ./foo.sh Hello, emacs scripting! (emacs-29 *)> Robert -- From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 10 03:51:37 2023 Received: (at 65048-done) by debbugs.gnu.org; 10 Aug 2023 07:51:38 +0000 Received: from localhost ([127.0.0.1]:41253 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qU0SH-0003v4-Kq for submit@debbugs.gnu.org; Thu, 10 Aug 2023 03:51:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55376) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qU0SF-0003us-VI for 65048-done@debbugs.gnu.org; Thu, 10 Aug 2023 03:51:36 -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 1qU0SA-0005rF-Lv; Thu, 10 Aug 2023 03:51:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=RUbUXBic34mOqJp2afqN1MmUIWPoRl5dbquPGhI4bHM=; b=qt25utHfKYgF tu+bF0Pniccj/U7eWEn9KP3B+a7JTUR3uxNwpa7yRwsnXRbn99n2jncwq7VwP5W956XggQg3oxBcE DRi9CECEYA/IatN0B12pwUTfjwf/RIOZtia53YL4pI453tbN76QgsnPi4x/59i9suKUrE/2YeyL9w wXqUKHmgIvm6/9liZgzC6Bz7ioZGL7DIr9rCkS6n416Y5b9d5VySGCFrUL7zXsp27gFyvBUhxrwa+ kjs5gG8V2IHoraR4KGGz3Abg8PVbhrJvQPxtbw8FF53UMJ3oVPu3PtcW7ccG3GCYMM0V1pjbjWR9I nA/ZmaiikrYOegJc64brog==; Date: Thu, 10 Aug 2023 10:51:55 +0300 Message-Id: <83bkffjpwk.fsf@gnu.org> From: Eli Zaretskii To: Robert Pluim In-Reply-To: <87r0ob73gm.fsf@gmail.com> (message from Robert Pluim on Thu, 10 Aug 2023 09:37:29 +0200) Subject: Re: bug#65048: 29.1; cli argument "-x" fails with "unknown option" error on PGTK Emacs References: <83fs4zwcop.fsf@gnu.org> <838rakmodj.fsf@gnu.org> <87v8do6rx1.fsf@gmail.com> <83zg30jdlb.fsf@gnu.org> <87r0ob73gm.fsf@gmail.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 65048-done Cc: luangruo@yahoo.com, jturner.usa@gmail.com, 65048-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 (---) > From: Robert Pluim > Cc: jturner.usa@gmail.com, luangruo@yahoo.com, 65048@debbugs.gnu.org > Date: Thu, 10 Aug 2023 09:37:29 +0200 > > >>>>> On Wed, 09 Aug 2023 21:05:36 +0300, Eli Zaretskii said: > Eli> Thanks. And if you invoke the following shell script, does it produce > Eli> the message as expected? > > Eli> #!/path/to/src/emacs -x > > Eli> (message "Hello, emacs scripting!") > > (emacs-29 *)> ./foo.sh > Hello, emacs scripting! > (emacs-29 *)> Thanks. So I've now installed the fix on the emacs-29 branch, and I'm closing this bug. From unknown Sat Aug 09 15:56:49 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 07 Sep 2023 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator