From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#20832: 25.0.50; todo-show accidentally deleted my todo file. Date: Fri, 19 Jun 2015 17:15:36 +0200 Message-ID: <87egl7ivaf.fsf@gmx.net> References: <86h9q67v0w.fsf@members.fsf.org> <87fv5pcogr.fsf@gmx.net> <5582B0F5.30303@members.fsf.org> <5583BA26.10709@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1434726989 10172 80.91.229.3 (19 Jun 2015 15:16:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Jun 2015 15:16:29 +0000 (UTC) Cc: Nicolas Richard , 20832@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 19 17:16:18 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1Z5y1c-0007WV-1B for geb-bug-gnu-emacs@m.gmane.org; Fri, 19 Jun 2015 17:16:12 +0200 Original-Received: from localhost ([::1]:58616 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5y1b-0005VV-CC for geb-bug-gnu-emacs@m.gmane.org; Fri, 19 Jun 2015 11:16:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37021) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5y1X-0005Sj-0I for bug-gnu-emacs@gnu.org; Fri, 19 Jun 2015 11:16:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z5y1T-0005s9-Qo for bug-gnu-emacs@gnu.org; Fri, 19 Jun 2015 11:16:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50654) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5y1T-0005ry-4Y for bug-gnu-emacs@gnu.org; Fri, 19 Jun 2015 11:16:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Z5y1S-0007eL-Rr for bug-gnu-emacs@gnu.org; Fri, 19 Jun 2015 11:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 19 Jun 2015 15:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20832 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20832-submit@debbugs.gnu.org id=B20832.143472694629379 (code B ref 20832); Fri, 19 Jun 2015 15:16:02 +0000 Original-Received: (at 20832) by debbugs.gnu.org; 19 Jun 2015 15:15:46 +0000 Original-Received: from localhost ([127.0.0.1]:52100 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z5y1B-0007dl-Ly for submit@debbugs.gnu.org; Fri, 19 Jun 2015 11:15:46 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:62046) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z5y1A-0007dX-0S for 20832@debbugs.gnu.org; Fri, 19 Jun 2015 11:15:44 -0400 Original-Received: from rosalinde ([89.245.121.189]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0LiY3U-1YY1J73HtE-00cliU; Fri, 19 Jun 2015 17:15:37 +0200 In-Reply-To: <5583BA26.10709@gmx.at> (martin rudalics's message of "Fri, 19 Jun 2015 08:43:50 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-Provags-ID: V03:K0:PAUAzTmnSX8L7sRKMSZK4jMc+qwJQJuhXuNHQR5Tz2E4ste4wht GxxHrF8LSoWm7dioeStooeWCNZWlLJZtrU2yzRXkD06On/wPqiIQ1CoYTdrQtQJo6yS3wN+ qxm9NqBon7w72cMph9odS1HiWVOGDVVE/Z0ijna6ALD3flkjUmew3hCq3ZM8M4pNDEergVf npNtsudTlmGiApMl4kGIg== X-UI-Out-Filterresults: notjunk:1;V01:K0:V9eZ6DgF88E=:wOmrOpBTrF6Es8xOGVjy1o K2w1krarEQ2KRXk4J9tSwPElRyBg4MphIit6GF0GRIp2ra86YLpSSb48/wnMrS3hu3Mk+zEtj bI1kNuQs33kLPZxnIZqAWGxo3xL1d+0mGI+IOpe2AcEBfmpPuFi6hk790POZG5kTJhgPfkTnZ CFs1y3JgbSXt8Khx/m6qqN65Avi28FpmNxMQjXOWdwFV3Ac4fPLD82jqBePA5weCcw0FpB/AW 3BrUS3nHnQlrtFBveaQ0+sOCisLxdC44XpMBe6Hk2xloYhT2/cjVQoJvDAu2arI1VpLBmQ+2Z rbYKCaGWChqUvs+w+0a3vi1AD9+j04wJWCvXHAKcDe6MSpygjjN8S/3OoFU5IRL0QvqcGKTOe mH4WYLorM73z9X1wNEdRqh8+95mMyQzin/xp+3aLywGzeXsWcbrdVPO+qVn9Nn0jQRudfZw20 aBHGwpaT3bu6/KPRHDJ7MQc/UyVEEp45DNo6+eJ6LNuFqXJ1smmObUs4njEcIiedXgt3UFNL0 ytfVNdRoNvROYvkNDavoustJk+0hKyWlyTUrSmn9aJTW78nE5zC2OMBXZ4WKymvZEz8cPa8d0 jKnTDgZeVkT1roONPo7Ren3QHpyBJ8JRCkeVS1I+FaG/EirfXQ8dNVhoV8vSyp9wXOEcambBF ARSjCE0vi8ME+0p/TKWgVocsLCPpt1OQqhvfUFbmmBg1sqCjwtwBeis9J/hJnMdJF8y4= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:104121 Archived-At: On Fri, 19 Jun 2015 08:43:50 +0200 martin rudalics wrote: >> This is bad :'( It seems one should not change the buffer in a minibuffer >> window. Perhaps it would be good if this was documented in >> the docstring of set-window-buffer. > > You should use =E2=80=98set-window-buffer=E2=80=99 in application program= s only if you > know what you're doing. From the Elisp manual: > > When writing an application, you should normally use the > higher-level functions described in *Note Switching Buffers::, > instead of calling `set-window-buffer' directly. Is this a change from previous policy? In earlier versions of todo-mode.el I had several instances of switch-to-buffer, but some time ago replaced them with set-window-buffer and I'm pretty sure I did that because I was given to understand that programmatic use of switch-to-buffer was discouraged. If this is no longer the case (or if I was mistaken back then), I'll have check (when I have time) all of the uses of set-window-buffer in todo-mode.el for unanticipated side effects. > While the minibuffer window is selected, =E2=80=98minibuffer-selected-win= dow=E2=80=99 > can be used to get the previously selected window. Thanks. Steve Berman