From mboxrd@z Thu Jan 1 00:00:00 1970 Path: quimby.gnus.org!not-for-mail From: Tak Ota Newsgroups: gmane.emacs.devel Subject: Re: lost argument and doc string Date: Wed, 13 Feb 2002 12:22:41 -0800 (PST) Organization: Sony Electronics Inc. Message-ID: <20020213.122241.01370041.Takaaki.Ota@am.sony.com> References: <20020212.114825.01368903.Takaaki.Ota@am.sony.com> NNTP-Posting-Host: quimby2.netfonds.no Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: quimby2.netfonds.no 1013632537 25551 195.204.10.66 (13 Feb 2002 20:35:37 GMT) X-Complaints-To: usenet@quimby2.netfonds.no NNTP-Posting-Date: 13 Feb 2002 20:35:37 GMT Cc: eliz@is.elta.co.il, lektu@terra.es, emacs-devel@gnu.org, andrewi@gnu.org Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby2.netfonds.no with esmtp (Exim 3.12 #1 (Debian)) id 16b67s-0006e1-00 for ; Wed, 13 Feb 2002 21:35:37 +0100 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian)) id 16b5wr-0002Vo-00; Wed, 13 Feb 2002 15:24:13 -0500 Original-Received: from mail6.fw-bc.sony.com ([160.33.98.73]) by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian)) id 16b5vX-0002RE-00; Wed, 13 Feb 2002 15:22:51 -0500 Original-Received: from mail1.bc.in.sel.sony.com (mail1.bc.in.sel.sony.com [43.144.65.11]) by mail6.fw-bc.sony.com (8.8.8/8.8.8) with ESMTP id UAA23049; Wed, 13 Feb 2002 20:15:42 GMT Original-Received: by mail1.bc.in.sel.sony.com id UAA29031; Wed, 13 Feb 2002 20:22:42 GMT Original-To: jasonr@gnu.org In-Reply-To: X-Telephone: +1-858-942-3239 X-Fax------: +1-858-942-9142 X-SnailMail: 16450 West Bernardo Drive MZ7205, San Diego, CA 92127-1804 X-Mailer: Mew version 3.0.53 on Emacs 21.2.50.1 / Mule 5.0 (SAKAKI) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: quimby.gnus.org gmane.emacs.devel:1088 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:1088 13 Feb 2002 19:50:17 +0000: Jason Rumney wrote: > Tak Ota writes: > > > --- lib-src/make-docfile.c Tue Feb 12 11:28:01 2002 > > *************** > > *** 911,925 **** > > else > > while (c != ')') > > c = getc (infile); > > - skip_white (infile); > > > > ! /* If the next three characters aren't `dquote bslash newline' > > ! then we're not reading a docstring. > > ! */ > > ! if ((c = getc (infile)) != '"' > > ! || (c = getc (infile)) != '\\' > > ! || ((c = getc (infile)) != '\n' && c != '\r')) > > ! { > > #ifdef DEBUG > > fprintf (stderr, "## non-docstring in %s (%s)\n", > > buffer, filename); > > --- 911,920 ---- > > else > > while (c != ')') > > c = getc (infile); > > > > ! skip_white (infile); > > ! if ((c = getc (infile)) != '\"') > > ! { > > #ifdef DEBUG > > fprintf (stderr, "## non-docstring in %s (%s)\n", > > buffer, filename); > > > Be careful that the following does the right thing: > > (defvar string-variable "String value" "\ > This is the documentation for a string variable.") > > > That seems like the only logical reason for the current convention. But my point is that they are all eventually processed by `read_c_string_or_comment' later, which takes care of backslash continuation no matter it is the very first thing in the string or in the middle of it. The old code is simply enforcing doc string to begin with the line continuation. Anything else is rejected. -Tak _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://mail.gnu.org/mailman/listinfo/emacs-devel