all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Steven Wu <stevenywu@centurylink.net>
To: emacs-devel@gnu.org
Subject: error in  emacs-26.1
Date: Fri, 9 Nov 2018 17:30:29 -0700	[thread overview]
Message-ID: <1E613FD8-5AF6-4541-BE1B-46D6FE06BD19@centurylink.net> (raw)

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	other threads:[~2018-11-10  0:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-10  0:30 Steven Wu [this message]
2018-11-10  3:42 ` error in emacs-26.1 Noam Postavsky
2018-11-12  7:38   ` Steven Wu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1E613FD8-5AF6-4541-BE1B-46D6FE06BD19@centurylink.net \
    --to=stevenywu@centurylink.net \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.