From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: Jumping from one position to other position Date: Sat, 5 Dec 2020 13:29:24 -0800 (PST) Message-ID: <2f54a399-a632-4000-97f4-d0775165de9b@default> References: <> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20605"; mail-complaints-to="usenet@ciao.gmane.io" To: Jean Louis , Help GNU Emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 05 22:29:51 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 1klf7m-0005GC-Qx for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 05 Dec 2020 22:29:50 +0100 Original-Received: from localhost ([::1]:50678 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1klf7l-0005XI-UO for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 05 Dec 2020 16:29:49 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45830) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1klf7S-0005Wx-5K for help-gnu-emacs@gnu.org; Sat, 05 Dec 2020 16:29:30 -0500 Original-Received: from aserp2130.oracle.com ([141.146.126.79]:38862) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1klf7P-0004jJ-Of for help-gnu-emacs@gnu.org; Sat, 05 Dec 2020 16:29:29 -0500 Original-Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 0B5LP9xG043410; Sat, 5 Dec 2020 21:29:26 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=92iA1CMhCvbn3cMWXMEuMZZu0cYHsRls2EG5XX5Ek4w=; b=IovshtRQw7MPJxX0SMIYXWHt/C5Cmmpsi5+Cbwc8CLKggSQ6yzeLqpP0cJlnSz12GUTe 5xvIlBpzCOFiO2kFJ6IKwRf0da4lCnu3ea9OuR412oCUHAdWHjuvyeAhayI2CqHfKhqX FL1fsGIVc9H8WScChJAXfU5d30ZpqiXCMgW6my+R1obXXcH8HBBZjr/UEGQTNWugsQ/6 YC4isY5SixaVVg/XTwfki30D+JlzuW5J69zu6DdXUkZGHlksoseaPWNowQEPOfm1tytd 6R1Shq3rQohv6FuF207Y0t98jyu7fsyZZzQPK88eRR+7LFcTXV+YQEVuWUOMYi25hybf 9A== Original-Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by aserp2130.oracle.com with ESMTP id 357yqbhh0g-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Sat, 05 Dec 2020 21:29:25 +0000 Original-Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 0B5LOaYJ163292; Sat, 5 Dec 2020 21:29:25 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserp3030.oracle.com with ESMTP id 35808acq0c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 05 Dec 2020 21:29:25 +0000 Original-Received: from abhmp0015.oracle.com (abhmp0015.oracle.com [141.146.116.21]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 0B5LTORm014567; Sat, 5 Dec 2020 21:29:25 GMT In-Reply-To: <> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.5071.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9826 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 mlxscore=0 mlxlogscore=847 malwarescore=0 phishscore=0 suspectscore=0 spamscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2012050145 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9826 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 mlxlogscore=860 clxscore=1015 malwarescore=0 bulkscore=0 phishscore=0 adultscore=0 spamscore=0 priorityscore=1501 mlxscore=0 lowpriorityscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2012050145 Received-SPF: pass client-ip=141.146.126.79; envelope-from=drew.adams@oracle.com; helo=aserp2130.oracle.com X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, 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-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:126044 Archived-At: > All the time I have to jump from one function to other function. What > I used so far is C-SPC C-SPC to leave mark at the point and deactivate > it. Then I can jump to other places and come back with C-u SPC. >=20 > What I would like is to keep somehow automatically source position as > new mark, when I do C-u SPC at position X that I jump to position Y, > and then from Y with C-u SPC again back to X. >=20 > But Emacs does not work this way. >=20 > 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. (`C-SPC') `C-x C-x' Repeat to move back. `C-g' do deactivate region. There are also libraries that give you ways to browse among the marks, including by choosing the text surrounding them using completion. ___ Icicles does that, for example, with `C-- C-SPC'. Completion candidates are the text lines that include the markers. (`C-- C-SPC' uses only local markers, `C-- C-x C-SPC' uses only global markers, and `C-0 C-SPC' uses all markers). Because these are multi-commands you can trip among any number of markers, in any order, during a single invocation. ___ If you use Isearch+ then you can also have it set the mark at the start point before searching, so you can return to it with `C-x C-x' or `C-u C-SPC'. You can toggle such mark-setting anytime during Isearch using `M-s M-SPC'. (Isearch is often a good way to move around, not just to search.) ___ https://www.emacswiki.org/emacs/Icicles https://www.emacswiki.org/emacs/IsearchPlus