From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Karl Fogel Newsgroups: gmane.emacs.bugs Subject: bug#15329: saveplace restores dired positions to random places Date: Thu, 03 Oct 2013 16:37:09 -0500 Message-ID: <87hacy829m.fsf__20349.6143375107$1380836306$gmane$org@floss.red-bean.com> References: <87mwnj1414.fsf@mail.jurta.org> <8761u6ow6t.fsf@kwarm.red-bean.com> <87d2odvk36.fsf@mail.jurta.org> Reply-To: Karl Fogel NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1380836297 2339 80.91.229.3 (3 Oct 2013 21:38:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Oct 2013 21:38:17 +0000 (UTC) Cc: 15329@debbugs.gnu.org, emacs-devel@gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 03 23:38:19 2013 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 1VRqbD-0006Ou-7J for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Oct 2013 23:38:19 +0200 Original-Received: from localhost ([::1]:45331 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRqbC-0006w5-RT for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Oct 2013 17:38:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39815) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRqb3-0006uJ-Ud for bug-gnu-emacs@gnu.org; Thu, 03 Oct 2013 17:38:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VRqaw-0001kS-Ue for bug-gnu-emacs@gnu.org; Thu, 03 Oct 2013 17:38:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44200) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRqaw-0001kO-RK for bug-gnu-emacs@gnu.org; Thu, 03 Oct 2013 17:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VRqaw-0000sK-Bh for bug-gnu-emacs@gnu.org; Thu, 03 Oct 2013 17:38:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Karl Fogel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 03 Oct 2013 21:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15329 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 15329-submit@debbugs.gnu.org id=B15329.13808362353298 (code B ref 15329); Thu, 03 Oct 2013 21:38:02 +0000 Original-Received: (at 15329) by debbugs.gnu.org; 3 Oct 2013 21:37:15 +0000 Original-Received: from localhost ([127.0.0.1]:52491 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VRqaB-0000r8-5S for submit@debbugs.gnu.org; Thu, 03 Oct 2013 17:37:15 -0400 Original-Received: from mail-ie0-f170.google.com ([209.85.223.170]:36970) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VRqa8-0000qx-Aa for 15329@debbugs.gnu.org; Thu, 03 Oct 2013 17:37:14 -0400 Original-Received: by mail-ie0-f170.google.com with SMTP id x13so7257838ief.29 for <15329@debbugs.gnu.org>; Thu, 03 Oct 2013 14:37:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:reply-to:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=Aa6cCtloVJhupzXw7ceNR1UYjTWoaZ+bQayThXlmkdA=; b=mQQVzn4tIF//MiZtC7uUj8nq3aFr6mBPNRbfT8UDh+RxQi2Cgw35MnhQz907t4yX7k 2W5oWJ5jiR1Y/ZhdljH+2SD+FxYlAWthVyXDIHDE9KDSYkw5GDLLZy5i0OX4i3CdujKu O7Hj5dU3SgW1pxHMbvFLJnWPoXTqTRUvBYAzOSh1b0VmbmNrOdgL934eekLex4uxvoWh 0fkMcgR5eoVSMT+Paxyx0PJMlsYkaPKH8SOG5fHwcPn1CmP5bdwXVX7J6IJQN983oT7p 6iqe/jx/3XbsJDT5Q+oPMj9N3P/WrZfTjcHmPl2UQIs1x9AHO8um0z0vDVipOU+qDd8L /5WA== X-Received: by 10.42.12.80 with SMTP id x16mr2561955icx.56.1380836231405; Thu, 03 Oct 2013 14:37:11 -0700 (PDT) Original-Received: from floss.red-bean.com (74-92-190-113-Illinois.hfc.comcastbusiness.net. [74.92.190.113]) by mx.google.com with ESMTPSA id w4sm2574081igb.5.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 03 Oct 2013 14:37:10 -0700 (PDT) In-Reply-To: <87d2odvk36.fsf@mail.jurta.org> (Juri Linkov's message of "Thu, 12 Sep 2013 23:52:29 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) 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:78908 Archived-At: Juri Linkov writes: >> The modern format would have a more extensible structure, similarly to how >> bookmark.el does it. Say, a sublist whose first element is the type of >> the record, and the rest of which is the data for that record. > >Do you think it would be possible to use the existing >infrastructure of bookmark.el, so for instance, to save >a place in an Info manual, saveplace.el could call >`Info-bookmark-make-record' and to restore it with >`Info-bookmark-jump'. This would be better than adding >a third hook for saveplace (the second existing hook >is desktop-specific like `Info-desktop-buffer-misc-data' >and `Info-restore-desktop-buffer'). Yes; since both saveplace and bookmark are in the standard Emacs dist, it's fine for them to share code, and would improve maintainability. I'm not sure when I'll get a chance to work on this, though. The original bug here is about saving/restoring position in dired buffers. While the current rather random behavior in dired is obviously a bug, and fixing it would be a Good Thing, I'm not sure it rises to the level where I drop other things to work on it :-). However, if someone were to write a patch (along the lines described in this bug report), I'd certainly commit to reviewing it. Best, -Karl