From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Jamie Beardslee Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Add user option to disable location in bookmarks Date: Sun, 21 Jun 2020 10:24:42 +1200 Message-ID: <87blld2x5h.fsf@gmail.com> References: <87sgep35cb.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="48195"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) To: emacs-devel@gnu.org Cancel-Lock: sha1:+JLTyF4iOSdS2I859YTa14ixXUs= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jun 21 00:25:25 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jmlvR-000CWT-CB for ged-emacs-devel@m.gmane-mx.org; Sun, 21 Jun 2020 00:25:25 +0200 Original-Received: from localhost ([::1]:50628 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jmlvQ-00066j-EO for ged-emacs-devel@m.gmane-mx.org; Sat, 20 Jun 2020 18:25:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36468) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jmluu-0004wz-Cm for emacs-devel@gnu.org; Sat, 20 Jun 2020 18:24:52 -0400 Original-Received: from ciao.gmane.io ([159.69.161.202]:46808) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jmlut-0004ec-1Z for emacs-devel@gnu.org; Sat, 20 Jun 2020 18:24:52 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1jmlur-000Buh-4M for emacs-devel@gnu.org; Sun, 21 Jun 2020 00:24:49 +0200 X-Injected-Via-Gmane: http://gmane.org/ Received-SPF: pass client-ip=159.69.161.202; envelope-from=ged-emacs-devel@m.gmane-mx.org; helo=ciao.gmane.io X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/20 18:24:49 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: 20 X-Spam_score: 2.0 X-Spam_bar: ++ X-Spam_report: (2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FORGED_FROMDOMAIN=1, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=1, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:252468 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable > You don't specify what the actual problem is. How does a bookmark > interfere with save-place? Maybe provide a step-by-step recipe to > show the problem, starting from `emacs -Q' (no init file). =E2=80=98bookmark-set=E2=80=99 saves the position--by which I mean point an= d context strings--with no option (that I can find) of not saving it. When using =E2=80=98bookmark-jump=E2=80=99, point will always be moved to that positio= n, ignoring the position from save-place. > Just what behavior are you looking for? Do you not want to open the > file at all? (If so, what do you want the bookmark to do with the > file, instead of opening it?) > > If you want the bookmark to open the file, where do you want the > cursor to be in it - at what position? My patch allows the user to choose whether or not the bookmark record should be in control of the position. > A bookmark can target a file in any way you want, including (but not > limited to) opening it at a given position. You can easily bookmark a > file so that the bookmark opens it with the cursor at position 1, for > example. (And you need not visit a file in order to bookmark it.) > > Finally, a bookmark need not have any `location' field. I understand this. I think it would be useful to have a simple accessible way to effectively disable the point manipulation part of bookmarks. It=E2=80=99s not exactly convenient to edit the bookmark file by hand every time a bookmark is created just to disable this feature. =2D- Jamie --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFNBAEBCAA3FiEElxJbPtj12sn/xkPXc0qyklu3X7MFAl7ujKoZHGJlYXJkc2xl ZWphbWllQGdtYWlsLmNvbQAKCRBzSrKSW7dfs8XFCADCuxv7vP1kzquXMDO9meKP 1BSxG/BE85Y0AtPFj3MMvYcFj+RT3XQkErdQ8jE1QwAxJgE5nQWVtpaXF+/fyWEx 4ytEeYPAEkfTxnp9r7mYonVKuPkWGsqFB+GcHp2x7hRZL3jVHOG48XVzap7uh2fg uQHX8EXDxFNc88qO2SwlvccRDqdHjfmNMl0fIlQIQs/tyXxq/cG/vWeKbMXbOVYc nkL5Ggyw8Gos7mGYcvoV8aoTRuShu7njjJOeugizYNIguyJdrIT8WJrjPiUcMd4g 4erwDFVm0NVtdMjJOpvJMBTqVExpYfW6a4Z9SuAvoTGf90JrYMjz4FbLKTYG5Zfh =BxfX -----END PGP SIGNATURE----- --=-=-=--