From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: associating bookmarks with paragraphs Date: Tue, 11 Dec 2018 08:03:02 -0800 (PST) Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1544545176 13919 195.159.176.226 (11 Dec 2018 16:19:36 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 11 Dec 2018 16:19:36 +0000 (UTC) To: Michael Maurer , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 11 17:19:32 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gWkks-0003UM-K5 for geh-help-gnu-emacs@m.gmane.org; Tue, 11 Dec 2018 17:19:30 +0100 Original-Received: from localhost ([::1]:39806 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gWkmz-00007X-0B for geh-help-gnu-emacs@m.gmane.org; Tue, 11 Dec 2018 11:21:41 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55757) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gWkVO-0000d5-J6 for help-gnu-emacs@gnu.org; Tue, 11 Dec 2018 11:03:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gWkVI-000889-SG for help-gnu-emacs@gnu.org; Tue, 11 Dec 2018 11:03:30 -0500 Original-Received: from userp2130.oracle.com ([156.151.31.86]:51750) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gWkVI-00082X-Hf for help-gnu-emacs@gnu.org; Tue, 11 Dec 2018 11:03:24 -0500 Original-Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id wBBFreko122722; Tue, 11 Dec 2018 16:03:12 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-2018-07-02; bh=oy3u0tFDWgBGuBiRhKioMjOnE0TFS6NovnV8JqlF/3Y=; b=XBVLQYvQzp9Tr7cQHr0nTNy5Yv8OrA1RMQJMhJCN/VIvJ8IFD18W6MiAqt1Wall0oBAe Pgf8qaUpW+omdmBtMV4AZK/+y7ttb4QycRdt3tyMIIKbgoSAybuULUk2EVndpIvIVkF5 z1wPzJahTtOQI1gMvYqSHnvNsKBD3WL+IG3u68QoWppfsJCIZtCydJHPWZmcZNzTo5NA A4TJKHhU6Egrz26DTcK1ulartuXrqZmOpAOiFFRZC/M2f6Rp77xXU10pZvBMp/C/u1a4 88af4fBY4FHMbNxCjBClQqeqYHdZLqaGRs+hwGaLQhlbYipElWPQRPZDHbrDrgb+pgpA 7Q== Original-Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp2130.oracle.com with ESMTP id 2p85cu4s5b-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 11 Dec 2018 16:03:12 +0000 Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id wBBG36f4023665 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 11 Dec 2018 16:03:06 GMT Original-Received: from abhmp0017.oracle.com (abhmp0017.oracle.com [141.146.116.23]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id wBBG35St019131; Tue, 11 Dec 2018 16:03:06 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4771.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9103 signatures=668679 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1812110144 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] [fuzzy] X-Received-From: 156.151.31.86 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:118966 Archived-At: > Yes, this is what I was aiming at. I'll give it a try. > Just one question: How is Emacs able to determine the relevancy of > context? I guess this only works with writing code? Doesn't this go > into semantics? I'm probably mistaking "context" for something far > more complicated here. As I said, the bookmark records text immediately before and after the bookm= arked position (or positions, if recording a region). When you jump to a bookmarked position, it looks for a match of the recorde= d text that was before and after the recorded position. If a match is foun= d elsewhere (not at the recorded position) then it jumps to that found matc= h position and asks you if you want to record that (i.e., update the bookma= rked position and context text).