From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bastien Newsgroups: gmane.emacs.bugs Subject: bug#17746: bug#17746: 24.4.50; "byte-code: `recenter'ing a window that does not display current-buffer." when composing a message Date: Sat, 14 Jun 2014 08:46:03 +0200 Message-ID: <87d2ecgf9w.fsf@bzg.ath.cx> References: <837g4o1x3r.fsf@gnu.org> <87r42vlavi.fsf@geodiff-mac3.ulb.ac.be> <87ha3rxx79.fsf@bzg.ath.cx> <87ppifudvd.fsf@tanger.home> <878up24k6j.fsf@yahoo.fr> <878up2ec7z.fsf@tanger.home> <874mzqeaug.fsf__22767.2755755068$1402565401$gmane$org@tanger.home> <87lht2l9vo.fsf__32258.4286136136$1402567739$gmane$org@bzg.ath.cx> <87ioo56k5h.fsf@geodiff-mac3.ulb.ac.be> <8761k46d56.fsf@bzg.ath.cx> <87oaxw9nlh.fsf__3876.62337529964$1402716590$gmane$org@tanger.home> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1402728460 5324 80.91.229.3 (14 Jun 2014 06:47:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 14 Jun 2014 06:47:40 +0000 (UTC) Cc: Nicolas Richard , 17746@debbugs.gnu.org, David Griffiths To: Daimrod Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 14 08:47:33 2014 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 1WvhkR-0002T9-VH for geb-bug-gnu-emacs@m.gmane.org; Sat, 14 Jun 2014 08:47:32 +0200 Original-Received: from localhost ([::1]:34353 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WvhkR-0005Cz-3K for geb-bug-gnu-emacs@m.gmane.org; Sat, 14 Jun 2014 02:47:31 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36660) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WvhkH-00054B-RD for bug-gnu-emacs@gnu.org; Sat, 14 Jun 2014 02:47:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WvhkB-0005eR-IH for bug-gnu-emacs@gnu.org; Sat, 14 Jun 2014 02:47:21 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56003) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wvhjy-0005Oq-Nm; Sat, 14 Jun 2014 02:47:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Wvhjy-0000UZ-4N; Sat, 14 Jun 2014 02:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Bastien Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, emacs-orgmode@gnu.org Resent-Date: Sat, 14 Jun 2014 06:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17746 X-GNU-PR-Package: emacs,org-mode X-GNU-PR-Keywords: Original-Received: via spool by 17746-submit@debbugs.gnu.org id=B17746.14027283791805 (code B ref 17746); Sat, 14 Jun 2014 06:47:02 +0000 Original-Received: (at 17746) by debbugs.gnu.org; 14 Jun 2014 06:46:19 +0000 Original-Received: from localhost ([127.0.0.1]:47152 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WvhjG-0000Sv-70 for submit@debbugs.gnu.org; Sat, 14 Jun 2014 02:46:18 -0400 Original-Received: from mail-s76.mailgun.info ([184.173.153.204]:54998) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WvhjD-0000Sg-9e for 17746@debbugs.gnu.org; Sat, 14 Jun 2014 02:46:15 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=bzg.fr; q=dns/txt; s=pic; t=1402728369; h=From: To: Cc: Subject: In-Reply-To: References: Date: Message-Id: Mime-Version: Content-Type: Sender; bh=jJ1NsouFDoM8eciTLkIKZC4uVFGfCqHnyf36Hp01GG4=; b=nQogNQhY6kpJ99el/TI0Er25rAQiR9YZTbAMAMizVijr7TisBB0xoTB5kVR6bHi4WJ1FsVz0 URkmxJNFzr+kq5qWNdkYjmVivMfB9OpltC4D1M11vbu045uf8NOBFNPSGPU3cebO10EjkizL miZgsUULru4ZeD99WDcLr+aoSYQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=bzg.fr; s=pic; q=dns; h=From: To: Cc: Subject: In-Reply-To: References: Date: Message-Id: Mime-Version: Content-Type: Sender; b=IRRPONBNnGEHcJgmY3A86uT4eNsRGOSjGbu+6pVjFqTO3jErUc2Hxqv1lV826pb6OJLHgA GyW22qF+AsuRQSQHAhBxAHzPm8ITCN1A5hDUih2GqY1n7B/HbSzWdbzSpZsyv/MfoN562wpi URS3FFQJZ6GCNagjh5F3sHeKsMj7o= Original-Received: from bzg.localdomain (mar75-2-81-56-68-112.fbx.proxad.net [81.56.68.112]) by mxa.mailgun.org with ESMTP id 539befb0.59f9f80-in3; Sat, 14 Jun 2014 06:46:08 -0000 (UTC) Original-Received: by bzg.localdomain (Postfix, from userid 1000) id 7F4BC1C20831; Sat, 14 Jun 2014 08:46:03 +0200 (CEST) In-Reply-To: <87oaxw9nlh.fsf__3876.62337529964$1402716590$gmane$org@tanger.home> (daimrod@gmail.com's message of "Sat, 14 Jun 2014 12:28:10 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) X-Mailgun-Sid: WyI5YjE3YyIsICIxNzc0NkBkZWJidWdzLmdudS5vcmciLCAiYTUyYmEiXQ== 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:90366 Archived-At: Daimrod writes: > In `org-fix-ellipsis-at-bol', the change wasn't > : (save-excursion (set-window-start (selected-window) (window-start))) > > but > : (save-excursion (set-window-start (selected-window) (point-min))) > > which is not a noop. > > But it does the wrong thing with isearch. Yes, it was a silly mistake of mine. > When isearch is done, that is, when it has found a match and we leave > isearch with RET for example. Then it calls `isearch-done' which runs > `org-fix-ellipsis-at-bol' because it is in `isearch-mode-end-hook' (I > didn't look to find why). The bug `org-fix-ellipsis-at-bol' is supposed to fix is this one: sometimes when searching for a string and hitting RET, the beginning of the buffer is hidden and there is a confusing "..." at the top of the window. With the previous version (using `recenter'), those ellipsis were removed by recentering. My bold and kinda superstitious hope was that `set-window-start' would have the same effect, but I need to double-check this. At least we don't have the warning. -- Bastien