Subject: Re: bug#65048: 29.1; cli argument "-x" fails with "unknown option" error on PGTK Emacs

From: Robert Pluim <[email-masked]>
Date: Wed, 09 Aug 2023 19:34:34 +0200

>>>>> On Wed, 09 Aug 2023 14:44:24 +0300, Eli Zaretskii <[email-masked]> said:

    >> From: John t <[email-masked]>
    >> 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) #<bytecode -0x1d4598e800517817>))
  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
--