all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dmitry Antipov <dmantipov@yandex.ru>
To: Nix <nix@esperi.org.uk>
Cc: 17898@debbugs.gnu.org
Subject: bug#17898: 24.4.50; bootstrap crash on latest Emacs trunk, r117465
Date: Wed, 02 Jul 2014 17:41:18 +0400	[thread overview]
Message-ID: <53B40BFE.9000002@yandex.ru> (raw)
In-Reply-To: <87tx6zc3w4.fsf@spindle.srvr.nix>

[-- Attachment #1: Type: text/plain, Size: 319 bytes --]

On 07/02/2014 04:59 PM, Nix wrote:

> I see this during current trunk bootstrap (with the configure options
> below, since the Emacs I'm using to report this bug was built with the
> same script):

Although I can't reproduce it, there is an obvious think I forgot to change
with r117464 :-( - please try this.

Dmitry


[-- Attachment #2: bug17898.patch --]
[-- Type: text/x-patch, Size: 909 bytes --]

=== modified file 'src/print.c'
--- src/print.c	2014-07-02 03:26:19 +0000
+++ src/print.c	2014-07-02 13:38:07 +0000
@@ -1981,16 +1981,24 @@
 
 	  PRINTCHAR ('[');
 	  {
-	    register int i;
+	    int i, idx = SUB_CHAR_TABLE_P (obj) ? SUB_CHAR_TABLE_OFFSET : 0;
 	    register Lisp_Object tem;
 	    ptrdiff_t real_size = size;
 
+	    /* For a sub char-table, print heading non-Lisp data first.  */
+	    if (SUB_CHAR_TABLE_P (obj))
+	      {
+		i = sprintf (buf, "%d %d", XSUB_CHAR_TABLE (obj)->depth,
+			     XSUB_CHAR_TABLE (obj)->min_char);
+		strout (buf, i, i, printcharfun);
+	      }
+
 	    /* Don't print more elements than the specified maximum.  */
 	    if (NATNUMP (Vprint_length)
 		&& XFASTINT (Vprint_length) < size)
 	      size = XFASTINT (Vprint_length);
 
-	    for (i = 0; i < size; i++)
+	    for (i = idx; i < size; i++)
 	      {
 		if (i) PRINTCHAR (' ');
 		tem = AREF (obj, i);


  reply	other threads:[~2014-07-02 13:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-02 12:59 bug#17898: 24.4.50; bootstrap crash on latest Emacs trunk, r117465 Nix
2014-07-02 13:41 ` Dmitry Antipov [this message]
2014-07-02 13:56   ` Nix

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

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

  git send-email \
    --in-reply-to=53B40BFE.9000002@yandex.ru \
    --to=dmantipov@yandex.ru \
    --cc=17898@debbugs.gnu.org \
    --cc=nix@esperi.org.uk \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.