From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Karl Fogel Newsgroups: gmane.emacs.devel Subject: Re: bug#15329: saveplace restores dired positions to random places Date: Thu, 03 Oct 2013 16:37:09 -0500 Message-ID: <87hacy829m.fsf@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 1380836244 1753 80.91.229.3 (3 Oct 2013 21:37:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Oct 2013 21:37:24 +0000 (UTC) Cc: 15329@debbugs.gnu.org, emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 03 23:37:27 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 1VRqaN-0005kL-4o for ged-emacs-devel@m.gmane.org; Thu, 03 Oct 2013 23:37:27 +0200 Original-Received: from localhost ([::1]:45329 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRqaM-0006NB-Q6 for ged-emacs-devel@m.gmane.org; Thu, 03 Oct 2013 17:37:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39522) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRqaE-0006LN-KF for emacs-devel@gnu.org; Thu, 03 Oct 2013 17:37:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VRqa8-0001YV-BD for emacs-devel@gnu.org; Thu, 03 Oct 2013 17:37:18 -0400 Original-Received: from mail-ie0-x236.google.com ([2607:f8b0:4001:c03::236]:41284) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRqa8-0001YN-67 for emacs-devel@gnu.org; Thu, 03 Oct 2013 17:37:12 -0400 Original-Received: by mail-ie0-f182.google.com with SMTP id aq17so7133898iec.27 for ; 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-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4001:c03::236 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:163836 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