From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: npostavs@users.sourceforge.net Newsgroups: gmane.emacs.bugs Subject: bug#25656: [PATCH] 25.1; remember-notes-mode makes every temporary buffer created from it unkillable Date: Fri, 24 Feb 2017 20:16:02 -0500 Message-ID: <87innzf4tp.fsf@users.sourceforge.net> References: <20170224074034.GA615@odonien.localdomain> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1487985319 4961 195.159.176.226 (25 Feb 2017 01:15:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 25 Feb 2017 01:15:19 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) Cc: 25656@debbugs.gnu.org To: Vasilij Schneidermann Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 25 02:15:14 2017 Return-path: Envelope-to: geb-bug-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 1chQx3-0000OQ-Oi for geb-bug-gnu-emacs@m.gmane.org; Sat, 25 Feb 2017 02:15:09 +0100 Original-Received: from localhost ([::1]:40864 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1chQx8-0002jv-2A for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 Feb 2017 20:15:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50990) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1chQx1-0002iI-U7 for bug-gnu-emacs@gnu.org; Fri, 24 Feb 2017 20:15:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1chQwx-0004jO-00 for bug-gnu-emacs@gnu.org; Fri, 24 Feb 2017 20:15:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56834) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1chQww-0004jG-S0 for bug-gnu-emacs@gnu.org; Fri, 24 Feb 2017 20:15:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1chQww-0001UN-Gc for bug-gnu-emacs@gnu.org; Fri, 24 Feb 2017 20:15:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: npostavs@users.sourceforge.net Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 25 Feb 2017 01:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25656 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25656-submit@debbugs.gnu.org id=B25656.14879852975697 (code B ref 25656); Sat, 25 Feb 2017 01:15:02 +0000 Original-Received: (at 25656) by debbugs.gnu.org; 25 Feb 2017 01:14:57 +0000 Original-Received: from localhost ([127.0.0.1]:55033 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1chQwr-0001Tp-GV for submit@debbugs.gnu.org; Fri, 24 Feb 2017 20:14:57 -0500 Original-Received: from mail-it0-f46.google.com ([209.85.214.46]:35865) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1chQwo-0001Tb-SK for 25656@debbugs.gnu.org; Fri, 24 Feb 2017 20:14:55 -0500 Original-Received: by mail-it0-f46.google.com with SMTP id h10so34597335ith.1 for <25656@debbugs.gnu.org>; Fri, 24 Feb 2017 17:14:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=jr0gWQMJyIEG8oM860+maLaZ6IjXrMgqp8xraCf772k=; b=bYtre68rNhENG0DhUza5lqQDuQf7AsiW8wrSuVxwkg883CaINu91yHF/ZMjbiP2/N7 0+eOFcUYZwDI/ixHHnP+jK3pg27TBQ7U9q8/JgZVWModAes1OoiUF8RZxoWpES8ivzHl mF1+LqhYZ9LSpVgOKmyoigMaHNtFplHeVICAaIYsLe0Fez4aRNbU6atTxbTBczK3khBA NTl4KBAVpcq4iCpuPGgaR6wFOa6rIdVgk1AZzECrGlIWM1+mPGVZWvesUptV7MxEh/RF zFRk5JUndwmgLQCwwcLfZn+FKK6ijRZQF6fZXBspikKObnmN3GBKlePM4SuKw2Us8Is8 uZIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=jr0gWQMJyIEG8oM860+maLaZ6IjXrMgqp8xraCf772k=; b=Ptmp9TTxVmkNyrwdloD1uOXhhiJtsQpJy6yGbyDvUsaE2WjR4M+/KJkaQ8EWuMFnIW G5HrDRJjQSaUlrP8V/KCY/IS0wmCw4MhAFFw3WThMww3/fMJecE8hGBs2l9RAYS9AynS 0KdxdCXPIXsKNjRp+fnjZkap7hGcpCaNIUQRjP5I0gv4x8TqfirqG1LeWDcdDtTV3D2G /PUnMY+ZYw0NgfFjrT0tle+EkpuYzAcZad/3nS4p2OG12zKAaa3/H1pHgqgUjxbd+xFa uk2veenOAajGbLcR01euxt7zvnvW4XrmJcEvxu+1egfL5kMXJLV4PcFR0QitGt9FM/CC xczw== X-Gm-Message-State: AMke39lo9m79OVpe5c+z/XuwClrkjYoLcMQvmuMhtfev+ayv83UHpttwpjmpv8aKBrPiaw== X-Received: by 10.36.67.133 with SMTP id s127mr5502684itb.57.1487985289417; Fri, 24 Feb 2017 17:14:49 -0800 (PST) Original-Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id j14sm1472867itd.0.2017.02.24.17.14.47 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 24 Feb 2017 17:14:48 -0800 (PST) In-Reply-To: <20170224074034.GA615@odonien.localdomain> (Vasilij Schneidermann's message of "Fri, 24 Feb 2017 08:40:34 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:129752 Archived-At: Vasilij Schneidermann writes: > I wrote a simple patch for merely checking whether the buffer about to > be killed happens to be the remember-notes buffer. I think that's a sensible change, but doesn't the fact that remember-mode adds the hook buffer-locally mean that temp buffers (or any other buffers) aren't affected? (add-hook 'kill-buffer-query-functions 'XXXX nil t) (with-temp-buffer kill-buffer-query-functions) ;=> (process-kill-buffer-query-function)