From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Shift selection using interactive spec Date: Sat, 29 Mar 2008 12:37:47 -0400 Message-ID: References: <87k5k69p92.fsf@stupidchicken.com> <8763vndi0r.fsf@kfs-lx.rd.rdm> <87hcf6ratt.fsf@stupidchicken.com> <878x0if9ul.fsf@stupidchicken.com> <87od9e9gnx.fsf@stupidchicken.com> <87skyo5bvk.fsf@stupidchicken.com> <87skynrin5.fsf@stupidchicken.com> <87iqzju0lq.fsf@kfs-lx.rd.rdm> <851w5xx5ya.fsf@lola.goethe.zz> <87ve3993dt.fsf@jurta.org> <47EA37C7.7080502@gmail.com> <878x050yp0.fsf@jurta.org> <878x03ybyg.fsf@jurta.org> <871w5upcsc.fsf@jurta.org> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1206808685 10082 80.91.229.12 (29 Mar 2008 16:38:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 29 Mar 2008 16:38:05 +0000 (UTC) Cc: jared@hpalace.com, lennart.borgman@gmail.com, emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 29 17:38:33 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Jfe4e-0007lb-QI for ged-emacs-devel@m.gmane.org; Sat, 29 Mar 2008 17:38:33 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jfe43-0004fn-Bx for ged-emacs-devel@m.gmane.org; Sat, 29 Mar 2008 12:37:55 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jfe3z-0004fi-IU for emacs-devel@gnu.org; Sat, 29 Mar 2008 12:37:51 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jfe3x-0004fW-6X for emacs-devel@gnu.org; Sat, 29 Mar 2008 12:37:50 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jfe3w-0004fT-W4 for emacs-devel@gnu.org; Sat, 29 Mar 2008 12:37:49 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jfe3w-0004m1-L0 for emacs-devel@gnu.org; Sat, 29 Mar 2008 12:37:48 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1Jfe3v-00036C-WD; Sat, 29 Mar 2008 12:37:48 -0400 In-reply-to: <871w5upcsc.fsf@jurta.org> (message from Juri Linkov on Sat, 29 Mar 2008 02:54:34 +0200) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:93815 Archived-At: As I understand the purpose of this feature is practically to move the last expression of the command's body that usually is written as (if (interactive-p) (message "Result of this command is %.0f" return-value) (format "%.0f" return-value)) You have the right idea in mind for what the code would be trying to do. But code like that would be a strange way to write it, and in practice does seem to occur much if at all. The way I would envision this is more like (if interactive-call (message "Result of this command is %.0f" return-value)) return-value) where `interactive-call' is an argument initialized to non-nil for an interactive call. The job of the second arg to `interctive', that I've proposed, would be to control how to generate the message in the interactive case.