aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefan Monnier2014-03-20 12:00:17 -0400
committerStefan Monnier2014-03-20 12:00:17 -0400
commit049fac7c941e4b7afad0471c209dc15193460282 (patch)
treec19fe03babc072525b5eddd0d137560c72c2d1f1 /src
parentcaecb91c581d4ec0fc008a35005d8009f43087ee (diff)
downloademacs-049fac7c941e4b7afad0471c209dc15193460282.tar.gz
emacs-049fac7c941e4b7afad0471c209dc15193460282.zip
* lisp/emacs-lisp/nadvice.el (advice--make-docstring): Try harder to find
the docstring of functions advised before dumping. * src/doc.c (store_function_docstring): Warn when we don't know where to put a docstring. (Fsubstitute_command_keys): Don't advertise the fact that text-properties are dropped, since we think it's a bug that we'll fix in 24.5. Fixes: debbugs:16993
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog6
-rw-r--r--src/doc.c5
2 files changed, 10 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 93d1ba247b1..f67923bf417 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,11 @@
12014-03-20 Stefan Monnier <monnier@iro.umontreal.ca> 12014-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
2 2
3 * doc.c (store_function_docstring): Warn when we don't know where to
4 put a docstring.
5 (Fsubstitute_command_keys): Don't advertise the fact that
6 text-properties are dropped, since we think it's a bug that we'll fix
7 in 24.5.
8
3 * frame.h (SET_FRAME_VISIBLE): Keep frame_garbaged up to date. 9 * frame.h (SET_FRAME_VISIBLE): Keep frame_garbaged up to date.
4 * xterm.c (handle_one_xevent) <MapNotify>: Don't garbage the frame. 10 * xterm.c (handle_one_xevent) <MapNotify>: Don't garbage the frame.
5 * frame.c (frame_garbaged): Make "docstring" more precise. 11 * frame.c (frame_garbaged): Make "docstring" more precise.
diff --git a/src/doc.c b/src/doc.c
index a42874f4503..7e693165c6f 100644
--- a/src/doc.c
+++ b/src/doc.c
@@ -535,6 +535,9 @@ store_function_docstring (Lisp_Object obj, ptrdiff_t offset)
535 docstring, since we've found a docstring for it. */ 535 docstring, since we've found a docstring for it. */
536 if ((ASIZE (fun) & PSEUDOVECTOR_SIZE_MASK) > COMPILED_DOC_STRING) 536 if ((ASIZE (fun) & PSEUDOVECTOR_SIZE_MASK) > COMPILED_DOC_STRING)
537 ASET (fun, COMPILED_DOC_STRING, make_number (offset)); 537 ASET (fun, COMPILED_DOC_STRING, make_number (offset));
538 else
539 message ("No docstring slot for %s",
540 SYMBOLP (obj) ? SDATA (SYMBOL_NAME (obj)) : "<anonymous>");
538 } 541 }
539} 542}
540 543
@@ -707,7 +710,7 @@ as the keymap for future \\=\\[COMMAND] substrings.
707thus, \\=\\=\\=\\= puts \\=\\= into the output, and \\=\\=\\=\\[ puts \\=\\[ into the output. 710thus, \\=\\=\\=\\= puts \\=\\= into the output, and \\=\\=\\=\\[ puts \\=\\[ into the output.
708 711
709Return the original STRING if no substitutions are made. 712Return the original STRING if no substitutions are made.
710Otherwise, return a new string, without any text properties. */) 713Otherwise, return a new string. */)
711 (Lisp_Object string) 714 (Lisp_Object string)
712{ 715{
713 char *buf; 716 char *buf;