From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.help Subject: Re: How to apply (multi file) patches conveniently Date: Wed, 08 Feb 2017 23:34:50 +0100 Message-ID: <87o9yc2tx1.fsf@drachen> References: <87efzb5xgl.fsf@drachen> <83fujr7216.fsf@gnu.org> <871sv9u79z.fsf@drachen> <83fujp6a6b.fsf@gnu.org> <874m05ycmx.fsf@drachen> <87efz9m2rk.fsf@zigzag.favinet> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1486593358 29363 195.159.176.226 (8 Feb 2017 22:35:58 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 8 Feb 2017 22:35:58 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 08 23:35:51 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cbaq6-0007E1-85 for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Feb 2017 23:35:50 +0100 Original-Received: from localhost ([::1]:33550 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cbaqB-0006Fy-MW for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Feb 2017 17:35:55 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58323) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cbapG-0006EM-EM for help-gnu-emacs@gnu.org; Wed, 08 Feb 2017 17:34:59 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cbapD-0005di-C3 for help-gnu-emacs@gnu.org; Wed, 08 Feb 2017 17:34:58 -0500 Original-Received: from mout.web.de ([212.227.17.11]:50229) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cbapD-0005cg-1J for help-gnu-emacs@gnu.org; Wed, 08 Feb 2017 17:34:55 -0500 Original-Received: from drachen.dragon ([188.99.162.250]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MTh6a-1d25wC06cK-00QXAa; Wed, 08 Feb 2017 23:34:52 +0100 In-Reply-To: <87efz9m2rk.fsf@zigzag.favinet> (Thien-Thi Nguyen's message of "Wed, 08 Feb 2017 10:48:47 +0100") X-Provags-ID: V03:K0:RVyFttq3xr+S3s3qKIkTBWm2x8p+MxlU/fpMXUNlh40wkUpiahQ RyEmTOlNDtBmeDWZHOThZWfq8s4ZGVC/mftfLVR+VlJCU3Nh3oOFzOX3fuV8GuB4ov7csJo 7Ht7XJ5hZtTIypq9gxenC1ncCT/Zra4p8Tbu6vMaJIc5UOBPgf2fnYwJBfTlp7wLIPGgi+M 1WE0tcfHD+Q2SKHGYqGEg== X-UI-Out-Filterresults: notjunk:1;V01:K0:DyjFgl+y/4U=:IINz0xCb3rUvHr5akRMgB1 bFJ/DJB+/WFPnyMai24rjVUauFkntIMc29j92cPFCgxmT9aw2+c7GoaO0lUESjNrNBMFu08Yk /+bwdfnCdyRuzTk+HrnPjXT1Nfnd/AiiF+cTPyynHct9fBdwODgKCXW6s6pc5YkyW8snTD8b/ SujyO9Vu2owI2kCD8y5BixxsaIf5Rj0Ma5MUStBqIPrCOP576i6f26LilVcUurwB+m8Y5ydvc OHoyxkMDmtY+QfGOhVrcFjta9MBGTbbOXEwGEu31jN59/I8JFnHSL/zFmTineA4Sj+Ptu2MLu Ab+WMi+p3sKPR9pNASOFNeoLj+n7JIhj3IbRJDng6RtXV7Bs/LhI1G37EdXoZUNbytWP1Oc2y HS/t+i+BoqXgikT84JDJAyy42o2jgLkQWyzV4DLR8rcTikf/1OexeXQwp1U/5IoFxAVJZ1Sly WJADZpDc7cJYIN9rPwBfiqU54nK8o1g3JSsG04QC24nZEzGAXM4zhGJWlIVJujFebgD+wU6hz 2my6Ywv9QFqmJiJadq069T4qvpVyavMOhMgfbM3r589YvU3i7mnG3/YcWK66rcu0hj6UhgDn7 3yMXi/7iTlkXIHay8ShTM5Zvl+0iI79RVx7ulKLA8JU1ms6Ie6RTyedXiYsznxXRM/bKYhrn3 98B8WuRR1xmQrFnqjo9G2XeoJuHLHsVPV5YWwJbvgvPGQDcUsDaqMQ7YmQFtRgawHQUkFw2dE WNzlpmH7Gs4H8u51uaUUw9nkdvAOEGmGwsO5/G0kH8adSQpjTkyfsECNYWsAkT9inH1dJEYT X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.17.11 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:112286 Archived-At: Thien-Thi Nguyen writes: > () Michael Heerdegen > () Tue, 07 Feb 2017 21:22:30 +0100 > > (let* ((insert-default-directory nil) > (input (read-directory-name > (format "Dir (default %s): " > (or source-directory > default-directory))))) > > Should this be moved into the =E2=80=98interactive=E2=80=99 form? Yes, that would be appropriate. Well... this snipped was quickly written, I posted it just for reference. But it would be better indeed. > > (if (string=3D input "") > (expand-file-name (or source-directory > default-directory)) > input)) > > You can probably call =E2=80=98read-directory-name=E2=80=99 w/ some combi= nation > of DIR, DEFAULT-DIRNAME and INITIAL args to have it produce the > same result. Hmm, I avoided INITIAL because I prefer to start with an empty minibuffer. > Thien-Thi Nguyen ----------------------------------------------- > (defun responsep (query) > (pcase (context query) > (`(technical mailing-list) t) ^ You can use just a quote here instead of backquote, but it doesn't make a difference when you run that code ;-) Regards, Michael.