all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Ken Raeburn <raeburn@raeburn.org>
Cc: 22975@debbugs.gnu.org, schwab@linux-m68k.org
Subject: bug#22975: 25.0.92; CANNOT_DUMP build can't start in tty mode
Date: Mon, 14 Mar 2016 19:41:16 +0200	[thread overview]
Message-ID: <83pouxc5z7.fsf@gnu.org> (raw)
In-Reply-To: <A08855B0-3CDC-4226-A944-08F8D211B940@raeburn.org> (message from Ken Raeburn on Mon, 14 Mar 2016 03:17:07 -0400)

> From: Ken Raeburn <raeburn@raeburn.org>
> Date: Mon, 14 Mar 2016 03:17:07 -0400
> Cc: Andreas Schwab <schwab@linux-m68k.org>,
>  22975@debbugs.gnu.org
> 
> > It sounds like your terminal emulator is trying its own reordering of
> > bidi text.  Can you find some setting to disable that?
> 
> I can’t find an option to change it in the Mac terminal emulator.  I hope the attached image doesn’t make for headaches in the bug tracker….

Thanks.  It does indeed reorder on its own (and doesn't do a very good
job at that).  So this is unrelated.

> If I start a standard X.org xterm from the remote system and run emacs -nw in that window, the Hebrew line looks like it does on the X11 display; Arabic seems to be missing font support.

Right.

> > Please show a full C backtrace from each one of the calls to Fsignal,
> > so we could see what code calls these functions.
> 
> #0  Fsignal (error_symbol=error_symbol@entry=49392, data=12582931)
>     at ../../src/eval.c:1464
> #1  0x0000000000552fd9 in xsignal (error_symbol=error_symbol@entry=49392, 
>     data=<optimized out>) at ../../src/eval.c:1577
> #2  0x0000000000553007 in xsignal1 (error_symbol=49392, arg=<optimized out>)
>     at ../../src/eval.c:1592
> #3  0x0000000000552612 in Ffuncall (nargs=49392, nargs@entry=4, args=0x0)
>     at ../../src/eval.c:2746
> #4  0x0000000000554204 in call3 (fn=fn@entry=50592, arg1=arg1@entry=12481485, 
>     arg2=<optimized out>, arg3=<optimized out>) at ../../src/eval.c:2568
> #5  0x0000000000472717 in grow_mini_window (w=0xbe75b0, delta=<optimized out>, 
>     pixelwise=<optimized out>) at ../../src/window.c:4501
> #6  0x000000000044bd32 in resize_mini_window (w=w@entry=0xbe75b0, 
>     exact_p=exact_p@entry=false) at ../../src/xdisp.c:10985
> #7  0x000000000044bd8e in display_echo_area_1 (a1=12481968, a2=<optimized out>)
>     at ../../src/xdisp.c:10831
> #8  0x000000000042b8f6 in with_echo_area_buffer (w=w@entry=0xbe75b0, 
>     which=which@entry=0, fn=fn@entry=0x44bd50 <display_echo_area_1>, 
>     a1=a1@entry=12481968, a2=a2@entry=0) at ../../src/xdisp.c:10609
> #9  0x000000000044f46b in display_echo_area (w=0xbe75b0)
>     at ../../src/xdisp.c:10797
> #10 echo_area_display (update_frame_p=update_frame_p@entry=true)
>     at ../../src/xdisp.c:11298
> #11 0x000000000044f76a in message3_nolog (m=m@entry=12803636)
>     at ../../src/xdisp.c:10311
> #12 0x000000000044f8b1 in message3 (m=m@entry=12803636)
>     at ../../src/xdisp.c:10240
> #13 0x000000000054c31c in Fmessage (nargs=<optimized out>, args=<optimized out>)
>     at ../../src/editfns.c:3686

OK, this is the message call.  Please see if the patch below solves
this.

The other two errors come from the command loop, they are caused by
the fact that calling message signaled an error, and that interrupted
the rest of loadup.el loading.  So Emacs now enters the command loop
with most of its support code absent.

If the patch below solves the error in calling message, it should also
prevent these other 2 errors.

diff --git a/lisp/loadup.el b/lisp/loadup.el
index bd47bed..21c64a8 100644
--- a/lisp/loadup.el
+++ b/lisp/loadup.el
@@ -117,6 +117,10 @@
 (load "format")
 (load "bindings")
 (load "window")  ; Needed here for `replace-buffer-in-windows'.
+;; We are now capable of resizing the mini-windows, so give the
+;; variable its advertised default value (it starts as nil, see
+;; xdisp.c).
+(setq resize-mini-windows 'grow-only)
 (setq load-source-file-function 'load-with-code-conversion)
 (load "files")
 
diff --git a/src/xdisp.c b/src/xdisp.c
index ce992d4..edefe32 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -31598,7 +31598,12 @@ A value of t means resize them to fit the text displayed in them.
 A value of `grow-only', the default, means let mini-windows grow only;
 they return to their normal size when the minibuffer is closed, or the
 echo area becomes empty.  */);
-  Vresize_mini_windows = Qgrow_only;
+  /* Contrary to the doc string, we initialize this to nil, so that
+     loading loadup.el won't try to resize windows before loading
+     window.el, where some functions we need to call for this live.
+     We assign the 'grow-only' value right after loading window.el
+     during loadup.  */
+  Vresize_mini_windows = Qnil;
 
   DEFVAR_LISP ("blink-cursor-alist", Vblink_cursor_alist,
     doc: /* Alist specifying how to blink the cursor off.





  reply	other threads:[~2016-03-14 17:41 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-10  5:41 bug#22975: 25.0.92; CANNOT_DUMP build can't start in tty mode Ken Raeburn
2016-03-10  7:10 ` Eli Zaretskii
2016-03-10  7:39   ` Eli Zaretskii
2016-03-11 11:17     ` Ken Raeburn
2016-03-11 14:31       ` Eli Zaretskii
2016-03-11 19:18         ` Ken Raeburn
2016-03-11 19:47           ` Eli Zaretskii
2016-03-11 20:50             ` Kenneth Raeburn
2016-03-11 20:51             ` Andreas Schwab
2016-03-11 21:06               ` Eli Zaretskii
2016-03-12 10:01                 ` Eli Zaretskii
2016-03-13  1:21                   ` Ken Raeburn
2016-03-13 12:08                     ` martin rudalics
2016-03-13 16:46                       ` Eli Zaretskii
2016-03-13 20:09                         ` martin rudalics
2016-03-13 20:31                           ` Eli Zaretskii
2016-03-14  7:42                             ` martin rudalics
2016-03-13 16:45                     ` Eli Zaretskii
2016-03-14  7:17                       ` Ken Raeburn
2016-03-14 17:41                         ` Eli Zaretskii [this message]
2016-03-15  3:33                           ` Ken Raeburn
2016-03-15 17:48                             ` Eli Zaretskii
2016-03-15 18:29             ` Stefan Monnier
2016-03-15 18:44               ` Eli Zaretskii
2016-03-15 19:31                 ` Stefan Monnier
2016-03-15 19:48                   ` Eli Zaretskii

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=83pouxc5z7.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=22975@debbugs.gnu.org \
    --cc=raeburn@raeburn.org \
    --cc=schwab@linux-m68k.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 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.