From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: Re: recentf new feature proposal Date: Fri, 06 Jun 2003 20:16:53 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <20030606200342.8ABB.LEKTU@terra.es> References: <20030606144625.7245.JMBARRANQUERO@laley.wke.es> <15304722.1054907695385.JavaMail.www@wwinf0302> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1054923499 2730 80.91.224.249 (6 Jun 2003 18:18:19 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 6 Jun 2003 18:18:19 +0000 (UTC) Cc: jmbarranquero@laley.wke.es Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri Jun 06 20:18:14 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19OLn4-0000hE-00 for ; Fri, 06 Jun 2003 20:18:14 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19OM5j-0003uE-00 for ; Fri, 06 Jun 2003 20:37:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19OLpG-0002oT-GX for emacs-devel@quimby.gnus.org; Fri, 06 Jun 2003 14:20:30 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19OLnk-00026I-KT for emacs-devel@gnu.org; Fri, 06 Jun 2003 14:18:56 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19OLmt-0001Do-Pp for emacs-devel@gnu.org; Fri, 06 Jun 2003 14:18:04 -0400 Original-Received: from smtp.terra.es ([213.4.129.129] helo=tsmtp9.mail.isp) by monty-python.gnu.org with esmtp (Exim 4.20) id 19OLlo-0008MI-MV for emacs-devel@gnu.org; Fri, 06 Jun 2003 14:16:56 -0400 Original-Received: from [81.40.59.103] ([81.40.59.103]) by tsmtp9.mail.isp (terra.es) with ESMTP id HG2O4300.92Y; Fri, 6 Jun 2003 20:16:52 +0200 Original-To: david.ponce@wanadoo.fr In-Reply-To: <15304722.1054907695385.JavaMail.www@wwinf0302> X-Mailer: Becky! ver. 2.06.02 Original-cc: emacs-devel@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:14849 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:14849 On Fri, 6 Jun 2003 15:54:55 +0200 (CEST), David PONCE wrote: > This is a good point. I didn't know that saveplace already provided > that feature :-( Ah. Take a look at it. I use it all the time. > However, from a user point of view, it could be more convenient to use > only one library to open last visited files at last visited position. Hmm. recentf offers a way to (re)visit files; saveplace offers a way to save yourself from remembering where you were in the files (and the pain to go back to the right spot). Both behaviors are orthogonal (although vaguely related). IMO, if you use recentf and not saveplace, likely you don't want to restore the point anywhere. If you use recentf and want to restore the point for revisited files, likely saveplace's functionality will interest you even if you visit your files by other methods than recentf... > Also, that will reduce the number of hooks used, and the number of > session related files ;-) saveplace.el[c] is quite small. > recentf could check if saveplace is enabled, and not restore the point in that case. What worries me is duplicating this kind of functionality. There are already other modules who ease visiting files... Should every one of them implement point restoring? > > Maybe other people have different thoughts? Perhaps it'd be posible to extend (a little) saveplace.el so you can better customize when it should activate; this way, people who want to use saveplace-like functionality outside recentf-loaded files but not want if for recentf or viceversa could customize it to his heart's content. > Anyway, feel free to not install the patch if you don't like it. I feel it's unnecessary. Other than that, I've got nothing to say. /L/e/k/t/u