From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michal Nazarewicz Newsgroups: gmane.emacs.devel Subject: [PATCHv4 0/4] Add `remember-notes' function Date: Mon, 24 Jun 2013 14:35:44 +0200 Message-ID: NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1372077398 24078 80.91.229.3 (24 Jun 2013 12:36:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 24 Jun 2013 12:36:38 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 24 14:36:39 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ur60a-0003VT-5G for ged-emacs-devel@m.gmane.org; Mon, 24 Jun 2013 14:36:36 +0200 Original-Received: from localhost ([::1]:36163 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ur60Z-0000A2-Os for ged-emacs-devel@m.gmane.org; Mon, 24 Jun 2013 08:36:35 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46470) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ur60Q-0008O6-GI for emacs-devel@gnu.org; Mon, 24 Jun 2013 08:36:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ur60L-0004VS-OB for emacs-devel@gnu.org; Mon, 24 Jun 2013 08:36:26 -0400 Original-Received: from mail-la0-x231.google.com ([2a00:1450:4010:c03::231]:59424) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ur60L-0004T5-EQ for emacs-devel@gnu.org; Mon, 24 Jun 2013 08:36:21 -0400 Original-Received: by mail-la0-f49.google.com with SMTP id ea20so10037935lab.22 for ; Mon, 24 Jun 2013 05:36:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer; bh=2p1kY8yeBlcvfbKxEVH1qVrSR1lNZ59d5ZjXGz3/8xg=; b=iNIGD17PkgUsD8bzWYCt1ww8WJaIfJaC9hAaCa8VBFQPceRzC4zKPssRDHEPNE/Q0S teYIU4ECWUj6o5ix/qJ/g6d7RWpT5klbiKFhH/x+EuGqUnVR7MqlM5hCcReMh6vVOJU8 Rv+Whyss5GZDqFT1fPMAk015R/Zy/vXdTbRSL6OgHfvU9jfwKDo16jkUqu27A3m3RDYk X/G+3/FSUn3rLeS1z36hnAraCyqn8NdnFzQc3BNHLbvigw50lU5czbnN2OLIPxSsY/4h 2iGg6MH1kWHcyXKhCoVfW5Uy2sr71aungDBK6tqF6lY4CxpswMy+8gABXfPML6Xw7MLP 3JxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state; bh=2p1kY8yeBlcvfbKxEVH1qVrSR1lNZ59d5ZjXGz3/8xg=; b=GLaFYGaGVAUHTOYcAvVPCfCfGXsHJeBSccsygOdtPLtLhIjVnpqpgGNetwUnrsZznr YNd/UprfY3whFlje1ujBGn3SDa8HrO+6w9xCrjv/4fUVtmIOb5VqOKF8dO3gzoV32U9o wObb+SBbWWM7TS7Xduhn040ZaiStU+f2drpw13Q1txmnnGK94qm8rMQXeI3GLHo6cFP9 xZyqTym34s0WPrjYlJJDtDoUIkcB9pjpYrxN305sfeW47wRf7mPxlyEE6Bgt4E4RO9bk noeg1pvh28kyIUblLcnyyLjO4YtwG3G97xg5wUK9Q/44PMR00OMe4is257lRRRrwOmji dO0w== X-Received: by 10.152.120.228 with SMTP id lf4mr11431543lab.65.1372077380037; Mon, 24 Jun 2013 05:36:20 -0700 (PDT) Original-Received: from mpn-glaptop.corp.google.com ([2620:0:105f:301:2ddc:c978:be37:615e]) by mx.google.com with ESMTPSA id u1sm6672296lag.5.2013.06.24.05.36.18 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 24 Jun 2013 05:36:19 -0700 (PDT) X-Mailer: git-send-email 1.8.3.1 X-Gm-Message-State: ALoCoQmrrQe9wHoSQNQRjQo5FwrX+m5uJtHgp6z2AwFL2MQsgFLz2XzVe4ex1HWFnBYLYK0+iKvLLQwk630n4uNb9dYbHrEje2z3x6yocd46ezkSxyJ6ofIkEZg6FyCdssOcNLLlGzieCzP4faYiEQZjBV4w5ys4JpDyCoxGttpkLyQc0WubLbrbAILNm0oprkNsKAvv9Ky1 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::231 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:160930 Archived-At: Most importantly, compared to version 3, this version removes the `notes-file' defucstom and replaces loading of the notes file with a call to `find-file-noselect' (both suggested by Stefan). I've also ripped out auto-save handlling since `find-file-noselect' should now handle this like it does with other files. The second and fourth patch are unrelated to the remember-notes function and are just things that I've noticed while looking through the code. Michal Nazarewicz (4): `kill-buffer' runs query functions before checking buffer modification. `remember-append-to-file' appending to buffer bug fix Add `remember-notes' function to store notes across Emacs restarts. Simplify conditional expression in `find-file-noselect'. etc/NEWS | 8 +++ lisp/ChangeLog | 31 +++++++++++ lisp/files.el | 13 +++-- lisp/startup.el | 3 +- lisp/textmodes/remember.el | 129 ++++++++++++++++++++++++++++++++++++++++----- lisp/window.el | 8 +++ src/ChangeLog | 8 +++ src/buffer.c | 24 ++++----- 8 files changed, 192 insertions(+), 32 deletions(-) -- 1.8.3.1