unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: David Kastrup <dak@gnu.org>, emacs-devel@gnu.org
Subject: Re: Several problems
Date: Mon, 28 Jul 2014 14:32:24 +0200	[thread overview]
Message-ID: <53D642D8.4050502@gmx.at> (raw)
In-Reply-To: <87d2cpbua7.fsf@fencepost.gnu.org>

 > the horizontal scroll bar code crashing on me
 > whenever I restore the desktop (which involves restoring the window
 > configuration).
 >
 > _That_ crash would have been
 >
 > (gdb) bt
 > #0  0xb7fdd424 in __kernel_vsyscall ()
 > #1  0xb69460c6 in raise (sig=sig@entry=6)
 >      at ../nptl/sysdeps/unix/sysv/linux/pt-raise.c:37
 > #2  0x08124299 in terminate_due_to_signal (sig=sig@entry=6,
 >      backtrace_limit=backtrace_limit@entry=40) at ../../emacs/src/emacs.c:387
 > #3  0x0813cef7 in emacs_abort () at ../../emacs/src/sysdep.c:2198
 > #4  0x080f3e38 in XTredeem_scroll_bar (w=0x8752f30)
 >      at ../../emacs/src/xterm.c:5948
 > #5  0x0809dd4a in redisplay_window (window=window@entry=141897525,
 >      just_this_one_p=just_this_one_p@entry=false)
 >      at ../../emacs/src/xdisp.c:16839
 > #6  0x080a16be in redisplay_window_0 (window=141897525)
 >      at ../../emacs/src/xdisp.c:14250
[...]
 >
 > My Emacs is configured to use GTK but --without-toolkit-scroll-bars.
 > For now I've rewound my Emacs version to before the horizontal
 > scroll-bar commit since I would not be able to get any work done
 > otherwise.

As a first attempt could you please try the patch below?


=== modified file 'src/window.h'
--- src/window.h	2014-07-27 13:21:30 +0000
+++ src/window.h	2014-07-28 12:19:52 +0000
@@ -787,7 +787,7 @@

  /* Say whether horizontal scroll bars are currently enabled for window
     W.  Horizontal scrollbars exist for toolkit versions only.  */
-#if defined (USE_X_TOOLKIT) || defined (USE_GTK) || defined (HAVE_NTGUI)
+#if defined (USE_X_TOOLKIT) || (defined (USE_GTK) && defined (USE_TOOLKIT_SCROLL_BARS)) || defined (HAVE_NTGUI)
  #define WINDOW_HAS_HORIZONTAL_SCROLL_BAR(W)			\
    ((WINDOW_PSEUDO_P (W) || MINI_NON_ONLY_WINDOW_P (W))		\
     ? false							\


I'm afraid that desktop still won't work satisfactorily due to other
issues but maybe the crash gets fixed this way.

Thanks, martin



  parent reply	other threads:[~2014-07-28 12:32 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-28 11:24 Several problems David Kastrup
2014-07-28 12:09 ` Dmitry Antipov
2014-07-28 12:32 ` martin rudalics [this message]
2014-08-01  9:43   ` Nicolas Avrutin
2014-08-01 10:30     ` martin rudalics
2014-08-01 13:06     ` martin rudalics
2014-08-02  4:10       ` Nicolas Avrutin
2014-08-02  6:57         ` Eli Zaretskii
2014-08-02  7:28           ` Nicolas Avrutin
2014-08-02  7:39             ` Eli Zaretskii
2014-08-02  8:06           ` martin rudalics
2014-08-04 17:22       ` martin rudalics
2014-08-04 21:54         ` Nicolas Avrutin
2014-08-05  8:36           ` martin rudalics
2014-08-05 19:08             ` Faried Nawaz
2014-08-06  9:41               ` martin rudalics
  -- strict thread matches above, loose matches on Subject: below --
2014-07-30 20:02 Ted Zlatanov
2014-07-30 20:10 ` Ted Zlatanov
2014-07-31  4:22 ` Dmitry Antipov

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=53D642D8.4050502@gmx.at \
    --to=rudalics@gmx.at \
    --cc=dak@gnu.org \
    --cc=emacs-devel@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).