From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: Several problems Date: Mon, 28 Jul 2014 14:32:24 +0200 Message-ID: <53D642D8.4050502@gmx.at> References: <87d2cpbua7.fsf@fencepost.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1406550784 31238 80.91.229.3 (28 Jul 2014 12:33:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Jul 2014 12:33:04 +0000 (UTC) To: David Kastrup , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 28 14:32:57 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XBk6l-0005kq-VZ for ged-emacs-devel@m.gmane.org; Mon, 28 Jul 2014 14:32:52 +0200 Original-Received: from localhost ([::1]:39523 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XBk6l-0001Zb-Ig for ged-emacs-devel@m.gmane.org; Mon, 28 Jul 2014 08:32:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49443) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XBk6Z-0001ZG-Sp for emacs-devel@gnu.org; Mon, 28 Jul 2014 08:32:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XBk6R-0006kC-FF for emacs-devel@gnu.org; Mon, 28 Jul 2014 08:32:39 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:64895) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XBk6R-0006k3-5E; Mon, 28 Jul 2014 08:32:31 -0400 Original-Received: from [178.191.141.243] ([178.191.141.243]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0Ls8Qd-1WUgVO05mx-013sL8; Mon, 28 Jul 2014 14:32:29 +0200 In-Reply-To: <87d2cpbua7.fsf@fencepost.gnu.org> X-Provags-ID: V03:K0:2VlEv7yxFbQTLEtD1AdK3RUhMjwFjQYin5ygmgT2/azSXmM1uX4 5ogmhDgKmWXJZ02DoPCCeMiIxZ/INS4uW7gL1q3CIyOmdIIxmWUvCNcjOd6A51Wi9FuE4Qa M0QzccbRNUuEXuKsah8umFGWnZB49g0wGr7BYaXU/R+dQVZJ5KArhDyMYfOvXKRyg1cukSF 4RzC4SOTRwOdoOsgLrV4A== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.17.20 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:173209 Archived-At: > 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