emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

error in emacs-26.1


From: Steven Wu
Subject: error in emacs-26.1
Date: Fri, 9 Nov 2018 17:30:29 -0700

All,

I’ve found an odd behavior in emacs-26.1, I have the following test function, 

(require ‘ash-opt)

(defun eshell/testargs (&rest args)
  "test args"
  (eshell-eval-using-options
   "testargs" args
   '((?o "option1" t optval1 "option1")
     (?O "option2" nil optval2 "option2")
     :usage "[-o | --option1 op] [-B | --option2] target")
   (progn (if optval1
              (prin1 optval1))
          (if optval2
              (prin1 optval2))
          (princ args))))

call the following command in eshell

eshell$ testargs -o opt1 -O target

for emacs-27 from code repository, I got
“opt1”t(target)

for emacs-26 I got
“-o”t(target)

It seems like the fix is only in emacs-27. Is that the case?

steve


reply via email to

[Prev in Thread] Current Thread [Next in Thread]