emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric Schulte <schulte.eric@gmail.com>
To: Bastien <bzg@altern.org>
Cc: emacs-orgmode@gnu.org,
	Michael Markert <markert.michael@googlemail.com>,
	Carsten Dominik <carsten.dominik@gmail.com>
Subject: Re: Replaced obsolete interactive-p function
Date: Thu, 30 Jun 2011 11:12:37 -0700	[thread overview]
Message-ID: <87aacz89yi.fsf@gmail.com> (raw)
In-Reply-To: <87y60jzpfi.fsf@gnu.org> (Bastien's message of "Thu, 30 Jun 2011 10:36:17 +0200")

Bastien <bzg@altern.org> writes:

> Hi Eric and Michael,
>
> Eric Schulte <schulte.eric@gmail.com> writes:
>
>> Michael's patch looks great to me, I can confirm that it does stifle the
>> warnings on Emacs24, and everything compiles and works as expected -- at
>> least as far as the Org-mode test suite is able to differentiate.
>
> Thanks to Michael for the patch, it does indeed fix the warnings.
>
>> In addition to applying this patch I've also added another patch which
>> supplies the optional KIND argument to every invocation of
>> org-called-interactively-p.
>
> I thought the absence of argument was taken care by the
> org-called-interactively-p macro -- see the (with-no-warning ...) 
> sexp in it, and the comment.
>
> Eric, any reason for explicitely adding an argument?
>
> I understand it's better for readability and it will ease the future
> replacement of org-called-interactively-p by called-interactively-p,
> but I was just curious to know if there was some other reasons.
>

This extra argument supplies more information to the macro (e.g., an
idea of /how/ interactive is considered /interactive/) through taking on
the value of 'any or 'interactive.  This information is thrown out in
older versions of Emacs but is passed on to the called-interactively-p
function in Emacs24 and should influence its behavior.

Cheers -- Eric

>
> Thanks!

-- 
Eric Schulte
http://cs.unm.edu/~eschulte/

  reply	other threads:[~2011-06-30 18:12 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-29 16:26 Bastien
2011-06-29 22:29 ` Michael Markert
2011-06-29 22:50   ` Carsten Dominik
2011-06-29 23:27     ` Eric Schulte
2011-06-30  8:36       ` Bastien
2011-06-30 18:12         ` Eric Schulte [this message]
2011-07-01  8:59           ` Bastien
2011-06-30  9:16   ` Bastien

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.orgmode.org/

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

  git send-email \
    --in-reply-to=87aacz89yi.fsf@gmail.com \
    --to=schulte.eric@gmail.com \
    --cc=bzg@altern.org \
    --cc=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=markert.michael@googlemail.com \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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).