unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#30425: 27.0.50; Return value of `pcase' not specified if no patterns match
@ 2018-02-11 20:55 Philipp
  2018-03-31  5:03 ` Noam Postavsky
  0 siblings, 1 reply; 2+ messages in thread
From: Philipp @ 2018-02-11 20:55 UTC (permalink / raw)
  To: 30425


Neither the manual nor the docstring of `pcase' specify what happens if
no patterns match.  Probably the intention and actual behavior is that
it returns nil in that case, but that should be documented in the manual
and the docstring.


In GNU Emacs 27.0.50 (build 49, x86_64-apple-darwin17.4.0, NS appkit-1561.20 Version 10.13.3 (Build 17D47))
 of 2018-02-11 built on p
Repository revision: 13f4b518d0bb7cb4536d341a2a2c8d0b76f75f6b
Windowing system distributor 'Apple', version 10.3.1561
System Description:  Mac OS X 10.13.3

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.

Configured using:
 'configure --with-modules --without-pop --with-mailutils
 --enable-gcc-warnings=yes --enable-checking
 --enable-check-lisp-object-type 'CFLAGS=-ggdb3 -O0''

Configured features:
NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES THREADS
JSON

Important settings:
  value of $LANG: de_DE.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message rmc puny seq byte-opt gv
bytecomp byte-compile cconv cl-loaddefs cl-lib dired dired-loaddefs
format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg
epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode
mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047
rfc2045 ietf-drums mm-util mail-prsvr mail-utils elec-pair time-date
tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type
mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win
tool-bar dnd fontset image regexp-opt fringe tabulated-list replace
newcomment text-mode elisp-mode lisp-mode prog-mode register page
menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock
font-lock syntax facemenu font-core term/tty-colors frame cl-generic
cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech
european ethiopic indian cyrillic chinese composite charscript charprop
case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer
cl-preloaded 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 kqueue cocoa ns
multi-tty make-network-process emacs)

Memory information:
((conses 16 204902 7845)
 (symbols 48 20092 1)
 (miscs 40 56 123)
 (strings 32 28897 1979)
 (string-bytes 1 771864)
 (vectors 16 35246)
 (vector-slots 8 721896 13796)
 (floats 8 52 64)
 (intervals 56 211 0)
 (buffers 992 11))





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

* bug#30425: 27.0.50; Return value of `pcase' not specified if no patterns match
  2018-02-11 20:55 bug#30425: 27.0.50; Return value of `pcase' not specified if no patterns match Philipp
@ 2018-03-31  5:03 ` Noam Postavsky
  0 siblings, 0 replies; 2+ messages in thread
From: Noam Postavsky @ 2018-03-31  5:03 UTC (permalink / raw)
  To: Philipp; +Cc: 30425

tags 30425 fixed
close 30425 26.1
quit

Philipp <p.stephani2@gmail.com> writes:

> Neither the manual nor the docstring of `pcase' specify what happens if
> no patterns match.  Probably the intention and actual behavior is that
> it returns nil in that case, but that should be documented in the manual
> and the docstring.

Done in emacs-26.

[1: e50196e8a9]: 2018-03-31 00:50:37 -0400
  Document return value of pcase (Bug#30425)
  https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=e50196e8a96216f1fd69f9257cddd8d76ad2ac78





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

end of thread, other threads:[~2018-03-31  5:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-11 20:55 bug#30425: 27.0.50; Return value of `pcase' not specified if no patterns match Philipp
2018-03-31  5:03 ` Noam Postavsky

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).