From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: remove-hook creates a symbol if it doesn't exist Date: Tue, 21 Oct 2008 19:54:25 -0700 Message-ID: <002101c933f1$7e6a7250$0200a8c0@us.oracle.com> References: <87ej29ls7h.fsf@patagonia.sebmags.homelinux.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1224644079 23825 80.91.229.12 (22 Oct 2008 02:54:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 22 Oct 2008 02:54:39 +0000 (UTC) To: "'Kevin Rodgers'" , Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 22 04:55:40 2008 connect(): Connection refused Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KsTso-00042Q-1n for ged-emacs-devel@m.gmane.org; Wed, 22 Oct 2008 04:55:38 +0200 Original-Received: from localhost ([127.0.0.1]:50244 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KsTri-0000yO-Ie for ged-emacs-devel@m.gmane.org; Tue, 21 Oct 2008 22:54:30 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KsTrd-0000xh-1I for emacs-devel@gnu.org; Tue, 21 Oct 2008 22:54:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KsTrZ-0000xJ-LJ for emacs-devel@gnu.org; Tue, 21 Oct 2008 22:54:23 -0400 Original-Received: from [199.232.76.173] (port=45160 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KsTrZ-0000xG-93 for emacs-devel@gnu.org; Tue, 21 Oct 2008 22:54:21 -0400 Original-Received: from agminet01.oracle.com ([141.146.126.228]:54917) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KsTrY-0005Bo-RN for emacs-devel@gnu.org; Tue, 21 Oct 2008 22:54:21 -0400 Original-Received: from rgmgw1.us.oracle.com (rgmgw1.us.oracle.com [138.1.186.110]) by agminet01.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id m9M2sGgT025627; Tue, 21 Oct 2008 21:54:17 -0500 Original-Received: from acsmt704.oracle.com (acsmt704.oracle.com [141.146.40.82]) by rgmgw1.us.oracle.com (Switch-3.2.4/Switch-3.2.4) with ESMTP id m9M2sGsc023857; Tue, 21 Oct 2008 20:54:16 -0600 Original-Received: from dradamslap1 (/24.23.165.218) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 22 Oct 2008 02:54:15 +0000 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: Ackz8P+Wl3t9fzvwR3eL4kWVfJn2cQAAD8ow X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:104811 Archived-At: > > The function remove-hook creates a symbol if its HOOK arg > > doesn't exist as such: > > > > (remove-hook 'non-existent-hook 'some-function) > > > > ,-----[ C-h v non-existent-hook RET ] > > | non-existent-hook's value is nil > > | > > | Documentation: > > | Not documented as a variable. > > | > > | [back] > > `----- > > Actually, the read function interned the symbol. `read', on its own, doesn't assign a value. It interns a name, creating a symbol, but it doesn't give it a nil value.