unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Nicolas Avrutin <nicolasavru@gmail.com>
To: martin rudalics <rudalics@gmx.at>
Cc: David Kastrup <dak@gnu.org>, Faried Nawaz <faried@gmail.com>,
	emacs-devel@gnu.org
Subject: Re: Several problems
Date: Sat, 02 Aug 2014 00:10:08 -0400	[thread overview]
Message-ID: <87vbqbldz7.fsf@gateway.local.navru.net> (raw)
In-Reply-To: <53DB90EB.9030808@gmx.at>

Your patch fails to compile for me:
frame.c: In function ‘make_initial_frame’:
frame.c:863:40: error: lvalue required as left operand of assignment
   FRAME_HAS_HORIZONTAL_SCROLL_BARS (f) = false;
                                        ^
frame.c: In function ‘make_terminal_frame’:
frame.c:916:40: error: lvalue required as left operand of assignment
   FRAME_HAS_HORIZONTAL_SCROLL_BARS (f) = false;
                                        ^


With your patch, FRAME_HAS_HORIZONTAL_SCROLL_BARS(f) is defined to be
false (the else branch, frame.h:858), resulting in the lines in frame.c
macro expanding to false = false;. As a workaround, I attempted the
following:
diff --git a/src/frame.c b/src/frame.c
index 457024f..ea96fce 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -860,7 +860,11 @@ make_initial_frame (void)
 
 #ifdef HAVE_WINDOW_SYSTEM
   f->vertical_scroll_bar_type = vertical_scroll_bar_none;
+  #if defined (USE_X_TOOLKIT)                                          \
+  || (defined (USE_GTK) && defined (USE_TOOLKIT_SCROLL_BARS))          \
+  || defined (HAVE_NTGUI)
   FRAME_HAS_HORIZONTAL_SCROLL_BARS (f) = false;
+  #endif
 #endif
 
   /* The default value of menu-bar-mode is t.  */
@@ -913,7 +917,11 @@ make_terminal_frame (struct terminal *terminal)
 
 #ifdef HAVE_WINDOW_SYSTEM
   f->vertical_scroll_bar_type = vertical_scroll_bar_none;
+  #if defined (USE_X_TOOLKIT)                                          \
+  || (defined (USE_GTK) && defined (USE_TOOLKIT_SCROLL_BARS))          \
+  || defined (HAVE_NTGUI)
   FRAME_HAS_HORIZONTAL_SCROLL_BARS (f) = false;
+  #endif
 #endif


This allows it to successfully compile, but the crash still occurs.

Thanks
-- 
Nicolas Avrutin



  reply	other threads:[~2014-08-02  4:10 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
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 [this message]
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=87vbqbldz7.fsf@gateway.local.navru.net \
    --to=nicolasavru@gmail.com \
    --cc=dak@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=faried@gmail.com \
    --cc=rudalics@gmx.at \
    /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).