unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Alan Third <alan@idiocy.org>
Cc: randy@psg.com, emacs-devel@gnu.org
Subject: Re: Emacs-24.5-1-universal.dmg for macosx dumps on first keystroke
Date: Mon, 29 Aug 2016 17:32:20 +0300	[thread overview]
Message-ID: <83poorbq8b.fsf@gnu.org> (raw)
In-Reply-To: <CABGBtwnwZx0nSopXWd5Vkz_+FiP+T7sPcmqVggNfL+x4F6akXw@mail.gmail.com> (message from Alan Third on Mon, 29 Aug 2016 10:28:38 +0100)

> From: Alan Third <alan@idiocy.org>
> Date: Mon, 29 Aug 2016 10:28:38 +0100
> Cc: Emacs-Devel devel <emacs-devel@gnu.org>
> 
> On 26 August 2016 at 19:21, Alan Third <alan@idiocy.org> wrote:
> > As a quick fix for you, Randy, instead of using "alt", use 'alt. That
> > works as you’d expect. I still need to work out why this crashes,
> > though. Presumably something somewhere is looking for a symbol and
> > really doesn’t like getting a string instead.
> 
> I've had a look about and am currently none the wiser. Is there a standard
> way of handling this sort of thing in C code? Is it just a case of putting
> some sort of SYMBOLP check in before the variable is used or should we
> be able to handle a string instead of a symbol?

This is not NS specific.  The following recipe will crash Emacs on any
platform:

  (let ((where-is-preferred-modifier "alt"))
    (where-is 'goto-char))

I think I've fixed this on the master branch, by outright rejecting
non-symbol values of modifiers in parse_solitary_modifier.  I don't
think supporting strings there is required, as this clearly is a
cockpit error.

Thanks.



  parent reply	other threads:[~2016-08-29 14:32 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-25  9:04 Emacs-24.5-1-universal.dmg for macosx dumps on first keystroke Randy Bush
2016-08-25 15:08 ` Alan Third
2016-08-25 19:10   ` Randy Bush
2016-08-25 22:38     ` Alan Third
2016-08-26  0:32       ` Randy Bush
2016-08-26  3:11       ` Randy Bush
2016-08-26 18:21         ` Alan Third
2016-08-26 19:26           ` Robert Weiner
2016-08-29  9:28           ` Alan Third
2016-08-29  9:31             ` Randy Bush
2016-08-29  9:37             ` Anders Lindgren
2016-08-29 13:19             ` Stefan Monnier
2016-08-29 14:32             ` Eli Zaretskii [this message]
2016-08-29 18:37               ` Alan Third
  -- strict thread matches above, loose matches on Subject: below --
2016-08-25 10:04 Randy Bush

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=83poorbq8b.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=alan@idiocy.org \
    --cc=emacs-devel@gnu.org \
    --cc=randy@psg.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 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).