From: Michael Heerdegen <michael_heerdegen@web.de>
To: Thorsten Jolitz <tjolitz@gmail.com>
Cc: 18039@debbugs.gnu.org
Subject: bug#18039: 24.3; Broken docstring in cl-style functions
Date: Thu, 17 Jul 2014 02:31:17 +0200 [thread overview]
Message-ID: <87y4vshlm2.fsf@web.de> (raw)
In-Reply-To: <87vbqwanvi.fsf@gmail.com> (Thorsten Jolitz's message of "Thu, 17 Jul 2014 01:24:17 +0200")
Thorsten Jolitz <tjolitz@gmail.com> writes:
> thus the bug seems to be in the combination of normal args
> 'key-val-strg and &key args with default values '(crlf "\n").
Indeed. Eval this in emacs -Q:
M-: (require 'cl)
M-: (cl-defun test (&key (c "\n")) "Test" nil)
M-: (symbol-function 'test)
==>
(lambda (&rest --cl-rest--) "Test
(fn 40 102 110 32 38 107 101 121 32 40 67 32 34 10 34 41 41) ...)
The newline character in the (printed) argument list makes a
difference in this expression in help-add-fundoc-usage:
(if (and (stringp arglist)
(string-match "\\`([^ ]+\\(.*\\))\\'" arglist))
(concat "(fn" (match-string 1 arglist) ")")
(format "%S" (help-make-usage 'fn arglist)))
(help-make-usage doesn't seem to expect a stringp arglist). Should the
regexp given to string-match be changed?
Michael.
next prev parent reply other threads:[~2014-07-17 0:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-16 23:24 bug#18039: 24.3; Broken docstring in cl-style functions Thorsten Jolitz
2014-07-17 0:31 ` Michael Heerdegen [this message]
2014-07-19 16:50 ` Stefan Monnier
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=87y4vshlm2.fsf@web.de \
--to=michael_heerdegen@web.de \
--cc=18039@debbugs.gnu.org \
--cc=tjolitz@gmail.com \
/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.