From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: arthur miller Newsgroups: gmane.emacs.help Subject: RE: Jumping from one position to other position Date: Sat, 5 Dec 2020 22:21:45 +0000 Message-ID: References: , <87sg8jvr7i.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1241"; mail-complaints-to="usenet@ciao.gmane.io" To: Michael Heerdegen , "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 05 23:22:42 2020 Return-path: Envelope-to: geh-help-gnu-emacs@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 1klfww-0000GF-3X for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 05 Dec 2020 23:22:42 +0100 Original-Received: from localhost ([::1]:45978 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1klfwv-0001lr-5Y for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 05 Dec 2020 17:22:41 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54972) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1klfw8-0001kw-Jl for help-gnu-emacs@gnu.org; Sat, 05 Dec 2020 17:21:52 -0500 Original-Received: from mail-db8eur05olkn2101.outbound.protection.outlook.com ([40.92.89.101]:48992 helo=EUR05-DB8-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1klfw4-0005kU-K2 for help-gnu-emacs@gnu.org; Sat, 05 Dec 2020 17:21:51 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PjsY60iKh9RK0hs3+QDByDb/T3o15Oo9DmoPUJ3HdRQ9Syyvo6vxPL4f4zPZeOZ1Pv070ux66bfqCf/kmuKhBDlYTaUlxycD0q0M1Jz7zJgBQUQPI3Vp5nmqJRngWUsN7KIrZjQgHFmxqcZdVK0bHJNhwqbNuqOLbJQa5aLGTTC0XrRBP1YXVE2PXvgG58XgHLVqkMBG6v+TDQUcdiTFqUh00GbuX26L/QkupOrqqQFYaBK5K0qwwZzfrdlmyESVLgDOzT2iZN/5T5WRYoVJ3RhUPUuXAtsa61ngYaBfA2zNJNsj5Qub5N3DQQMV3Og4bR8d1Wc8BZ+1cN7MJdCXOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3q7ezRcQwrmzwwZhOZKX9rwd0qO78ZLdfHc/6SpyPS0=; b=bjVHwwpX4asSltZZlR+vI7Geh7/lwIRUlOZRUbFHJkzzaDRjvw9Wr1K0633kxLkOIplNoVFrtiAzk15iGHU4aQOtIMiXVHpiQ980mKZGZlauaLINhsD7xfdovIt6B4a1SGPzl8mrnt7s+jHdny4R5x3/dLCMZ5EfhPNzaLhP97MCe0T7Vlqhk/8tQ/tgorHqRQADYt+MqC/I9uzL84XkOm8maYfYSyrWlhH12eLKVE+ClOb0eMe0VGg+Bl/0HM1THWZx7YQj8mq3UdXHL8RLzjzUV9pfAoN5ae8LbpKbwJAx5OL15c0VBvZsCHNu4Mh6fziJf3iRmJxkC8ZhV1zzjg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3q7ezRcQwrmzwwZhOZKX9rwd0qO78ZLdfHc/6SpyPS0=; b=VWjNrw5b6pD1vHpWeGukxa/oJkjnBOhNf2mN6rEa6DTvyHfc7ey8sVXUPMqyFBkm6xQ5vv2NmC8vyFsoxPIhd07nTV/SuCzkg4WzBNFfl3vNrJY0sRiSdcIR9IiQpAlHroqOb8/5VOBmcrlbn+bzClJzSqO/sBf+56a5K3M9oZ861xpH1Wkdmat5g1gE4klR6h7Tifj5DtKrSLnDvJsGhrpPlUKAk6wdYkDk/+DhWI6uq0GM2nWzmO/kLb0jfrOqJfAUEpjqKOugS+yTmVQEh98AEhCJcTobJQS4QaaTvER1YG62ztQUbonDGsVBR9J6c/NRmsuhy3A1ovyp0+JdLw== Original-Received: from DB8EUR05FT045.eop-eur05.prod.protection.outlook.com (2a01:111:e400:fc0f::44) by DB8EUR05HT121.eop-eur05.prod.protection.outlook.com (2a01:111:e400:fc0f::154) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3632.17; Sat, 5 Dec 2020 22:21:45 +0000 Original-Received: from AM0PR06MB6577.eurprd06.prod.outlook.com (2a01:111:e400:fc0f::40) by DB8EUR05FT045.mail.protection.outlook.com (2a01:111:e400:fc0f::383) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3632.17 via Frontend Transport; Sat, 5 Dec 2020 22:21:45 +0000 Original-Received: from AM0PR06MB6577.eurprd06.prod.outlook.com ([fe80::9487:8c7d:da00:4993]) by AM0PR06MB6577.eurprd06.prod.outlook.com ([fe80::9487:8c7d:da00:4993%7]) with mapi id 15.20.3632.018; Sat, 5 Dec 2020 22:21:45 +0000 Thread-Topic: Jumping from one position to other position Thread-Index: AQHWyzPD1SW8IHJoGkuIFnpZEtBYcKnpEPapgAACqYI= In-Reply-To: <87sg8jvr7i.fsf@web.de> Accept-Language: sv-SE, en-US Content-Language: sv-SE x-incomingtopheadermarker: OriginalChecksum:603220605A878576F6356F93497694FE8C149DD6B40FC6E7B5E9ED2F4FD79AE3; UpperCasedChecksum:2CC84C76279C62E784299C139BD56E810A5EBA65957D371C1DBE3641FB5F02ED; SizeAsReceived:6867; Count:44 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [nsUhSsdne8z23n8dfybxNtDUYwozLW0y] x-ms-publictraffictype: Email x-incomingheadercount: 44 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: 68fdf06b-c909-47cb-0a55-08d8996c2677 x-ms-traffictypediagnostic: DB8EUR05HT121: x-ms-exchange-minimumurldomainage: github.com#4806 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: ya6DEYJpNHnaIy311u9lqN6zg1diEcQgQbxHjyVI8mt1A8rs7TJAfyghtwW1OFaJC6P24JQ2gOl6ToTwRDj+oVlu5tVrv8mDuktaJVL8JcNZKAwgicVi1kN+wSUUq8TYbaaYQcdrNFSG4lrgtxTaiq3tH5yphl0xSxT9blCr6IgWP08oFyiFVlnabw6oVHiiL982hhEreoaxQ/RlJJdDThMYBJ+WySzx5rZRsTp27fzwq18ma9ab0KBvGTDrvOhc x-ms-exchange-antispam-messagedata: ohgyn++eG/5FrrJI3obgiUtGS6AByb76yB3pVqNO4SPykUPCUVdzzVInDTCbXxxXQfEehHRMUXwfiSFCEOGDDmH9L0X5Votg0sdLSA49I9qhpURMJIeKY30krIT10BrtPC33oXi0JOsGajcQ0UtlVg== x-ms-exchange-transport-forked: True X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-AuthSource: DB8EUR05FT045.eop-eur05.prod.protection.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 68fdf06b-c909-47cb-0a55-08d8996c2677 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Dec 2020 22:21:45.3310 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8EUR05HT121 Received-SPF: pass client-ip=40.92.89.101; envelope-from=arthur.miller@live.com; helo=EUR05-DB8-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:126053 Archived-At: Would this be useful: to you guys? https://www.emacswiki.org/emacs/VisibleBookmarks https://github.com/joodland/bm -------- Originalmeddelande -------- Fr=E5n: Michael Heerdegen Datum: 2020-12-05 23:12 (GMT+01:00) Till: help-gnu-emacs@gnu.org =C4mne: Re: Jumping from one position to other position Jean Louis writes: > If anybody have better way of jumping from one place A to place B and > returning again to place A, and again to place B, let me know. (1) Most obvious: Use two windows. (2) Use registers. I've created "hotkeys" to save and restore 3 positions in 3 registers (I use registers A, B and C for that). One-key sequences, of course, should that be. I chose H-kp-1, C-kp-1, H-kp-2, ... (3) A very smart "go to last change" package would ease that pain. I once tried to implement something, but finding a good heuristic that behaves well under different circumstances is surprisingly hard. (2a) Instead of using registers, you can also use something that jumps to the old position and stores the new one at the same time with one command, a "switch between two places" command so to say. Implementing something like that is obviously easy. I already did and am now using (1) and (2) instead (probably because these are much more general tools, so I have to remember less). Regards, Michael.