From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dale Snell Newsgroups: gmane.emacs.help Subject: Re: Bookmark the end of file? Date: Tue, 7 Apr 2015 09:49:47 -0700 Organization: Organization? Me? ROFL!! Message-ID: <20150407094947.3383cafe@zothique.localdomain> References: <87vbh8hlns.fsf@wmi.amu.edu.pl> <20150406170005.16781930@zothique.localdomain> <87sicchhen.fsf@wmi.amu.edu.pl> Reply-To: ddsnell@frontier.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/ZyT5+_K_NWHlaBIsw_uEXot"; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1428425463 25131 80.91.229.3 (7 Apr 2015 16:51:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 7 Apr 2015 16:51:03 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Apr 07 18:50:53 2015 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 1YfWiC-0001uy-Oh for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Apr 2015 18:50:52 +0200 Original-Received: from localhost ([::1]:47006 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfWiB-0002mK-TF for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Apr 2015 12:50:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36394) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfWhr-0002mE-0f for help-gnu-emacs@gnu.org; Tue, 07 Apr 2015 12:50:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YfWho-0006oF-6g for help-gnu-emacs@gnu.org; Tue, 07 Apr 2015 12:50:30 -0400 Original-Received: from filter04.dlls.pa.frontiernet.net ([199.224.80.234]:45960) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfWho-0006o5-1y for help-gnu-emacs@gnu.org; Tue, 07 Apr 2015 12:50:28 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by filter04.dlls.pa.frontiernet.net (Postfix) with ESMTP id 80FB928F264 for ; Tue, 7 Apr 2015 16:50:27 +0000 (UTC) Original-Received: from relay01.dlls.pa.frontiernet.net ([199.224.80.244]) by localhost (filter04.dlls.pa.frontiernet.net [199.224.80.234]) (amavisd-new, port 10024) with LMTP id 7dZnxxznK4k4 for ; Tue, 7 Apr 2015 16:50:16 +0000 (UTC) X-Originating-IP: [50.39.109.168] X-Previous-IP: 50.39.109.168 Original-Received: from zothique.localdomain (50-39-109-168.bvtn.or.frontiernet.net [50.39.109.168]) by relay01.dlls.pa.frontiernet.net (Postfix) with ESMTPA id C64BC30C0A0 for ; Tue, 7 Apr 2015 16:50:15 +0000 (UTC) In-Reply-To: <87sicchhen.fsf@wmi.amu.edu.pl> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.27; x86_64-redhat-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 199.224.80.234 X-BeenThere: help-gnu-emacs@gnu.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@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:103558 Archived-At: --Sig_/ZyT5+_K_NWHlaBIsw_uEXot Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Tue, 07 Apr 2015 03:10:56 +0200, in message 87sicchhen.fsf@wmi.amu.edu.pl, Marcin Borkowski wrote: > But putting stupid jokes aside, if I /always/ hit M-> after visiting > some file, something is not optimal, right? And bookmarks are > a convenient way to visit often-used files, regardless if the > directory I'm in. (And I have a rather deep directory structure - I > have virtually no files until two levels down, and usually there are > three or four. OTOH, there are no more than maybe two-three dozen of > files I'm working on at any particular moment. This is a perfect use > case for bookmarks.) Are these files of a type that can take comments? If so, you could try adding a file-local variable to each one, telling Emacs to go to the end of the file. Another possibility is to Customize the "find-file-hook" to do what you want. (Despite its name, find-file-hook is a "List of functions to be called after a buffer is loaded from a file." [From the documentation.]) Hmm... Now that I think about it, I seem to recall someone on this list asking if one could create a command-line option to do what you're asking. "emacs --exec () filename", or something like that. Of course, it would only work with the file(s) on the command line. (If you were the one who asked that question, I'm going to feel very silly.) > PS. BTW, the other bindings you mentioned are useless for me: I have > my menu-bar disabled (ok, I /could/ use M-x menu-bar-open...), and > don't have an key on my netbook. That's okay; while I do have the menu-bar active, I never use it to go to the end or beginning of the file -- M-> is so much simpler to type. As for the key, I've never used it. :-) I don't know if any of this will help, but maybe it will point you in the right direction. --Dale --=20 "Come, muse, let us sing of rats." -- James Grainger --Sig_/ZyT5+_K_NWHlaBIsw_uEXot Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBAgAGBQJVJArGAAoJEB7OMKhvWRr8RAEH/2KHGnpva1PD3W7Q7qnBfwzq nTaKZa2igECdxjyPQ4A3sDYu9HTtrbcaAoIfRNNlySonc+lb5p8qlIL0oQwBbr2u AURcVV6DHYEY9juKYn5WSHCWPCkfDga8MeaAllyTHEQnFNMMTAMNn3OaBK6QEbOX fn3SNGoYDLukuAceqTzPOnu1226u0bgGRu7+hBAp/XFVB66Izn+RPimN+mBZinr7 QAKSplXBmoUT54NUbNH2OG65tMkunfuIjVFY8jRzPAXU3pUrHyMY3vNsfWU+px5s HY21N/FHbMqNKO8ZATEFDPykcYfFWDYQEci/QlR7s5FKqu5DJw3UWe+w+tFUVUg= =KcDZ -----END PGP SIGNATURE----- --Sig_/ZyT5+_K_NWHlaBIsw_uEXot--