From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: DEFUN in Emacs's C-code. Can I give "prompt" an arbitrary lisp expression? Date: Thu, 14 Oct 2004 20:46:47 GMT Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1097786884 26630 80.91.229.6 (14 Oct 2004 20:48:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 14 Oct 2004 20:48:04 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Oct 14 22:47:56 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CICVv-00062Q-00 for ; Thu, 14 Oct 2004 22:47:56 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CICd1-00037e-JW for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Oct 2004 16:55:15 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!nntp.cs.ubc.ca!torn!snoopy.risq.qc.ca!charlie.risq.qc.ca!53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:pfKMESPutI1ivwcvwktXmSSU+qI= Original-Lines: 15 Original-NNTP-Posting-Host: 132.204.24.84 Original-X-Complaints-To: abuse@umontreal.ca Original-X-Trace: charlie.risq.qc.ca 1097786807 132.204.24.84 (Thu, 14 Oct 2004 16:46:47 EDT) Original-NNTP-Posting-Date: Thu, 14 Oct 2004 16:46:47 EDT Original-Xref: shelby.stanford.edu gnu.emacs.help:125881 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:21251 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:21251 > Why do I want this? Because I often want to change names like > "longbuffername.el<2>" to "longbuffername.el", and that much typing is Try uniquify. > [OK, I'd need to think about the P on the end, but that's inessential for > now]. Can I do this directly in emacs/src/buffer.c, somehow? No. I think that interactive built-in functions are generally a bad idea for this reason. Stefan