From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John t Newsgroups: gmane.emacs.bugs Subject: bug#65048: 29.1; cli argument "-x" fails with "unknown option" error on PGTK Emacs Date: Thu, 3 Aug 2023 22:47:19 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="000000000000ff11d006020fea52" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2170"; mail-complaints-to="usenet@ciao.gmane.io" To: 65048@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 04 05:57:28 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qRlwM-0000Op-Lv for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 04 Aug 2023 05:57:26 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qRlw1-0004Ze-RL; Thu, 03 Aug 2023 23:57:05 -0400 Original-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 1qRlw0-0004Z8-TQ for bug-gnu-emacs@gnu.org; Thu, 03 Aug 2023 23:57:04 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qRlw0-0000Rw-Ic for bug-gnu-emacs@gnu.org; Thu, 03 Aug 2023 23:57:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qRlw0-0003So-Dx for bug-gnu-emacs@gnu.org; Thu, 03 Aug 2023 23:57:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: John t Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 04 Aug 2023 03:57:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 65048 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.169112138113220 (code B ref -1); Fri, 04 Aug 2023 03:57:04 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 Aug 2023 03:56:21 +0000 Original-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 Original-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 Original-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 Original-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 Original-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) 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-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 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:266637 Archived-At: --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 aW5zZXJ0aW9ucygrKS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