From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#14484: 24.3.50; doc of `after-find-file' Date: Fri, 29 Apr 2016 01:39:11 +0200 Message-ID: <87d1p91exs.fsf@gnus.org> References: <4b18bd65-4967-4f2b-91ab-4b3603178f1c@default> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1461886823 11360 80.91.229.3 (28 Apr 2016 23:40:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Apr 2016 23:40:23 +0000 (UTC) Cc: 14484@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Apr 29 01:40:11 2016 Return-path: Envelope-to: geb-bug-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 1avvXW-0008Tt-9I for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Apr 2016 01:40:10 +0200 Original-Received: from localhost ([::1]:51584 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avvXU-00067R-TG for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 Apr 2016 19:40:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49125) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avvXR-00063O-BN for bug-gnu-emacs@gnu.org; Thu, 28 Apr 2016 19:40:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1avvXO-0002h4-4a for bug-gnu-emacs@gnu.org; Thu, 28 Apr 2016 19:40:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41396) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avvXO-0002gz-1P for bug-gnu-emacs@gnu.org; Thu, 28 Apr 2016 19:40:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1avvXN-0003PU-Pg for bug-gnu-emacs@gnu.org; Thu, 28 Apr 2016 19:40:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 Apr 2016 23:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14484 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14484-submit@debbugs.gnu.org id=B14484.146188675713042 (code B ref 14484); Thu, 28 Apr 2016 23:40:01 +0000 Original-Received: (at 14484) by debbugs.gnu.org; 28 Apr 2016 23:39:17 +0000 Original-Received: from localhost ([127.0.0.1]:53730 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1avvWf-0003OH-IT for submit@debbugs.gnu.org; Thu, 28 Apr 2016 19:39:17 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]:39226) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1avvWd-0003O9-0m for 14484@debbugs.gnu.org; Thu, 28 Apr 2016 19:39:16 -0400 Original-Received: from cm-84.215.1.64.getinternet.no ([84.215.1.64] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1avvWa-0001oI-4E; Fri, 29 Apr 2016 01:39:14 +0200 In-Reply-To: <4b18bd65-4967-4f2b-91ab-4b3603178f1c@default> (Drew Adams's message of "Mon, 27 May 2013 08:11:45 -0700 (PDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:117136 Archived-At: Drew Adams writes: > 1. The parameter is named _AFTER-FIND-FILE-FROM-REVERT-BUFFER, not > AFTER-FIND-FILE-FROM-REVERT-BUFFER. This is how `C-h f' on that starts: after-find-file is a compiled Lisp function in =91files.el=92. (after-find-file &optional ERROR WARN NOAUTO AFTER-FIND-FILE-FROM-REVERT-BUFFER NOMODES) So it's consistent, even if the arg is "really" _'d. > 2. This makes no sense: > "(see `revert-buffer-in-progress-p' for similar functionality)." > > Similar functionality to what? The parameter is _ignored_! I think it means "if this is what you used to use, use this similar thing instead". Seems clear to me. > 3. And since _AFTER-FIND-FILE-FROM-REVERT-BUFFER is ignored, why > does `recover-file' continue to make a point of using it? Why doesn't > it just use `(after-find-file)'? Again, it seems like someone made an > incomplete change to the code, neglecting to clean up here and there. It calls (after-find-file nil nil t) so if it did, it's been fixed. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no