From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Sebastien Vauban" Newsgroups: gmane.emacs.help Subject: How to load recentf only after opening/saving a file for the first time? Date: Fri, 07 Sep 2012 15:45:56 +0200 Organization: Sebastien Vauban Message-ID: <80txvarlnv.fsf@somewhere.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1347025817 8511 80.91.229.3 (7 Sep 2012 13:50:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Sep 2012 13:50:17 +0000 (UTC) To: help-gnu-emacs-mXXj517/zsQ@public.gmane.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Fri Sep 07 15:50:19 2012 Return-path: Envelope-to: geh-help-gnu-emacs@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 1T9ywq-0008KV-Ii for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Sep 2012 15:50:16 +0200 Original-Received: from localhost ([::1]:36186 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9ywn-00060l-HO for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Sep 2012 09:50:13 -0400 Original-Path: usenet.stanford.edu!goblin1!goblin.stu.neva.ru!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 20 Injection-Info: mx04.eternal-september.org; posting-host="368fa3c7dc5c1bbe516391bd65bd1ab2"; logging-data="23609"; mail-complaints-to="abuse-VVbKFVtnif8H+i2N2EyTrmui9UKz+5OX@public.gmane.org"; posting-account="U2FsdGVkX18+/yINivURIZBeJtb+HtTQ" User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2 (windows-nt) X-Url: Under construction... X-Archive: encrypt Cancel-Lock: sha1:RgV/BpXRT0q/8MWrahSU/JdGNPc= sha1:HDMT+MmwfQSqiWbLK1QN+wHw2gc= Original-Xref: usenet.stanford.edu gnu.emacs.help:194340 X-BeenThere: help-gnu-emacs-mXXj517/zsQ@public.gmane.org X-Mailman-Version: 2.1.14 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-mXXj517/zsQ@public.gmane.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Xref: news.gmane.org gmane.emacs.help:86683 Archived-At: Hello, Always with the same performance-oriented analysis of my .emacs file, I'm trying to require recentf not during the startup, but later, as soon as it's really needed. Not that heavy, but every little flow participate in the big ocean... I guess the right time to require recentf is the first time we open or save a file. Though, for opening, the only hook available is run after find-file, so too late to save the first opened file, it seems. What would be a correct way to delay the require of recentf? Best regards, Seb -- Sebastien Vauban