all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* error in  emacs-26.1
@ 2018-11-10  0:30 Steven Wu
  2018-11-10  3:42 ` Noam Postavsky
  0 siblings, 1 reply; 3+ messages in thread
From: Steven Wu @ 2018-11-10  0:30 UTC (permalink / raw)
  To: emacs-devel

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: error in emacs-26.1
  2018-11-10  0:30 error in emacs-26.1 Steven Wu
@ 2018-11-10  3:42 ` Noam Postavsky
  2018-11-12  7:38   ` Steven Wu
  0 siblings, 1 reply; 3+ messages in thread
From: Noam Postavsky @ 2018-11-10  3:42 UTC (permalink / raw)
  To: stevenywu; +Cc: Emacs developers

On Fri, 9 Nov 2018 at 19:40, Steven Wu <stevenywu@centurylink.net> wrote:

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

Maybe it's Bug#27411/28323?

https://debbugs.gnu.org/cgi/bugreport.cgi?bug=27411
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=28323



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: error in emacs-26.1
  2018-11-10  3:42 ` Noam Postavsky
@ 2018-11-12  7:38   ` Steven Wu
  0 siblings, 0 replies; 3+ messages in thread
From: Steven Wu @ 2018-11-12  7:38 UTC (permalink / raw)
  To: Noam Postavsky; +Cc: Emacs developers

Yup, looks like it, the  shell-eval-using-options wasn’t extended to subcommand.

steve

> On Nov 9, 2018, at 8:42 PM, Noam Postavsky <npostavs@gmail.com> wrote:
> 
> On Fri, 9 Nov 2018 at 19:40, Steven Wu <stevenywu@centurylink.net> wrote:
> 
>> It seems like the fix is only in emacs-27. Is that the case?
> 
> Maybe it's Bug#27411/28323?
> 
> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=27411
> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=28323




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-11-12  7:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-10  0:30 error in emacs-26.1 Steven Wu
2018-11-10  3:42 ` Noam Postavsky
2018-11-12  7:38   ` Steven Wu

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.