From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: dont.spam.earl@gmail.com Newsgroups: gmane.emacs.help Subject: Re: Specifying arguments to interactive functions Date: Thu, 15 May 2014 10:43:56 -0700 (PDT) Message-ID: <1581314b-bb96-42cd-9b4f-3a2511e3c486@googlegroups.com> References: <5d6e3672-b901-4e59-852d-281a3a5e4733@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1400175934 7666 80.91.229.3 (15 May 2014 17:45:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 May 2014 17:45:34 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 15 19:45:27 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 1Wkzig-0000SB-1c for geh-help-gnu-emacs@m.gmane.org; Thu, 15 May 2014 19:45:26 +0200 Original-Received: from localhost ([::1]:59713 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wkzif-0008G9-M9 for geh-help-gnu-emacs@m.gmane.org; Thu, 15 May 2014 13:45:25 -0400 X-Received: by 10.50.51.68 with SMTP id i4mr6027513igo.5.1400175837044; Thu, 15 May 2014 10:43:57 -0700 (PDT) X-Received: by 10.50.61.144 with SMTP id p16mr1058964igr.16.1400175836968; Thu, 15 May 2014 10:43:56 -0700 (PDT) Original-Path: usenet.stanford.edu!c1no7462555igq.0!news-out.google.com!qf4ni2017igc.0!nntp.google.com!c1no7462544igq.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2620:0:1000:1c03:2e44:fdff:fe15:1120; posting-account=QyAvTQoAAADtRdvZ5VbKTpUdY2nZ1GFk Original-NNTP-Posting-Host: 2620:0:1000:1c03:2e44:fdff:fe15:1120 User-Agent: G2/1.0 Injection-Date: Thu, 15 May 2014 17:43:56 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:205411 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:97679 Archived-At: On Thursday, May 15, 2014 1:04:01 AM UTC-7, Thien-Thi Nguyen wrote: > () dont.spam.earl@gmail.com > > () Wed, 14 May 2014 22:20:51 -0700 (PDT) > > > > Any suggestions on how to simplify this? > > > > '(48 49 50 51 52 53 54 55 56 57) > > > > These are code points for ASCII "0" through "9", and are already as > > simple as possible, in one sense, but not in the "wait six months and > > re-grok quickly the code" sense. Better to be symbolic (not necessarily > > w/ Lisp symbols, but rather w/ human-friendly expressions). > > > > For example, you can: > > - compress: (number-sequence 48 57) > > - use characters: (number-sequence ?0 ?9) > > - go up a level: (interactive "P") + SMOP > > > > -- > > Thien-Thi Nguyen > > GPG key: 4C807502 > > (if you're human and you know it) > > read my lisp: (responsep (questions 'technical) > > (not (via 'mailing-list))) > > => nil Thanks. Any tips on passing an argument to 'switch-to-interactive-buffer while having it still call 'interactive to get the digit from the user?