From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.help Subject: Re: shell-CLI for Emacs Date: Mon, 26 Aug 2013 11:03:39 +0700 Message-ID: References: <87zjs8kozg.fsf@nl106-137-194.student.uu.se> <8738px9smb.fsf@nl106-137-194.student.uu.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1377489834 31240 80.91.229.3 (26 Aug 2013 04:03:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 26 Aug 2013 04:03:54 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: Emanuel Berg Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Aug 26 06:03:58 2013 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 1VDo1z-0000Xm-ER for geh-help-gnu-emacs@m.gmane.org; Mon, 26 Aug 2013 06:03:55 +0200 Original-Received: from localhost ([::1]:48672 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VDo1z-00025g-31 for geh-help-gnu-emacs@m.gmane.org; Mon, 26 Aug 2013 00:03:55 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39645) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VDo1p-00024h-0D for help-gnu-emacs@gnu.org; Mon, 26 Aug 2013 00:03:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VDo1l-0004Oe-F1 for help-gnu-emacs@gnu.org; Mon, 26 Aug 2013 00:03:44 -0400 Original-Received: from mail-lb0-x232.google.com ([2a00:1450:4010:c04::232]:56233) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VDo1l-0004Nx-6r for help-gnu-emacs@gnu.org; Mon, 26 Aug 2013 00:03:41 -0400 Original-Received: by mail-lb0-f178.google.com with SMTP id z5so1943350lbh.37 for ; Sun, 25 Aug 2013 21:03:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=6W0+lyouoJ8AiBz+tDh/9CTvamqRKJVNnz7Q93hk/dI=; b=IQHN/+DkMgSqRll1wIC/A99Kb7eiGGRebSvr03TxUICv+Q9Nv4+g/YHG6QoF40C9ek FTUPn+BbMxht1EPkdytYHmtF+fKu3M04JjR1agofJroNGdIA8ez4EWvrn8MuFW92zfZw h0kVuSGyGoBlsATX1pt94FyvzOXL0rHdkoKPGjaXHTM42rh/A+s+AtWIT+40QYzYW599 8CLdaWgMp64SroW4vUbFPJZN/8W6b0hxTU8F4cr3TzQHMRcZHW9VCjvoYJLiomaN0o81 zJY5X8q92wV/vp40BmwH26Q5uEVj9lN2AO/W/w+947LrZ2llylQ2uuR/sjjukHHg7nCN Lrqw== X-Received: by 10.152.22.198 with SMTP id g6mr11813496laf.5.1377489819543; Sun, 25 Aug 2013 21:03:39 -0700 (PDT) Original-Received: by 10.114.185.101 with HTTP; Sun, 25 Aug 2013 21:03:39 -0700 (PDT) In-Reply-To: <8738px9smb.fsf@nl106-137-194.student.uu.se> X-Google-Sender-Auth: 5_id4gun3xzqT3dJpo326kKc7SU X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::232 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:93087 Archived-At: On Mon, Aug 26, 2013 at 7:56 AM, Emanuel Berg wrot= e: >> That's the primary benefit of all DWIM hacking, after all, for >> both you and Emacs! > > DWIM, is that what I'm doing? Why did you say that? I'm to read > the Wikipedia article tonight - never heard of it, but intuitively > I like it. > > add_dic () { sudo tar -xvjf $1 -C /usr/share/stardict/dic; } What you are doing here is just programming: replacing a long precise command with a shorter but still precise command. DWIM is a technique of replacing a precise command with one that is in some way imprecise. You misspell a command, something behind the scenes corrects it for you (seen in zsh). You don=E2=80=99t specify a parameter, it picks a default that is sensible for some people in some cases, but not universally (e.g. git push). You should be reading not Wikipedia but The Jargon File: http://www.catb.org/~esr/jargon/html/D/DWIM.html . It explains well why one man=E2=80=99s Do What I Mean is another=E2=80=99s Damn Warren=E2=80= =99s Infernal Machine.