all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ken Raeburn <raeburn@raeburn.org>
To: Christian Lynbech <christian@defun.dk>,
	John Wiegley <jwiegley@gmail.com>
Cc: Emacs development discussions <emacs-devel@gnu.org>
Subject: Re: Issue in src/xfns.c
Date: Wed, 15 Jun 2016 00:16:33 -0400	[thread overview]
Message-ID: <D888ACC2-1812-408F-ADBE-3307E9891485@raeburn.org> (raw)
In-Reply-To: <m2eg7z3ayi.fsf@defun.dk>


> On Jun 14, 2016, at 14:02, Christian Lynbech <christian@defun.dk> wrote:
> 
> 
> I am not entirely sure what the intention was, but I think there is a
> small issue in xfns.c in relation to the RANDR13_LIBRARY macro.
> 
> It is used in two places, one where it uses #if and another that uses
> #ifdef, the latter of which I think should have been a #if. At least it
> failed to compile for me on a rather old linux system with a setup I
> know onbly a little about. The define that introduces RANDR13_LIBRARY is
> a boolean expression so RANDR13_LIBRARY is always defined.
> 
> As far as I can see this is still present in the git repository on the
> master branch. An attempt of a patch is given below.

Yes, this is a silly bug in my patch from March, present in both master and emacs-25. Unfortunately the user’s environment that I made the patch for had older xrandr support in the server but newer libraries (on different machines, if I recall correctly), so it slipped through testing. :-(

Christian’s patch is straightforward and looks correct to me. It should take a system with an older (pre-1.3) xrandr library to cause compilation to fail, and I don’t have such a system to test on.

John, you’re steering the ship again now, right? (I hope you had a great vacation!) Most modern X installations shouldn’t be affected by this, but as Christian shows, there’ll probably be a few outdated ones that’ll be affected. Okay to commit this fix for emacs-25?

Ken


  reply	other threads:[~2016-06-15  4:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-14 18:02 Issue in src/xfns.c Christian Lynbech
2016-06-15  4:16 ` Ken Raeburn [this message]
2016-06-15  4:56   ` John Wiegley
2016-06-15  5:41     ` Paul Eggert

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=D888ACC2-1812-408F-ADBE-3307E9891485@raeburn.org \
    --to=raeburn@raeburn.org \
    --cc=christian@defun.dk \
    --cc=emacs-devel@gnu.org \
    --cc=jwiegley@gmail.com \
    /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.