From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Helmut Eller Newsgroups: gmane.emacs.devel Subject: Re: Namespace macros Date: Mon, 08 Dec 2014 08:55:50 +0100 Message-ID: References: <877fy77zhp.fsf@web.de> <87k326d4ww.fsf@gmail.com> <877fy6rp2o.fsf@web.de> <548230FB.40307@dancol.org> <5482C872.5010304@dancol.org> <5483C537.3010707@dancol.org> <54840719.5080209@dancol.org> <87a92zmnv4.fsf@lifelogs.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1418026277 8327 80.91.229.3 (8 Dec 2014 08:11:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 8 Dec 2014 08:11:17 +0000 (UTC) Cc: emacs-devel To: Artur Malabarba Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 08 09:11:10 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XxtPR-0004yN-OF for ged-emacs-devel@m.gmane.org; Mon, 08 Dec 2014 09:11:09 +0100 Original-Received: from localhost ([::1]:60611 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XxtPQ-0000qW-E1 for ged-emacs-devel@m.gmane.org; Mon, 08 Dec 2014 03:11:08 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41172) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XxtAp-0000jx-Ij for emacs-devel@gnu.org; Mon, 08 Dec 2014 02:56:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XxtAg-0001n6-GY for emacs-devel@gnu.org; Mon, 08 Dec 2014 02:56:03 -0500 Original-Received: from mail-wg0-x232.google.com ([2a00:1450:400c:c00::232]:43670) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XxtAg-0001mu-3U for emacs-devel@gnu.org; Mon, 08 Dec 2014 02:55:54 -0500 Original-Received: by mail-wg0-f50.google.com with SMTP id k14so5475535wgh.23 for ; Sun, 07 Dec 2014 23:55:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=Y0fvWXcCyaGw2imw6Wfi1+rqEyxjQaTj/UOCgE7U114=; b=LrJy9fDpykjAk32VcFUIEsSarBNVITs7890hLoBpJQh7UmGGCCRAlK57lKZr7K0Xx8 b1/QvRQ9dxnc+jZyJXDvbxBzIOUUuHrMgfVOGY/mFyOnFEot25+rXgfBukW6p9bLZv+e 9VYpK3X9q+LJvQjFCfeu/GfnTct/rb2rz+9ufInKGT0UxCmPw4ThMTgvzV0BPnd2Z64Z fkzrsy2vO+6QSwR9xLd0BQ1RTIW7eRaBsntTFy5fl+4RiWhFeaRmv/tr9/vG99P7M2AQ xqCKF8EgtyqT291gA/i+wqxtEOljffF7ertGjVY2Dtc2fOQKgkL8WmgM3aGRLZ+zcNLT X25w== X-Received: by 10.180.72.199 with SMTP id f7mr22368805wiv.53.1418025353363; Sun, 07 Dec 2014 23:55:53 -0800 (PST) Original-Received: from ix ([212.46.172.140]) by mx.google.com with ESMTPSA id ly9sm19999814wjb.24.2014.12.07.23.55.52 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 07 Dec 2014 23:55:52 -0800 (PST) Original-Received: from helmut by ix with local (Exim 4.80) (envelope-from ) id 1XxtAc-0000ug-Mj; Mon, 08 Dec 2014 08:55:50 +0100 In-Reply-To: (Artur Malabarba's message of "Mon, 8 Dec 2014 00:11:01 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c00::232 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:179362 Archived-At: On Mon, Dec 08 2014, Artur Malabarba wrote: > Names.el partially solves that by namespacing sharp-quoted symbols as > function names (you have to use the sharp-quote on function names for this to > work, but that's good practice anyway). This catches the majority of the uses > of quotes for me. For me define-key was a problematic and common case. Until now I believed that replacing 'COMMAND in (define-key ... 'COMMAND) with #'COMMAND is inappropriate because I thought that #'F evaluates to (symbol-function 'F). But it turns out that my intuition was wrong and that (eq #'F 'F) => t for all symbols F. So #' can be used to mark function names in more cases than I thought. Which is good news for the namespace macro. Helmut