From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xue Fuqiao Newsgroups: gmane.emacs.devel Subject: Re: split-window as a command Date: Sat, 13 Apr 2013 08:52:29 +0800 Message-ID: <20130413085229.3b4d73d6d2a32c0ce6106fda@gmail.com> References: <87ppy0p4cm.fsf@rosalinde.fritz.box> <5167D3E8.8000903@gmx.at> <87obdkf097.fsf@rosalinde.fritz.box> <51681696.7000405@gmx.at> <877gk7fhrs.fsf@rosalinde.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1365814359 3626 80.91.229.3 (13 Apr 2013 00:52:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 13 Apr 2013 00:52:39 +0000 (UTC) Cc: Rand , emacs-devel@gnu.org To: Stephen Berman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 13 02:52:43 2013 Return-path: Envelope-to: ged-emacs-devel@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 1UQoht-00037Z-8x for ged-emacs-devel@m.gmane.org; Sat, 13 Apr 2013 02:52:41 +0200 Original-Received: from localhost ([::1]:60267 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQohs-0002uY-W3 for ged-emacs-devel@m.gmane.org; Fri, 12 Apr 2013 20:52:40 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45141) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQohp-0002uR-A2 for emacs-devel@gnu.org; Fri, 12 Apr 2013 20:52:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UQoho-0000pC-BL for emacs-devel@gnu.org; Fri, 12 Apr 2013 20:52:37 -0400 Original-Received: from mail-da0-x231.google.com ([2607:f8b0:400e:c00::231]:33113) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQoho-0000p8-4f for emacs-devel@gnu.org; Fri, 12 Apr 2013 20:52:36 -0400 Original-Received: by mail-da0-f49.google.com with SMTP id t11so1351893daj.36 for ; Fri, 12 Apr 2013 17:52:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:date:from:to:cc:subject:message-id:in-reply-to :references:x-mailer:mime-version:content-type :content-transfer-encoding; bh=LQ7wI50i9ebVb+Z9NeNTvtTbbWaonAmREsKatTHlRMw=; b=z7LmWh/lFdy9lAC4RXIuoQqchoAUwGxrujDUrkSltRcPAKzsvcsa5PZounTc4fxI7J Bqrta9+8msSqaFTvyr7g6SPtKoNudZK6i54qNqjgIH2DlCYmASz+A4DwS2AMNpHl6XgZ o+wZ/G+rBiRYY4QXUbDh9wxgqPfkp6khSGcrYzrGsuT6kjb5n+ZYrfmL9iJaIyQDHBbM FGWOZQg3cHNS7ARXuJKP9rEoFsGdW+JgtOu2yPrdGhntqHbuh6tXThTmUeSKktNUMiSM X8U6bt+T2ZD7UtGReDp7tKKdRO4NpFXU6AtEC+dWgzSf/ytKgEJMh9FVuLU2YX00BnIQ 24OA== X-Received: by 10.68.97.130 with SMTP id ea2mr17070325pbb.129.1365814354994; Fri, 12 Apr 2013 17:52:34 -0700 (PDT) Original-Received: from localhost.localdomain ([61.149.227.176]) by mx.google.com with ESMTPS id t1sm11552993pab.12.2013.04.12.17.52.31 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 12 Apr 2013 17:52:34 -0700 (PDT) In-Reply-To: <877gk7fhrs.fsf@rosalinde.fritz.box> X-Mailer: Sylpheed 3.3.0 (GTK+ 2.24.16; x86_64-redhat-linux-gnu) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c00::231 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:158867 Archived-At: On Sat, 13 Apr 2013 01:31:19 +0200 Stephen Berman wrote: > It would be nice if there were a make-obsolete-command function, so > invoking split-window would warn: "This function is obsolete as a > command since 24.4; use `split-window-below' instead. Agreed. `define-obsolete-command-alias' is needed, too. BTW if the warning is from echo area, it's too long (84 characters in this case). I have a (maybe) better version: This command is obsolete since 24.4; use `C-x 2' instead It start with a capital letter but does not end with a period, just like an error message. The `C-x 2' is from the command (function or keyboard macro) if the command is bounded. And your version can be in the output of `describe-function'. -- Xue Fuqiao http://www.gnu.org/software/emacs/