From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: Abbrevs for the most frequent elisp symbols Date: Mon, 29 Dec 2014 08:26:23 -0500 Message-ID: References: <87sifzkrwn.fsf@debian.uxu> <878uhqpul7.fsf@wmi.amu.edu.pl> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1419859625 22483 80.91.229.3 (29 Dec 2014 13:27:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 29 Dec 2014 13:27:05 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 29 14:26:58 2014 Return-path: Envelope-to: geh-help-gnu-emacs@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 1Y5aLZ-0007Zb-Hs for geh-help-gnu-emacs@m.gmane.org; Mon, 29 Dec 2014 14:26:57 +0100 Original-Received: from localhost ([::1]:33389 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y5aLY-0003ru-O8 for geh-help-gnu-emacs@m.gmane.org; Mon, 29 Dec 2014 08:26:56 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46559) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y5aLM-0003rO-8n for help-gnu-emacs@gnu.org; Mon, 29 Dec 2014 08:26:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y5aLJ-00015E-0d for help-gnu-emacs@gnu.org; Mon, 29 Dec 2014 08:26:44 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:56886) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y5aLI-000156-PV for help-gnu-emacs@gnu.org; Mon, 29 Dec 2014 08:26:40 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Y5aLF-0007Pg-OR for help-gnu-emacs@gnu.org; Mon, 29 Dec 2014 14:26:37 +0100 Original-Received: from 69-165-141-1.dsl.teksavvy.com ([69.165.141.1]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 29 Dec 2014 14:26:37 +0100 Original-Received: from monnier by 69-165-141-1.dsl.teksavvy.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 29 Dec 2014 14:26:37 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 35 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 69-165-141-1.dsl.teksavvy.com User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:ny2QHv9nXzO9qN/IQLPVkq0rtJY= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:101751 Archived-At: > Elisp code to read (to learn Elisp), and someone warned about reading > Emacs code (especially older libraries). That's one person's opinion. > Recently, I grepped the Emacs Lisp sources for occurences of `mapcar', > and there is *no* consistency in e.g. using ' versus #', Indeed. But to a large extend, for quoted function names, the difference between the two is a question of taste. IOW there are usually much bigger elephants to deal with before it's worth worrying about such details. > or quoted lambdas (which I hear are a no-no unless in special > circumstances, like macros). AFAIK there have been no quoted lambdas left in Emacs's own code for quite a few years now. There are still some backquoted lambdas which should be converted to closures, admittedly (usually it's either because converting those packages to lexical-binding is a bit more tricky than usual, so it hasn't been done yet, or it's because the conversion can't be done because the package is also distributed outside Emacs and needs to work on Emacs<24). >> Yes: I've seen something similar but I think that was >> the typing of commands after M-x, and not the whole >> Elisp language when typing it in a buffer. That also works in Elisp buffers, actually: type "(g-c" and then M-TAB and you'll be offered completion on all the g-c functions. It's not really the same as the OP's abbrevs, tho, because there are *many* functions matching "(g-c". Stefan