From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.help Subject: Re: mixing argument types Date: Sun, 26 Aug 2018 23:09:34 +0200 Organization: Aioe.org NNTP Server Message-ID: <86d0u4ltrl.fsf@zoho.com> References: <86tvnhktf7.fsf@zoho.com> <86pny4ly4p.fsf@zoho.com> <86lg8slxsd.fsf_-_@zoho.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1535317721 19145 195.159.176.226 (26 Aug 2018 21:08:41 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 26 Aug 2018 21:08:41 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Aug 26 23:08:36 2018 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 1fu2Gv-0004oy-2i for geh-help-gnu-emacs@m.gmane.org; Sun, 26 Aug 2018 23:08:33 +0200 Original-Received: from localhost ([::1]:50419 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fu2J1-0005aO-5J for geh-help-gnu-emacs@m.gmane.org; Sun, 26 Aug 2018 17:10:43 -0400 X-Received: by 2002:a1c:7c19:: with SMTP id x25-v6mr660607wmc.20.1535317775021; Sun, 26 Aug 2018 14:09:35 -0700 (PDT) Original-Path: usenet.stanford.edu!143-v6no5241308wmm.0!news-out.google.com!a22-v6ni18430wmg.0!nntp.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!ecngs!feeder2.ecngs.de!78.46.240.70.MISMATCH!weretis.net!feeder4.news.weretis.net!news.mixmin.net!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 18 Original-NNTP-Posting-Host: onLrbz09yV+MU3RaxdbMkg.user.gioia.aioe.org Original-X-Complaints-To: abuse@aioe.org Cancel-Lock: sha1:Quw6hm1J+RibJON84W/SyO5eJmA= Mail-Copies-To: never X-Notice: Filtered by postfilter v. 0.8.3 Original-Xref: usenet.stanford.edu gnu.emacs.help:223636 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:117761 Archived-At: Stefan Monnier wrote: > So you'd write: > > (defun do-a-on-b (a b &optional start stop) > (interactive > (list > (completing-read "Give me A: " '("foo" "bar")) > (read-file-name "Give me B:") > (region-beginning) > (region-end))) > ...) Great, thanks! -- underground experts united http://user.it.uu.se/~embe8573