GNU bug report logs - #20918
Optional argument skipped

Previous Next

Package: emacs;

Reported by: Jean TBM <jean <at> tbm.email>

Date: Sun, 28 Jun 2015 17:10:04 UTC

Severity: minor

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 20918 in the body.
You can then email your comments to 20918 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#20918; Package emacs. (Sun, 28 Jun 2015 17:10:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jean TBM <jean <at> tbm.email>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 28 Jun 2015 17:10:05 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jean TBM <jean <at> tbm.email>
To: bug-gnu-emacs <at> gnu.org
Subject: Optional argument skipped
Date: Sat, 27 Jun 2015 20:20:18 +0100
SYMPTOM:
When the keyword &optional is specified more than once, a function will
behave differently when byte compiled.

EXAMPLE:

(defun foo(&optional value1 &optional value2)
(message "Value1: %s\nValue2:%s"
        value1
        value2)
)

(foo "a" "b")
=== 
When not byte compiled:

Value1: a
Value2: b

When byte compiled:

Value1: b
Value2: nil






=== CONFIGURATION ===

In GNU Emacs 24.5.1 (i686-pc-mingw32)
 of 2015-04-11 on LEG570
Windowing system distributor `Microsoft Corp.', version 6.3.9600
Configured using:
 `configure --prefix=/c/usr --host=i686-pc-mingw32'

Important settings:
  value of $LANG: ENG
  locale-coding-system: cp1252

Major mode: C#/l

Minor modes in effect:
  omnisharp-mode: t
  goto-address-prog-mode: t
  auto-highlight-symbol-mode: t
  clean-aindent-mode: t
  git-gutter-mode: t
  highlight-numbers-mode: t
  rainbow-delimiters-mode: t
  yas-global-mode: t
  yas-minor-mode: t
  helm-descbinds-mode: t
  helm-mode: t
  shell-dirtrack-mode: t
  projectile-global-mode: t
  projectile-mode: t
  recentf-mode: t
  window-numbering-mode: t
  volatile-highlights-mode: t
  global-vi-tilde-fringe-mode: t
  vi-tilde-fringe-mode: t
  global-undo-tree-mode: t
  undo-tree-mode: t
  global-page-break-lines-mode: t
  ido-vertical-mode: t
  guide-key-mode: t
  popwin-mode: t
  flx-ido-mode: t
  global-evil-surround-mode: t
  evil-surround-mode: t
  global-evil-search-highlight-persist: t
  evil-search-highlight-persist: t
  show-smartparens-global-mode: t
  show-smartparens-mode: t
  smartparens-mode: t
  evil-jumper-mode: t
  global-anzu-mode: t
  anzu-mode: t
  eval-sexp-fu-flash-mode: t
  company-mode: t
  savehist-mode: t
  global-hl-line-mode: t
  xterm-mouse-mode: t
  winner-mode: t
  global-auto-revert-mode: t
  evil-leader-mode: t
  evil-mode: t
  evil-local-mode: t
  override-global-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t
  abbrev-mode: t
  hs-minor-mode: t

Recent messages:
[yas] Discovered there was already FindProjectsHandler.cs in csharp-mode
[yas] Loading for `csharp-mode', just-in-time: (lambda nil (yas--load-directory-1 (quote c:/Users/matrix/.dotfiles/emacs/snippets/csharp-mode) (quote csharp-mode)))!
[yas] Loading compiled snippets from c:/Users/matrix/.dotfiles/emacs/snippets/csharp-mode
[yas] Prepared just-in-time loading for ~/.dotfiles/emacs/snippets
[yas] Reloaded everything (snippets will load just-in-time)....
Starting a new list of tags tables
Making tags-file-name local to TAGS while let-bound!
Target is OmniSharp and Build is Clean
"C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319\\Msbuild.exe /m /nologo /v:q /property:GenerateFullPaths=true \"d:\\Projects\\omnisharp-vim\\server\\OmniSharp\\OmniSharp.csproj\" /target:Clean"
ad-handle-definition: `eval-defun' got redefined

Load-path shadows:
c:/Users/matrix/.emacs.d/elpa/org-20150608/ox hides c:/Software/emacs/share/emacs/24.5/lisp/org/ox
c:/Users/matrix/.emacs.d/elpa/org-20150608/ox-texinfo hides c:/Software/emacs/share/emacs/24.5/lisp/org/ox-texinfo
c:/Users/matrix/.emacs.d/elpa/org-20150608/ox-publish hides c:/Software/emacs/share/emacs/24.5/lisp/org/ox-publish
c:/Users/matrix/.emacs.d/elpa/org-20150608/ox-org hides c:/Software/emacs/share/emacs/24.5/lisp/org/ox-org
c:/Users/matrix/.emacs.d/elpa/org-20150608/ox-odt hides c:/Software/emacs/share/emacs/24.5/lisp/org/ox-odt
c:/Users/matrix/.emacs.d/elpa/org-20150608/ox-md hides c:/Software/emacs/share/emacs/24.5/lisp/org/ox-md
c:/Users/matrix/.emacs.d/elpa/org-20150608/ox-man hides c:/Software/emacs/share/emacs/24.5/lisp/org/ox-man
c:/Users/matrix/.emacs.d/elpa/org-20150608/ox-latex hides c:/Software/emacs/share/emacs/24.5/lisp/org/ox-latex
c:/Users/matrix/.emacs.d/elpa/org-20150608/ox-icalendar hides c:/Software/emacs/share/emacs/24.5/lisp/org/ox-icalendar
c:/Users/matrix/.emacs.d/elpa/org-20150608/ox-html hides c:/Software/emacs/share/emacs/24.5/lisp/org/ox-html
c:/Users/matrix/.emacs.d/elpa/org-20150608/ox-beamer hides c:/Software/emacs/share/emacs/24.5/lisp/org/ox-beamer
c:/Users/matrix/.emacs.d/elpa/org-20150608/ox-ascii hides c:/Software/emacs/share/emacs/24.5/lisp/org/ox-ascii
c:/Users/matrix/.emacs.d/elpa/org-20150608/org hides c:/Software/emacs/share/emacs/24.5/lisp/org/org
c:/Users/matrix/.emacs.d/elpa/org-20150608/org-w3m hides c:/Software/emacs/share/emacs/24.5/lisp/org/org-w3m
c:/Users/matrix/.emacs.d/elpa/org-20150608/org-version hides c:/Software/emacs/share/emacs/24.5/lisp/org/org-version
c:/Users/matrix/.emacs.d/elpa/org-20150608/org-timer hides c:/Software/emacs/share/emacs/24.5/lisp/org/org-timer
c:/Users/matrix/.emacs.d/elpa/org-20150608/org-table hides c:/Software/emacs/share/emacs/24.5/lisp/org/org-table
c:/Users/matrix/.emacs.d/elpa/org-20150608/org-src hides c:/Software/emacs/share/emacs/24.5/lisp/org/org-src
c:/Users/matrix/.emacs.d/elpa/org-20150608/org-rmail hides c:/Software/emacs/share/emacs/24.5/lisp/org/org-rmail
c:/Users/matrix/.emacs.d/elpa/org-20150608/org-protocol hides c:/Software/emacs/share/emacs/24.5/lisp/org/org-protocol
c:/Users/matrix/.emacs.d/elpa/org-20150608/org-plot hides c:/Software/emacs/share/emacs/24.5/lisp/org/org-plot
c:/Users/matrix/.emacs.d/elpa/org-20150608/org-pcomplete hides c:/Software/emacs/share/emacs/24.5/lisp/org/org-pcomplete
c:/Users/matrix/.emacs.d/elpa/org-20150608/org-mouse hides c:/Software/emacs/share/emacs/24.5/lisp/org/org-mouse
c:/Users/matrix/.emacs.d/elpa/org-20150608/org-mobile hides c:/Software/emacs/share/emacs/24.5/lisp/org/org-mobile
c:/Users/matrix/.emacs.d/elpa/org-20150608/org-mhe hides c:/Software/emacs/share/emacs/24.5/lisp/org/org-mhe
c:/Users/matrix/.emacs.d/elpa/org-20150608/org-macs hides c:/Software/emacs/share/emacs/24.5/lisp/org/org-macs
c:/Users/matrix/.emacs.d/elpa/org-20150608/org-macro hides c:/Software/emacs/share/emacs/24.5/lisp/org/org-macro
c:/Users/matrix/.emacs.d/elpa/org-20150608/org-loaddefs hides c:/Software/emacs/share/emacs/24.5/lisp/org/org-loaddefs
c:/Users/matrix/.emacs.d/elpa/org-20150608/org-list hides c:/Software/emacs/share/emacs/24.5/lisp/org/org-list
c:/Users/matrix/.emacs.d/elpa/org-20150608/org-irc hides c:/Software/emacs/share/emacs/24.5/lisp/org/org-irc
c:/Users/matrix/.emacs.d/elpa/org-20150608/org-install hides c:/Software/emacs/share/emacs/24.5/lisp/org/org-install
c:/Users/matrix/.emacs.d/elpa/org-20150608/org-inlinetask hides c:/Software/emacs/share/emacs/24.5/lisp/org/org-inlinetask
c:/Users/matrix/.emacs.d/elpa/org-20150608/org-info hides c:/Software/emacs/share/emacs/24.5/lisp/org/org-info
c:/Users/matrix/.emacs.d/elpa/org-20150608/org-indent hides c:/Software/emacs/share/emacs/24.5/lisp/org/org-indent
c:/Users/matrix/.emacs.d/elpa/org-20150608/org-id hides c:/Software/emacs/share/emacs/24.5/lisp/org/org-id
c:/Users/matrix/.emacs.d/elpa/org-20150608/org-habit hides c:/Software/emacs/share/emacs/24.5/lisp/org/org-habit
c:/Users/matrix/.emacs.d/elpa/org-20150608/org-gnus hides c:/Software/emacs/share/emacs/24.5/lisp/org/org-gnus
c:/Users/matrix/.emacs.d/elpa/org-20150608/org-footnote hides c:/Software/emacs/share/emacs/24.5/lisp/org/org-footnote
c:/Users/matrix/.emacs.d/elpa/org-20150608/org-feed hides c:/Software/emacs/share/emacs/24.5/lisp/org/org-feed
c:/Users/matrix/.emacs.d/elpa/org-20150608/org-faces hides c:/Software/emacs/share/emacs/24.5/lisp/org/org-faces
c:/Users/matrix/.emacs.d/elpa/org-20150608/org-eshell hides c:/Software/emacs/share/emacs/24.5/lisp/org/org-eshell
c:/Users/matrix/.emacs.d/elpa/org-20150608/org-entities hides c:/Software/emacs/share/emacs/24.5/lisp/org/org-entities
c:/Users/matrix/.emacs.d/elpa/org-20150608/org-element hides c:/Software/emacs/share/emacs/24.5/lisp/org/org-element
c:/Users/matrix/.emacs.d/elpa/org-20150608/org-docview hides c:/Software/emacs/share/emacs/24.5/lisp/org/org-docview
c:/Users/matrix/.emacs.d/elpa/org-20150608/org-datetree hides c:/Software/emacs/share/emacs/24.5/lisp/org/org-datetree
c:/Users/matrix/.emacs.d/elpa/org-20150608/org-ctags hides c:/Software/emacs/share/emacs/24.5/lisp/org/org-ctags
c:/Users/matrix/.emacs.d/elpa/org-20150608/org-crypt hides c:/Software/emacs/share/emacs/24.5/lisp/org/org-crypt
c:/Users/matrix/.emacs.d/elpa/org-20150608/org-compat hides c:/Software/emacs/share/emacs/24.5/lisp/org/org-compat
c:/Users/matrix/.emacs.d/elpa/org-20150608/org-colview hides c:/Software/emacs/share/emacs/24.5/lisp/org/org-colview
c:/Users/matrix/.emacs.d/elpa/org-20150608/org-clock hides c:/Software/emacs/share/emacs/24.5/lisp/org/org-clock
c:/Users/matrix/.emacs.d/elpa/org-20150608/org-capture hides c:/Software/emacs/share/emacs/24.5/lisp/org/org-capture
c:/Users/matrix/.emacs.d/elpa/org-20150608/org-bibtex hides c:/Software/emacs/share/emacs/24.5/lisp/org/org-bibtex
c:/Users/matrix/.emacs.d/elpa/org-20150608/org-bbdb hides c:/Software/emacs/share/emacs/24.5/lisp/org/org-bbdb
c:/Users/matrix/.emacs.d/elpa/org-20150608/org-attach hides c:/Software/emacs/share/emacs/24.5/lisp/org/org-attach
c:/Users/matrix/.emacs.d/elpa/org-20150608/org-archive hides c:/Software/emacs/share/emacs/24.5/lisp/org/org-archive
c:/Users/matrix/.emacs.d/elpa/org-20150608/org-agenda hides c:/Software/emacs/share/emacs/24.5/lisp/org/org-agenda
c:/Users/matrix/.emacs.d/elpa/org-20150608/ob hides c:/Software/emacs/share/emacs/24.5/lisp/org/ob
c:/Users/matrix/.emacs.d/elpa/org-20150608/ob-tangle hides c:/Software/emacs/share/emacs/24.5/lisp/org/ob-tangle
c:/Users/matrix/.emacs.d/elpa/org-20150608/ob-table hides c:/Software/emacs/share/emacs/24.5/lisp/org/ob-table
c:/Users/matrix/.emacs.d/elpa/org-20150608/ob-sqlite hides c:/Software/emacs/share/emacs/24.5/lisp/org/ob-sqlite
c:/Users/matrix/.emacs.d/elpa/org-20150608/ob-sql hides c:/Software/emacs/share/emacs/24.5/lisp/org/ob-sql
c:/Users/matrix/.emacs.d/elpa/org-20150608/ob-shen hides c:/Software/emacs/share/emacs/24.5/lisp/org/ob-shen
c:/Users/matrix/.emacs.d/elpa/org-20150608/ob-sh hides c:/Software/emacs/share/emacs/24.5/lisp/org/ob-sh
c:/Users/matrix/.emacs.d/elpa/org-20150608/ob-screen hides c:/Software/emacs/share/emacs/24.5/lisp/org/ob-screen
c:/Users/matrix/.emacs.d/elpa/org-20150608/ob-scheme hides c:/Software/emacs/share/emacs/24.5/lisp/org/ob-scheme
c:/Users/matrix/.emacs.d/elpa/org-20150608/ob-scala hides c:/Software/emacs/share/emacs/24.5/lisp/org/ob-scala
c:/Users/matrix/.emacs.d/elpa/org-20150608/ob-sass hides c:/Software/emacs/share/emacs/24.5/lisp/org/ob-sass
c:/Users/matrix/.emacs.d/elpa/org-20150608/ob-ruby hides c:/Software/emacs/share/emacs/24.5/lisp/org/ob-ruby
c:/Users/matrix/.emacs.d/elpa/org-20150608/ob-ref hides c:/Software/emacs/share/emacs/24.5/lisp/org/ob-ref
c:/Users/matrix/.emacs.d/elpa/org-20150608/ob-R hides c:/Software/emacs/share/emacs/24.5/lisp/org/ob-R
c:/Users/matrix/.emacs.d/elpa/org-20150608/ob-python hides c:/Software/emacs/share/emacs/24.5/lisp/org/ob-python
c:/Users/matrix/.emacs.d/elpa/org-20150608/ob-plantuml hides c:/Software/emacs/share/emacs/24.5/lisp/org/ob-plantuml
c:/Users/matrix/.emacs.d/elpa/org-20150608/ob-picolisp hides c:/Software/emacs/share/emacs/24.5/lisp/org/ob-picolisp
c:/Users/matrix/.emacs.d/elpa/org-20150608/ob-perl hides c:/Software/emacs/share/emacs/24.5/lisp/org/ob-perl
c:/Users/matrix/.emacs.d/elpa/org-20150608/ob-org hides c:/Software/emacs/share/emacs/24.5/lisp/org/ob-org
c:/Users/matrix/.emacs.d/elpa/org-20150608/ob-octave hides c:/Software/emacs/share/emacs/24.5/lisp/org/ob-octave
c:/Users/matrix/.emacs.d/elpa/org-20150608/ob-ocaml hides c:/Software/emacs/share/emacs/24.5/lisp/org/ob-ocaml
c:/Users/matrix/.emacs.d/elpa/org-20150608/ob-mscgen hides c:/Software/emacs/share/emacs/24.5/lisp/org/ob-mscgen
c:/Users/matrix/.emacs.d/elpa/org-20150608/ob-maxima hides c:/Software/emacs/share/emacs/24.5/lisp/org/ob-maxima
c:/Users/matrix/.emacs.d/elpa/org-20150608/ob-matlab hides c:/Software/emacs/share/emacs/24.5/lisp/org/ob-matlab
c:/Users/matrix/.emacs.d/elpa/org-20150608/ob-makefile hides c:/Software/emacs/share/emacs/24.5/lisp/org/ob-makefile
c:/Users/matrix/.emacs.d/elpa/org-20150608/ob-lob hides c:/Software/emacs/share/emacs/24.5/lisp/org/ob-lob
c:/Users/matrix/.emacs.d/elpa/org-20150608/ob-lisp hides c:/Software/emacs/share/emacs/24.5/lisp/org/ob-lisp
c:/Users/matrix/.emacs.d/elpa/org-20150608/ob-lilypond hides c:/Software/emacs/share/emacs/24.5/lisp/org/ob-lilypond
c:/Users/matrix/.emacs.d/elpa/org-20150608/ob-ledger hides c:/Software/emacs/share/emacs/24.5/lisp/org/ob-ledger
c:/Users/matrix/.emacs.d/elpa/org-20150608/ob-latex hides c:/Software/emacs/share/emacs/24.5/lisp/org/ob-latex
c:/Users/matrix/.emacs.d/elpa/org-20150608/ob-keys hides c:/Software/emacs/share/emacs/24.5/lisp/org/ob-keys
c:/Users/matrix/.emacs.d/elpa/org-20150608/ob-js hides c:/Software/emacs/share/emacs/24.5/lisp/org/ob-js
c:/Users/matrix/.emacs.d/elpa/org-20150608/ob-java hides c:/Software/emacs/share/emacs/24.5/lisp/org/ob-java
c:/Users/matrix/.emacs.d/elpa/org-20150608/ob-io hides c:/Software/emacs/share/emacs/24.5/lisp/org/ob-io
c:/Users/matrix/.emacs.d/elpa/org-20150608/ob-haskell hides c:/Software/emacs/share/emacs/24.5/lisp/org/ob-haskell
c:/Users/matrix/.emacs.d/elpa/org-20150608/ob-gnuplot hides c:/Software/emacs/share/emacs/24.5/lisp/org/ob-gnuplot
c:/Users/matrix/.emacs.d/elpa/org-20150608/ob-fortran hides c:/Software/emacs/share/emacs/24.5/lisp/org/ob-fortran
c:/Users/matrix/.emacs.d/elpa/org-20150608/ob-exp hides c:/Software/emacs/share/emacs/24.5/lisp/org/ob-exp
c:/Users/matrix/.emacs.d/elpa/org-20150608/ob-eval hides c:/Software/emacs/share/emacs/24.5/lisp/org/ob-eval
c:/Users/matrix/.emacs.d/elpa/org-20150608/ob-emacs-lisp hides c:/Software/emacs/share/emacs/24.5/lisp/org/ob-emacs-lisp
c:/Users/matrix/.emacs.d/elpa/org-20150608/ob-dot hides c:/Software/emacs/share/emacs/24.5/lisp/org/ob-dot
c:/Users/matrix/.emacs.d/elpa/org-20150608/ob-ditaa hides c:/Software/emacs/share/emacs/24.5/lisp/org/ob-ditaa
c:/Users/matrix/.emacs.d/elpa/org-20150608/ob-css hides c:/Software/emacs/share/emacs/24.5/lisp/org/ob-css
c:/Users/matrix/.emacs.d/elpa/org-20150608/ob-core hides c:/Software/emacs/share/emacs/24.5/lisp/org/ob-core
c:/Users/matrix/.emacs.d/elpa/org-20150608/ob-comint hides c:/Software/emacs/share/emacs/24.5/lisp/org/ob-comint
c:/Users/matrix/.emacs.d/elpa/org-20150608/ob-clojure hides c:/Software/emacs/share/emacs/24.5/lisp/org/ob-clojure
c:/Users/matrix/.emacs.d/elpa/org-20150608/ob-calc hides c:/Software/emacs/share/emacs/24.5/lisp/org/ob-calc
c:/Users/matrix/.emacs.d/elpa/org-20150608/ob-C hides c:/Software/emacs/share/emacs/24.5/lisp/org/ob-C
c:/Users/matrix/.emacs.d/elpa/org-20150608/ob-awk hides c:/Software/emacs/share/emacs/24.5/lisp/org/ob-awk
c:/Users/matrix/.emacs.d/elpa/org-20150608/ob-asymptote hides c:/Software/emacs/share/emacs/24.5/lisp/org/ob-asymptote

Features:
(shadow sort mail-extr emacsbug message rfc822 mml mml-sec mm-decode
mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader
sendmail rfc2047 rfc2045 ietf-drums mail-utils helm-command helm-elisp
helm-eval edebug eldoc cc-langs vc-git evil-iedit-state iedit iedit-lib
imenu company-files company-keywords company-etags company-gtags
company-template company-dabbrev-code company-dabbrev omnisharp
omnisharp-auto-complete-actions omnisharp-server-actions omnisharp-utils
flycheck popup json hideshow goto-addr auto-highlight-symbol
clean-aindent-mode git-gutter-fringe fringe-helper git-gutter
highlight-numbers parent-mode rainbow-delimiters yasnippet csharp-mode
cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine
cc-vars cc-defs helm-projectile helm-descbinds helm-mode helm-files
tramp tramp-compat tramp-loaddefs trampver shell pcomplete ffap
helm-buffers helm-elscreen helm-tags helm-bookmark helm-adaptive
helm-info bookmark pp helm-locate helm-help helm-match-plugin helm-grep
helm-regexp helm-plugin grep helm-external helm-net browse-url xml url
url-proxy url-privacy url-expand url-methods url-history url-cookie
url-domsuf url-util url-parse auth-source gnus-util mm-util mail-prsvr
password-cache url-vars mailcap helm-utils compile comint ansi-color
helm helm-source find-func async projectile ibuf-ext ibuffer recentf
tree-widget help-mode dired+ w32-browser image-dired format-spec
image-file dired-x dired-aux dired key-chord server solarized
window-numbering etags volatile-highlights vi-tilde-fringe undo-tree
diff smooth-scrolling smartparens-config powerline powerline-separators
color powerline-themes page-break-lines ido-vertical-mode guide-key-tip
pos-tip guide-key s ucs-normalize popwin eieio eieio-core flx-ido flx
exec-path-from-shell evil-surround evil-search-highlight-persist
evil-numbers evil-lisp-state smartparens evil-jumper
evil-indent-textobject evil-exchange evil-args evil-anzu anzu mule-util
warnings info eval-sexp-fu rx highlight frame-fns avoid diminish
company-web company web-completion-data adaptive-wrap easymenu
evil-evilified-state finder-inf savehist saveplace hl-line xt-mouse
winner autorevert filenotify ido evil-leader evil evil-integration
evil-maps evil-commands evil-command-window evil-types evil-search
evil-ex evil-macros evil-repeat evil-states evil-core byte-opt
evil-common windmove thingatpt rect evil-digraphs evil-vars ring edmacro
kmacro use-package bytecomp byte-compile cconv bind-key easy-mmode dash
wid-edit warm-night-theme cl-extra core-configuration-layer
core-dotspacemacs package epg-config ht cl-macs cl gv cl-loaddefs cl-lib
core-spacemacs derived core-use-package-ext core-micro-state corelv
core-toggle core-fonts-support pcase core-spacemacs-buffer core-funcs
core-themes-support advice help-fns core-auto-completion
core-emacs-backports subr-x time-date tooltip electric uniquify
ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp
w32-common-fns disp-table w32-win w32-vars tool-bar dnd fontset image
regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register
page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock
font-lock syntax facemenu font-core frame cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew
greek romanian slovak czech european ethiopic indian cyrillic chinese
case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice
loaddefs button faces cus-face macroexp files text-properties overlay
sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process w32notify w32
multi-tty emacs)

Memory information:
((conses 8 802469 385995)
 (symbols 32 50984 7)
 (miscs 32 260 990)
 (strings 16 124860 140874)
 (string-bytes 1 4523916)
 (vectors 8 81269)
 (vector-slots 4 1346950 119864)
 (floats 8 469 745)
 (intervals 28 2068 1720)
 (buffers 508 22))




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20918; Package emacs. (Thu, 01 Aug 2019 20:38:01 GMT) Full text and rfc822 format available.

Message #8 received at 20918 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Jean TBM <jean <at> tbm.email>
Cc: 20918 <at> debbugs.gnu.org
Subject: Re: bug#20918: Optional argument skipped
Date: Thu, 01 Aug 2019 22:37:35 +0200
Jean TBM <jean <at> tbm.email> writes:

> SYMPTOM:
> When the keyword &optional is specified more than once, a function will
> behave differently when byte compiled.
>
> EXAMPLE:
>
> (defun foo(&optional value1 &optional value2)
> (message "Value1: %s\nValue2:%s"
>         value1
>         value2)
> )
>
> (foo "a" "b")
> === 
> When not byte compiled:
>
> Value1: a
> Value2: b
>
> When byte compiled:
>
> Value1: b
> Value2: nil

(I'm going through old bug reports that have unfortunately not gotten
any responses.)

It looks like this has been fixed in the intervening years.

Calling foo uncompiled will now yield and error.  Trying to byte-compile
it will also result in an error, so it's now consistent, and I'm closing
this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug closed, send any further explanations to 20918 <at> debbugs.gnu.org and Jean TBM <jean <at> tbm.email> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 01 Aug 2019 20:38:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 30 Aug 2019 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 212 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.