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: [PATCHv3 0/3] Add `notes' function, take three Date: Fri, 21 Jun 2013 14:16:40 +0200 Message-ID: NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1371817035 26268 80.91.229.3 (21 Jun 2013 12:17:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 21 Jun 2013 12:17:15 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier , Juanma Barranquero Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 21 14:17:16 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 1Uq0HE-0002Mn-48 for ged-emacs-devel@m.gmane.org; Fri, 21 Jun 2013 14:17:16 +0200 Original-Received: from localhost ([::1]:58230 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uq0HD-0006wt-M7 for ged-emacs-devel@m.gmane.org; Fri, 21 Jun 2013 08:17:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40245) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uq0H7-0006rE-QF for emacs-devel@gnu.org; Fri, 21 Jun 2013 08:17:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uq0H3-0007yd-IJ for emacs-devel@gnu.org; Fri, 21 Jun 2013 08:17:09 -0400 Original-Received: from mail-ee0-x22d.google.com ([2a00:1450:4013:c00::22d]:35168) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uq0H3-0007yJ-C6 for emacs-devel@gnu.org; Fri, 21 Jun 2013 08:17:05 -0400 Original-Received: by mail-ee0-f45.google.com with SMTP id c1so4559182eek.32 for ; Fri, 21 Jun 2013 05:17:04 -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=gMw3ibdem6zyHA6dilLLvHsByW25CSgUyzJb0k4UV/I=; b=RblKqxPkHK4v6vnA3mpUXkX9j0ty9GGZ87v8cjopohgNuzKbK4AefmHn9wXd3lmjS1 2pqeAN7bD6+EJED/DaxzZcIwmYjtDe9uTT8FQIn6aP/nrWKKkczXPFrP8PpIBBq0rL8u 931bSYkPQ4dhdqJijiY8zRIk1cn3wzu318Wdt9xTLsK7DwB2ZBuzNP6suItfR675HMq4 Z1B8p9uJnRNSbQ+iRqZGdmMyVOVzhGGY7FEgwGRvDNCTqcnW9MJ9F0kwuxNtLktoOqPS D4I8piZw9vqzAaYUD07G+s0zm6jBEgiGehuUUj12EzWpCzTL1Ztwbt9jQhV/zZES483/ zjCg== 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=gMw3ibdem6zyHA6dilLLvHsByW25CSgUyzJb0k4UV/I=; b=LqFk6HlqrRlFz8htROzTGoO2ppDbhb7FhPD5GyiytL8G6nRCyXTR9mV/oNk044DBDL cdDpT32PyoNK6K5hyxca2xjjoDtZAmsylh0kZSbaH6N12ErZybWr3V02E5jkccxY15nk 8xdpJCSyg/AfRW/7U8eGLYcai5f0b2IOTJR/NF70dpVHgPTa5resr5EOzVekBj7sHVgo mkL7RbC1q8diKimZHY9aVfLP+FfsqAq1PB/hZ8X8zOTleBHmAUM2sLCh8VQINzGD8CBd L4vUCekslGolIumHa6LowcnvmnYbsq9EaB2L+3M2Y/cCmZb1WC8vetGQ58AUlcFD15nm /2ag== X-Received: by 10.15.81.136 with SMTP id x8mr12441795eey.4.1371817024158; Fri, 21 Jun 2013 05:17:04 -0700 (PDT) Original-Received: from mpn-glaptop.corp.google.com ([2620:0:105f:301:9083:48af:8870:116f]) by mx.google.com with ESMTPSA id p49sm7416094eeu.2.2013.06.21.05.17.01 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 21 Jun 2013 05:17:02 -0700 (PDT) X-Mailer: git-send-email 1.8.3.1 X-Gm-Message-State: ALoCoQlVdVRDFQ2j81yn56+m78DC/ydU5NC9BAncllapiJ8p2eZg2TjNRgqDNHxZZqLZBNu2DH1Ra7JJuPIO3jEGUArOP0nQGR/IWHj0ciednL1H9i96SuvbB2ajSxgdAJQ36IFtr1+CH8H9kW+EQjpL0+y0fQs/1jhPnnMmjB4eLDp7dOtSPGyDsSfNijwxsyaF+xQEX5sF X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4013:c00::22d 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:160822 Archived-At: All right, the third take for the `notes' function. I've been running this for a couple of days so I'm reasonably sure it won't blow up anyone's computer. ;) Change to kill-buffer allowed an advice to be replaced with a hook, and after looking more closely at remember.el, I think notes might be a good fit for it. Stefan, are you still not convinced, and prefer to have it in ELPA after all? The second patch is actually unrelated, but something I've noticed while playing with notes. Michal Nazarewicz (3): `kill-buffer' runs query functions before checking buffer modification. `remember-append-to-file' appending to buffer bug fix Add `notes' function to store random notes across Emacs restarts. etc/NEWS | 8 ++ lisp/ChangeLog | 31 ++++++++ lisp/startup.el | 3 +- lisp/textmodes/remember.el | 177 ++++++++++++++++++++++++++++++++++++++++++--- lisp/window.el | 8 ++ src/ChangeLog | 8 ++ src/buffer.c | 24 +++--- 7 files changed, 234 insertions(+), 25 deletions(-) -- 1.8.3.1