unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>,
	"'Help-Gnu-Emacs (help-gnu-emacs@gnu.org)'"
	<help-gnu-emacs@gnu.org>
Subject: RE: [External] : interactive to do `use-region-p'
Date: Mon, 7 Nov 2022 02:29:54 +0000	[thread overview]
Message-ID: <SJ0PR10MB548844B03C84712933CF7316F33C9@SJ0PR10MB5488.namprd10.prod.outlook.com> (raw)
In-Reply-To: <jwvr0yfy21l.fsf-monnier+emacs@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 366 bytes --]

> > use that with (interactive `(,@(DTRT))).
> A.k.a (interactive (DTRT)), right?

;-) Yup/oops.

I was thinking of the more general case of
region/buffer-limit args, plus additional args.

(defun foo (beg end other)
  (interactive `(,@(dtrt) ,(+ 2 7)))
  ...)

or

(defun foo (begin end other)
  (interactive (append (dtrt) (list (+ 2 7))))
  ...)

[-- Attachment #2: winmail.dat --]
[-- Type: application/ms-tnef, Size: 13526 bytes --]

  reply	other threads:[~2022-11-07  2:29 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-06 13:45 interactive to do `use-region-p' Emanuel Berg
2022-11-06 15:41 ` [External] : " Drew Adams
2022-11-06 18:53   ` Emanuel Berg
2022-11-07  1:41   ` Stefan Monnier via Users list for the GNU Emacs text editor
2022-11-07  2:29     ` Drew Adams [this message]
2022-11-07 12:28       ` Emanuel Berg
2022-11-07 15:51         ` Drew Adams
2022-11-07 17:25           ` Emanuel Berg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=SJ0PR10MB548844B03C84712933CF7316F33C9@SJ0PR10MB5488.namprd10.prod.outlook.com \
    --to=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).