From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Emacs-24.5-1-universal.dmg for macosx dumps on first keystroke Date: Mon, 29 Aug 2016 09:19:14 -0400 Message-ID: References: <20160825223858.GA51405@breton.holly.idiocy.org> <20160826182149.GA51596@breton.holly.idiocy.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1472551500 24329 195.159.176.226 (30 Aug 2016 10:05:00 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 30 Aug 2016 10:05:00 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 30 12:04:56 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1befuZ-0005m9-AB for ged-emacs-devel@m.gmane.org; Tue, 30 Aug 2016 12:04:55 +0200 Original-Received: from localhost ([::1]:48089 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1befua-00044t-7n for ged-emacs-devel@m.gmane.org; Tue, 30 Aug 2016 06:04:56 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41243) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1befsa-0002Bk-Ev for emacs-devel@gnu.org; Tue, 30 Aug 2016 06:02:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1befsU-0005wP-F4 for emacs-devel@gnu.org; Tue, 30 Aug 2016 06:02:51 -0400 Original-Received: from [195.159.176.226] (port=43449 helo=blaine.gmane.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1befsU-0005wI-7q for emacs-devel@gnu.org; Tue, 30 Aug 2016 06:02:46 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1beMTu-00047W-0e for emacs-devel@gnu.org; Mon, 29 Aug 2016 15:20:06 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 14 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:CfAoxVbrnDNFS4a/Zptsj/kBd6A= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:206924 Archived-At: > 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? Usually we use things like CHECK_SYMBOL (foo), but depending on the code signaling an error might not be a good option, in which case a SYMBOLP check is indeed the better way. When set via Custom the user should not be able to set the var to a string. Stefan