From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bastien Newsgroups: gmane.emacs.devel Subject: Re: [emacs-w3m:11603] Re: interactive-p obsolete Date: Wed, 06 Jul 2011 10:54:41 +0200 Message-ID: <871uy3lrfy.fsf@gnu.org> References: <4E13FCE4.8080309@easy-emacs.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1309974698 10632 80.91.229.12 (6 Jul 2011 17:51:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 6 Jul 2011 17:51:38 +0000 (UTC) Cc: emacs-devel@gnu.org To: Tim Cross Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 06 19:51:33 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QeWG3-0006Ng-DP for ged-emacs-devel@m.gmane.org; Wed, 06 Jul 2011 19:51:31 +0200 Original-Received: from localhost ([::1]:46844 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QeWG1-0008Jg-Vx for ged-emacs-devel@m.gmane.org; Wed, 06 Jul 2011 13:51:30 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:42809) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QeNs7-00010a-Mz for emacs-devel@gnu.org; Wed, 06 Jul 2011 04:54:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QeNs6-0004hs-Q0 for emacs-devel@gnu.org; Wed, 06 Jul 2011 04:54:15 -0400 Original-Received: from mail-wy0-f169.google.com ([74.125.82.169]:51759) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QeNs6-0004hh-H2 for emacs-devel@gnu.org; Wed, 06 Jul 2011 04:54:14 -0400 Original-Received: by wyg36 with SMTP id 36so5544181wyg.0 for ; Wed, 06 Jul 2011 01:54:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=sender:from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-type; bh=jOr0uyM3o1VORHA8pE8ALdvtXwsDzaqCaPd64uebrlM=; b=JamTfodZJxKfCZPzLE2ZpfAHAx7eYd109c9MCoCyGDPEbGjqMeuhCuLcET0wHOWKox prNZssloxs1Fjfmet6AeGvODWMYB2Xuk5mmBJjXMQ88YTJdJmbpeQtuxSN+CY7BorMWX uxYR5gP/s6oTSkHP50EDMbZfCJpjOXibOz9hM= Original-Received: by 10.227.142.141 with SMTP id q13mr7326711wbu.114.1309942453146; Wed, 06 Jul 2011 01:54:13 -0700 (PDT) Original-Received: from myhost.localdomain (netinfo62.cnam.fr [163.173.231.102]) by mx.google.com with ESMTPS id gd1sm1230925wbb.10.2011.07.06.01.54.10 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 06 Jul 2011 01:54:11 -0700 (PDT) Original-Received: by myhost.localdomain (Postfix, from userid 1000) id 2D3916F3B; Wed, 6 Jul 2011 10:54:42 +0200 (CEST) In-Reply-To: (Tim Cross's message of "Wed, 6 Jul 2011 17:09:26 +1000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 74.125.82.169 X-Mailman-Approved-At: Wed, 06 Jul 2011 12:52:01 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:141665 Archived-At: Tim Cross writes: > I don't believe the argument of not being able to use the new function > because of the need for backwards compatibility is valid. You can > solve this problem in a number of ways and maintain backwards > compatibility. FWIW, this is how Org solves it: (defmacro org-called-interactively-p (&optional kind) (if (featurep 'xemacs) `(interactive-p) (if (or (> emacs-major-version 23) (and (>= emacs-major-version 23) (>= emacs-minor-version 2))) `(with-no-warnings (called-interactively-p ,kind)) `(interactive-p)))) -- Bastien