From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/60177 Path: news.gmane.org!not-for-mail From: Ted Stern Newsgroups: gmane.emacs.gnus.general Subject: Re: general emacs question: advising find-file Date: Tue, 19 Apr 2005 13:35:18 -0700 Organization: Cray Inc. Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1113942992 315 80.91.229.2 (19 Apr 2005 20:36:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 19 Apr 2005 20:36:32 +0000 (UTC) Original-X-From: ding-owner+M8704@lists.math.uh.edu Tue Apr 19 22:36:30 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DNzRf-0007xT-7v for ding-account@gmane.org; Tue, 19 Apr 2005 22:35:43 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1DNzUl-0000rS-00; Tue, 19 Apr 2005 15:38:55 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1DNzUe-0000rM-00 for ding@lists.math.uh.edu; Tue, 19 Apr 2005 15:38:48 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by util2.math.uh.edu with esmtp (Exim 4.30) id 1DNzUd-0007a0-O3 for ding@lists.math.uh.edu; Tue, 19 Apr 2005 15:38:47 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1DNzUc-0005dC-00 for ; Tue, 19 Apr 2005 22:38:46 +0200 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1DNzPM-0007bg-0C for ding@gnus.org; Tue, 19 Apr 2005 22:33:20 +0200 Original-Received: from ip-136-162-67-33.cray.com ([136.162.67.33]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 19 Apr 2005 22:33:19 +0200 Original-Received: from stern+gnus by ip-136-162-67-33.cray.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 19 Apr 2005 22:33:19 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Lines: 26 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: ip-136-162-67-33.cray.com User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:a/QeyF4ojfe8p4jC2MSMU9Og7G4= X-Spam-Score: -4.5 (----) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:60177 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:60177 On 19 Apr 2005 at 12:56 UTC-0700, Karl Pflästerer wrote: >On 19 Apr 2005, stern+gnus@cray.com wrote: > >> Is there a way to change the default "C-x C-f RET" so that it re-opens >> the current file instead of the current directory? What I want to do >> is change the default find-file prompt to the current file. > > That's certainly easy possible but why don't you just use `C-x C-v' > (`find-alternate-file')? I agree, that would be easier, but I have a question from a user who has been using the old C-x C-f functionality for over 10 years and doesn't want to relearn keystrokes. The find-file function [specifically the "(interactive ...)" line] changed sometime between Emacs 21.3 and Emacs 22.0.50. Ted -- Ted Stern Applications Group Cray Inc. office: 206-701-2182 411 First Avenue South, Suite 600 cell: 206-383-1049 Seattle, WA 98104-2860 FAX: 206-701-2500 Frango ut patefaciam -- I break so that I may reveal (The Paleontological Society motto, equally apropos for debugging)