1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-30 12:21:25 -08:00
emacs/lisp/progmodes
Paul Eggert b220562637 Fix quoting of help for functions with odd names
While investigating Bug#20759, I discovered other quoting problems:
C-h f mishandled characters like backslash and quote in function names.
This fix changes the behavior so that 'C-h f pcase RET' now
generates "... (\` QPAT) ..." instead of "... (` QPAT) ...",
because '(format "%S" '(` FOO))' returns "(\\` FOO)".  A comment
in src/lread.c's read1 function says that the backslash will be
needed starting in Emacs 25, which implies that 'format' is
correct and the old pcase documention was wrong to omit the backslash.
* lisp/emacs-lisp/nadvice.el (advice--make-docstring):
* lisp/help-fns.el (help-fns--signature):
* lisp/help.el (help-add-fundoc-usage):
* lisp/progmodes/elisp-mode.el (elisp-function-argstring):
Use help--make-usage-docstring rather than formatting
help-make-usage.
* lisp/emacs-lisp/pcase.el (pcase--make-docstring):
Return raw docstring.
* lisp/help-fns.el (help-fns--signature): New arg RAW, to return
raw docstring.  Take more care to distinguish raw from cooked dstrings.
(describe-function-1): Let help-fns--signature substitute
command keys.
* lisp/help.el (help--docstring-quote): New function.
(help-split-fundoc): Use it, to quote funny characters more
systematically.
(help--make-usage): Rename from help-make-usage, since this
should be private.  Leave an obsolete alias for the old name.
(help--make-usage-docstring): New function.
* test/automated/help-fns.el (help-fns-test-funny-names): New test.
2015-06-11 10:24:38 -07:00
..
ada-mode.el Fix byte-compiler warnings about looking-back. 2015-04-20 21:55:00 -04:00
ada-prj.el
ada-stmt.el
ada-xref.el Don't quote nil and t in doc strings 2015-05-21 10:06:44 -07:00
antlr-mode.el
asm-mode.el
autoconf.el
bat-mode.el
bug-reference.el
cc-align.el
cc-awk.el Quieten cc-mode compilation 2015-05-06 16:00:22 -04:00
cc-bytecomp.el
cc-cmds.el Quieten cc-mode compilation 2015-05-06 16:00:22 -04:00
cc-defs.el Don't quote nil and t in doc strings 2015-05-21 10:06:44 -07:00
cc-engine.el Don't quote nil and t in doc strings 2015-05-21 10:06:44 -07:00
cc-fonts.el Don't quote nil and t in doc strings 2015-05-21 10:06:44 -07:00
cc-guess.el Don't quote nil and t in doc strings 2015-05-21 10:06:44 -07:00
cc-langs.el Add C-language keyword constants to C++ 2015-05-25 13:51:35 -07:00
cc-menus.el
cc-mode.el Make c-submit-bug-report file reports at debbugs.gnu.org. (Bug#15784) 2015-05-26 23:29:25 -07:00
cc-styles.el
cc-vars.el
cfengine.el
cmacexp.el Fix error diagnostics of c-macro-expand 2015-05-02 12:01:04 +03:00
compile.el Update Maven compilation-mode entry to distinguish warnings 2015-05-19 00:00:09 +03:00
cperl-mode.el Fix minor quoting problems in doc strings 2015-05-28 00:22:03 -07:00
cpp.el
cwarn.el
dcl-mode.el
ebnf-abn.el
ebnf-bnf.el
ebnf-dtd.el
ebnf-ebx.el
ebnf-iso.el
ebnf-otz.el
ebnf-yac.el
ebnf2ps.el
ebrowse.el
elisp-mode.el Fix quoting of help for functions with odd names 2015-06-11 10:24:38 -07:00
etags.el Reuse rgrep mechanics in xref-find-regexp 2015-06-02 18:47:43 +03:00
executable.el * lisp/progmodes/executable.el (executable-self-display): Obsolete. 2015-06-10 16:24:32 -04:00
f90.el * lisp/progmodes/f90.el (f90-backslash-not-special): Use user-error. 2015-06-10 16:57:59 -04:00
flymake.el
fortran.el
gdb-mi.el Fix minor quoting problems in doc strings 2015-05-19 15:01:16 -07:00
glasses.el
grep.el * lisp/progmodes/grep.el (zrgrep): Let-bind grep-highlight-matches 2015-06-07 01:02:38 +03:00
gud.el Have gud-display-line not display source buffer in gud window. 2015-03-18 08:15:54 +01:00
hideif.el cl-lib.el: Partial revert of "2015-04-05 Rationalize c[ad]+r" 2015-04-10 01:50:22 -04:00
hideshow.el
icon.el
idlw-complete-structtag.el
idlw-help.el
idlw-shell.el Don't quote nil and t in doc strings 2015-05-21 10:06:44 -07:00
idlw-toolbar.el
idlwave.el Fix minor quoting problems in doc strings 2015-05-28 00:22:03 -07:00
inf-lisp.el
js.el * lisp/progmodes/js.el (js--optimize-arglist): Remove declaration. 2015-05-05 20:11:22 -07:00
ld-script.el
m4-mode.el
make-mode.el
mantemp.el
meta-mode.el
mixal-mode.el
modula2.el
octave.el
opascal.el
pascal.el
perl-mode.el
prog-mode.el
prolog.el
ps-mode.el
python.el Don't quote nil and t in doc strings 2015-05-21 10:06:44 -07:00
ruby-mode.el Don't quote nil and t in doc strings 2015-05-21 10:06:44 -07:00
scheme.el
sh-script.el * lisp/progmodes/sh-script.el: Better handle nested quotes 2015-06-09 22:10:38 -04:00
simula.el
sql.el 2015-03-14 Michael R. Mauger <michael@mauger.com> 2015-03-14 23:05:28 -04:00
subword.el
tcl.el * lisp/progmodes/tcl.el (tcl-filter): 2015-05-12 21:19:38 -04:00
vera-mode.el
verilog-mode.el Fix minor quoting problems in doc strings 2015-05-28 00:22:03 -07:00
vhdl-mode.el Use \r rather than ^M in string literals 2015-05-30 09:44:38 -07:00
which-func.el
xref.el Override 'grep --color=always' 2015-06-04 02:46:43 +03:00
xscheme.el