emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/src/doc.c,v


From: Richard M. Stallman
Subject: [Emacs-diffs] Changes to emacs/src/doc.c,v
Date: Fri, 19 Oct 2007 17:23:31 +0000

CVSROOT:        /cvsroot/emacs
Module name:    emacs
Changes by:     Richard M. Stallman <rms>       07/10/19 17:23:31

Index: doc.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/doc.c,v
retrieving revision 1.125
retrieving revision 1.126
diff -u -b -r1.125 -r1.126
--- doc.c       16 Oct 2007 03:28:43 -0000      1.125
+++ doc.c       19 Oct 2007 17:23:31 -0000      1.126
@@ -434,6 +434,18 @@
            doc = tem;
          else
            return Qnil;
+
+         /* Check for an advised function.  Its doc string
+            has an `ad-advice-info' text property.  */
+         if (STRINGP (doc))
+           {
+             Lisp_Object innerfunc;
+             innerfunc = Fget_text_property (make_number (0),
+                                             intern ("ad-advice-info"),
+                                             doc);
+             if (! NILP (innerfunc))
+               doc = call1 (intern ("ad-make-advised-docstring"), innerfunc);
+           }
        }
       else if (EQ (funcar, Qmacro))
        return Fdocumentation (Fcdr (fun), raw);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]