unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Juanma Barranquero" <lekktu@gmail.com>
To: "Glenn Morris" <rgm@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: 23.0.50;(set-language-environment 'Chinese-GB) error
Date: Sat, 20 Oct 2007 02:42:48 +0200	[thread overview]
Message-ID: <f7ccd24b0710191742g3d2e2859i457ed569d685295f@mail.gmail.com> (raw)
In-Reply-To: <f7ccd24b0710191459n20d81883la1fa4c1a12224973@mail.gmail.com>

On 10/19/07, Juanma Barranquero <lekktu@gmail.com> wrote:

> Surely the fact that RMS just fixed it must be significant :)

I spoke too soon :(

I still see the bug with my previous test case.

Richard's fix is inside the "else if (CONSP (fun))" part of the
conditional in Fdocumentation, but in my examples is the "else if
(COMPILEDP (fun))" branch the one taken.

Perhaps the intent was to put the new code outside the conditional, as
in the patch below? That seems to work for me.

             Juanma


Index: src/doc.c
===================================================================
RCS file: /sources/emacs/emacs/src/doc.c,v
retrieving revision 1.126
diff -u -2 -r1.126 doc.c
--- src/doc.c	19 Oct 2007 17:23:31 -0000	1.126
+++ src/doc.c	20 Oct 2007 00:38:27 -0000
@@ -435,16 +435,4 @@
 	  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))
@@ -459,4 +447,16 @@
     }

+  /* 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);
+    }
+
   /* If DOC is 0, it's typically because of a dumped file missing
      from the DOC file (bug in src/Makefile.in).  */

  reply	other threads:[~2007-10-20  0:42 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-15  8:39 23.0.50;(set-language-environment 'Chinese-GB) error Jie Yu
2007-10-15 13:09 ` Kenichi Handa
2007-10-15 13:46   ` Juanma Barranquero
2007-10-15 14:39     ` Stefan Monnier
2007-10-15 20:35       ` Juanma Barranquero
2007-10-15 20:43         ` Juanma Barranquero
2007-10-16  5:06           ` Kenichi Handa
     [not found]             ` <E1Ii13R-0002Dm-VP@fencepost.gnu.org>
2007-10-17 11:22               ` Kenichi Handa
2007-10-17 14:13                 ` Stefan Monnier
2007-10-18  0:44                   ` Kenichi Handa
2007-10-18  5:03                   ` Richard Stallman
2007-10-17 20:49                 ` Richard Stallman
2007-10-18  0:51                   ` Kenichi Handa
2007-10-18  4:17                     ` Stefan Monnier
2007-10-16  4:11     ` Richard Stallman
2007-10-17  9:35       ` Juanma Barranquero
2007-10-18 20:08         ` Richard Stallman
2007-10-19  7:47           ` Juanma Barranquero
2007-10-19 20:57             ` Glenn Morris
2007-10-19 21:59               ` Juanma Barranquero
2007-10-20  0:42                 ` Juanma Barranquero [this message]
2007-10-20 14:57                   ` Richard Stallman
2007-10-20  3:29             ` Richard Stallman
  -- strict thread matches above, loose matches on Subject: below --
2007-10-12  3:10 23.0.50; (set-language-environment " Jie Yu

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f7ccd24b0710191742g3d2e2859i457ed569d685295f@mail.gmail.com \
    --to=lekktu@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=rgm@gnu.org \
    /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 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).