From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: Temporary notes in Emacs buffers? Date: Tue, 31 Dec 2019 20:45:49 -0800 (PST) Message-ID: <65742f83-393a-4df2-9562-7c500b40adcd@default> References: <87zhfecbpt.fsf@mbork.pl> <87sgl0osts.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="150661"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Help Gnu Emacs mailing list To: Michael Heerdegen , Marcin Borkowski Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jan 01 05:46:25 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1imVto-000d1f-Cu for geh-help-gnu-emacs@m.gmane.org; Wed, 01 Jan 2020 05:46:24 +0100 Original-Received: from localhost ([::1]:48372 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1imVtm-0005Da-Ii for geh-help-gnu-emacs@m.gmane.org; Tue, 31 Dec 2019 23:46:22 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45609) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1imVtd-0005DU-EP for help-gnu-emacs@gnu.org; Tue, 31 Dec 2019 23:46:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1imVtc-0008K9-0v for help-gnu-emacs@gnu.org; Tue, 31 Dec 2019 23:46:13 -0500 Original-Received: from userp2120.oracle.com ([156.151.31.85]:47370) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1imVtb-0008Gz-NZ for help-gnu-emacs@gnu.org; Tue, 31 Dec 2019 23:46:11 -0500 Original-Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id 0014fTwv018085; Wed, 1 Jan 2020 04:46:08 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2019-08-05; bh=QQNDmZgJ9v7ne2FUz3q1gd2ex0Uqx6rKAc/n9dWiPwU=; b=mKGdx8V74IzhjeDoonedWO73w0hIjyb0rpyaPVFR++6rpZBqQdZIgwfbQG/egBCGMqPG kv/eRal4olCJUE32IMrfkx8jsDkChqiZd71+FH7S4HSb1hBEQqAasRBpr/331cG8vKTy jKLgXFYCeR71q4Ok03Nwk+nmWzeEKVL+AUYEBVyHWgt+q3OqLCtTiUhmPURnh8p3RefK Sv1fqg43Vo5DCCaYNah0lMCIN9neZgEhl/FHI8V5GGLXXRPh4YqJnBHMumVqGDhLZFlH 18RGOlVQiXSY8YxW+6TA2/xm5Q+IH8oPtJ6qVp5xfp8ZMxSvQEwnjxY7peyoneMqq3Vi BQ== Original-Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by userp2120.oracle.com with ESMTP id 2x5ypqk62b-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 01 Jan 2020 04:46:07 +0000 Original-Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.27/8.16.0.27) with SMTP id 0014dEnP051115; Wed, 1 Jan 2020 04:46:07 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userp3030.oracle.com with ESMTP id 2x8gj95tx5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 01 Jan 2020 04:46:07 +0000 Original-Received: from abhmp0002.oracle.com (abhmp0002.oracle.com [141.146.116.8]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 0014joxG014070; Wed, 1 Jan 2020 04:45:55 GMT In-Reply-To: <87sgl0osts.fsf@web.de> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4939.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9487 signatures=668685 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-1911140001 definitions=main-2001010041 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9487 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1911140001 definitions=main-2001010041 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] [fuzzy] X-Received-From: 156.151.31.85 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.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:122118 Archived-At: > I also considered to implement something like that several times. >=20 > We could use overlays to assign the positions and overlay properties to > store note texts and metadata. When a buffer is edited, the overlay > begin and end marker positions are updated by Emacs on the fly. I > would use after-save-hook or so to make Emacs save that stuff=20 > automatically for every file save. Where it is saved would be (file=20 > locally) configurable: in a file local variable, in a directory local=20 > variable, or in a configurable central place. >=20 > When you open a file, a minor-mode-hook would arrange that everything > is restored. >=20 > There would also be a variant for dired buffers to attach notes to > whole files. FWIW: Marcin said he wasn't interested, but Bookmark+ really does offer all of that already. Locations (single position or start+end) of such "notes" (bookmarks) can be automatically highlighted. You can cycle next/previous. You can hit a key to edit the content (annotation). Or access any by its name. (Names can also be autogenerated.) [You can also bookmark a multi-region - a set of zones in a file (or across multiple files). In that case, you have a single annotation for the whole set. (You can have any number of such sets.)] Bookmarks are pretty flexible. You can use them in lots of different ways.