From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/60068 Path: news.gmane.org!not-for-mail From: Klaus Zeitler Newsgroups: gmane.emacs.pretest.bugs,gmane.emacs.gnus.general Subject: Re: gnus-carpal-mode and mouse-autoselect-window Date: Wed, 30 Mar 2005 13:01:23 +0200 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1112183638 16745 80.91.229.2 (30 Mar 2005 11:53:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 30 Mar 2005 11:53:58 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org Original-X-From: emacs-pretest-bug-bounces+gebp-emacs-pretest-bug=gmane.org@gnu.org Wed Mar 30 13:53:55 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DGblL-00017I-7S for gebp-emacs-pretest-bug@gmane.org; Wed, 30 Mar 2005 13:53:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DGc1p-0000hp-0g for gebp-emacs-pretest-bug@gmane.org; Wed, 30 Mar 2005 07:10:33 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DGbUV-0002tR-TC for emacs-pretest-bug@gnu.org; Wed, 30 Mar 2005 06:36:08 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DGbUO-0002se-Cg for emacs-pretest-bug@gnu.org; Wed, 30 Mar 2005 06:36:01 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DGbMQ-0002L0-C6 for emacs-pretest-bug@gnu.org; Wed, 30 Mar 2005 06:27:47 -0500 Original-Received: from [192.11.226.161] (helo=hoemail1.lucent.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DGawz-000801-S1 for emacs-pretest-bug@gnu.org; Wed, 30 Mar 2005 06:01:30 -0500 Original-Received: from nbgif1.de.lucent.com (h135-246-31-82.lucent.com [135.246.31.82]) by hoemail1.lucent.com (8.12.11/8.12.11) with ESMTP id j2UB1P0D027950; Wed, 30 Mar 2005 05:01:26 -0600 (CST) Original-Received: from sfsws1.de.lucent.com (sfsws1 [135.246.31.38]) by nbgif1.de.lucent.com (8.11.7p1+Sun/8.11.7) with ESMTP id j2UB1OG19448; Wed, 30 Mar 2005 13:01:24 +0200 (MEST) Original-Received: from sfsw51.de.lucent.com (sfsw51 [135.246.72.99]) by sfsws1.de.lucent.com (8.11.7p1+Sun/8.8.5) with ESMTP id j2UB1Nr29156; Wed, 30 Mar 2005 13:01:24 +0200 (MEST) Original-Received: (from kzeitler@localhost) by sfsw51.de.lucent.com (8.11.7p1+Sun/8.8.8) id j2UB1Ni23424; Wed, 30 Mar 2005 13:01:23 +0200 (MEST) X-Authentication-Warning: sfsw51.de.lucent.com: kzeitler set sender to kzeitler@lucent.com using -f Original-To: Ding List X-Drdoom-Fodder: security passwd satan crypt CERT In-Reply-To: (Reiner Steib's message of "Thu, 24 Feb 2005 22:02:19 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (usg-unix-v) X-BeenThere: emacs-pretest-bug@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: emacs-pretest-bug.gnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-pretest-bug-bounces+gebp-emacs-pretest-bug=gmane.org@gnu.org Errors-To: emacs-pretest-bug-bounces+gebp-emacs-pretest-bug=gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.pretest.bugs:6665 gmane.emacs.gnus.general:60068 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:60068 >>>>> "Reiner" == Reiner Steib writes: Reiner> Reiner> Or did you mean to add (goto-char (point-min)) _after_ the `if' Reiner> clause? >> >> I've added it right at the end of the save-excursion, i.e. the function >> ends like this: >> --- snip --- >> (set-window-point (get-buffer-window (current-buffer)) >> (point-min))) >> (goto-char (point-min)) >> )))) >> --- snip --- Reiner> Reiner> Thus it is only done if the `set-window-point' statement is also Reiner> executed. I would guess that the `set-window-point' statement Reiner> should already do this, but maybe I'm missing something. I finally found some time to debug this and would like to clarify one thing before I set this problem aside. It seems to me as if set-window-point and goto-char don't do the same thing. set-window-point basically executes the following statements: --- snip --- if (w == XWINDOW (selected_window) && XBUFFER (w->buffer) == current_buffer) Fgoto_char (pos); else set_marker_restricted (w->pointm, pos, w->buffer); --- snip --- when called from gnus-carpal-setup-buffer, XWINDOW(selected_window) is true, but (XBUFFER (w->buffer) == current_buffer) is false. Thus set_marker_restricted is called and not goto_char. It's not clear to me what the function set_marker_restricted does and if that does what is expected to be done when called in gnus-carpal-setup-buffer. Klaus -- ------------------------------------------ | Klaus Zeitler Lucent Technologies | | Email: kzeitler@lucent.com | ------------------------------------------ --- For perfect happiness, remember two things: (1) Be content with what you've got. (2) Be sure you've got plenty.