From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#12855: 24.2; The Messages buffer stops following the appended lines. Date: Mon, 12 Nov 2012 09:37:47 -0500 Message-ID: References: <50A0C7DA.3080001@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1352731126 9495 80.91.229.3 (12 Nov 2012 14:38:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 12 Nov 2012 14:38:46 +0000 (UTC) Cc: Yves Baumes , 12855@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 12 15:38:56 2012 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 1TXvA7-0000o7-Qm for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Nov 2012 15:38:55 +0100 Original-Received: from localhost ([::1]:43846 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TXv9y-0003ev-CE for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Nov 2012 09:38:46 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:53039) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TXv9t-0003dg-7I for bug-gnu-emacs@gnu.org; Mon, 12 Nov 2012 09:38:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TXv9q-00087h-4N for bug-gnu-emacs@gnu.org; Mon, 12 Nov 2012 09:38:41 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53138) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TXv9q-00087P-0u for bug-gnu-emacs@gnu.org; Mon, 12 Nov 2012 09:38:38 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TXvAE-0002k8-5T for bug-gnu-emacs@gnu.org; Mon, 12 Nov 2012 09:39:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 12 Nov 2012 14:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12855 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12855-submit@debbugs.gnu.org id=B12855.135273109510489 (code B ref 12855); Mon, 12 Nov 2012 14:39:02 +0000 Original-Received: (at 12855) by debbugs.gnu.org; 12 Nov 2012 14:38:15 +0000 Original-Received: from localhost ([127.0.0.1]:35156 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TXv9S-0002j8-Vk for submit@debbugs.gnu.org; Mon, 12 Nov 2012 09:38:15 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:4142) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TXv9Q-0002j0-Qu for 12855@debbugs.gnu.org; Mon, 12 Nov 2012 09:38:13 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAG6Zu09sr+ZY/2dsb2JhbABEtBGBCIIVAQEEAVYjBQsLNBIUGA0kiBwFugmQRAOIQppxgViDBw X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="206973797" Original-Received: from 108-175-230-88.dsl.teksavvy.com (HELO pastel.home) ([108.175.230.88]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 12 Nov 2012 09:37:47 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 335D05978D; Mon, 12 Nov 2012 09:37:47 -0500 (EST) In-Reply-To: <50A0C7DA.3080001@gmx.at> (martin rudalics's message of "Mon, 12 Nov 2012 10:56:42 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-Spam-Score: 0.8 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-Spam-Score: 0.8 (/) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.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:66793 Archived-At: > Since this bug constitutes a considerable annoyance and a regression wrt > 23.4 I'd like to install the attached patch on the Emacs 24 branch. It > principally only adds the necessary TYPE argument to the `copy-marker' > calls but looks more complex because I have to do this in the right > buffer and therefore rearranged the code a bit. OK to install? Yes. > - (let ((start (window-start window)) > - (point (window-point window))) > - (setq entry > - (cons buffer > - (if entry > - ;; We have an entry, update marker positions. > - (list (set-marker (nth 1 entry) start) > - (set-marker (nth 2 entry) point)) > - ;; Make new markers. > - (list (copy-marker start) > - (copy-marker point))))) > - > + (let* ((start > + (if entry > + (set-marker (nth 1 entry) (window-start window)) > + (copy-marker (window-start window)))) > + (point > + (if entry > + (set-marker (nth 2 entry) (window-point window)) > + (copy-marker > + ;; Preserve window-point-insertion-type (Bug#12855). > + (window-point) window-point-insertion-type)))) > (set-window-prev-buffers > - window (cons entry (window-prev-buffers window)))))))) > + window > + (cons (list buffer start point) > + (window-prev-buffers window)))))))) I don't understand why you massaged the code this way instead of just adding window-point-insertion-type to the last copy-marker call, but I presume there's a good reason. Stefan