From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#7840: SYMBOL_VALUE in terminal.c (was 23.2.91; default-terminal-coding-system not inherited by created terminals) Date: Fri, 18 Feb 2011 16:35:18 -0500 Message-ID: References: <87wrl423dm.fsf@stupidchicken.com> <83lj1dv1jy.fsf@gnu.org> <83fwrlutf4.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1298065014 29502 80.91.229.12 (18 Feb 2011 21:36:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 18 Feb 2011 21:36:54 +0000 (UTC) Cc: cyd@stupidchicken.com, 7840@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 18 22:36:49 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PqY0O-0003D6-DB for geb-bug-gnu-emacs@m.gmane.org; Fri, 18 Feb 2011 22:36:48 +0100 Original-Received: from localhost ([127.0.0.1]:49424 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PqY0N-00082k-RX for geb-bug-gnu-emacs@m.gmane.org; Fri, 18 Feb 2011 16:36:47 -0500 Original-Received: from [140.186.70.92] (port=37676 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PqY0H-00081y-7e for bug-gnu-emacs@gnu.org; Fri, 18 Feb 2011 16:36:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PqY0F-0005Fk-W1 for bug-gnu-emacs@gnu.org; Fri, 18 Feb 2011 16:36:41 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54922) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PqY0F-0005FZ-Ue for bug-gnu-emacs@gnu.org; Fri, 18 Feb 2011 16:36:39 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PqXze-0006S0-2v; Fri, 18 Feb 2011 16:36:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 18 Feb 2011 21:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7840 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7840-submit@debbugs.gnu.org id=B7840.129806492724756 (code B ref 7840); Fri, 18 Feb 2011 21:36:02 +0000 Original-Received: (at 7840) by debbugs.gnu.org; 18 Feb 2011 21:35:27 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PqXz4-0006RF-Qj for submit@debbugs.gnu.org; Fri, 18 Feb 2011 16:35:27 -0500 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PqXz3-0006R1-DB for 7840@debbugs.gnu.org; Fri, 18 Feb 2011 16:35:25 -0500 Original-Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id p1ILZIHV011569; Fri, 18 Feb 2011 16:35:18 -0500 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 257E9B411A; Fri, 18 Feb 2011 16:35:18 -0500 (EST) In-Reply-To: <83fwrlutf4.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 18 Feb 2011 19:46:55 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3735=0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 18 Feb 2011 16:36:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:44246 Archived-At: > I also don't understand the "internal function" argument: it sounds > TRT to have a function that just fetches a symbol's value, without > signaling an error if it is unbound. Fsymbol_value, as it is now, is > clearly coded for interactive use, which this isn't. You mean "Lisp use" rather than "interactive", right? > In any case, if you want people to avoid these APIs, please explain > more why you dislike them, because so far it is utterly unclear, at > least to me. Basically Emacs variables provide get/set/letbind/unbind/boundp/make-local/makunbound and everything else is internal. Any code which is not directly related to implementing that functionality should go through those entry points, IMO. find_symbol_value is the least harmful of the internal functions, indeed, but it still requires extra care from the caller since it can return Qunbound which is a value which should never escape to Lisp code. Stefan