[Top][All Lists]

[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


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"
   "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

for emacs-26 I got

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


reply via email to

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