From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: pos-visible-in-window-p at ellipsis Date: Thu, 27 Dec 2007 08:42:21 -0500 Message-ID: References: Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1198762994 19268 80.91.229.12 (27 Dec 2007 13:43:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 27 Dec 2007 13:43:14 +0000 (UTC) Cc: emacs-devel@gnu.org To: David Reitter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 27 14:43:26 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1J7t18-0000Q4-Ka for ged-emacs-devel@m.gmane.org; Thu, 27 Dec 2007 14:43:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J7t0n-0002N8-Oi for ged-emacs-devel@m.gmane.org; Thu, 27 Dec 2007 08:43:01 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J7t0D-00022O-Ua for emacs-devel@gnu.org; Thu, 27 Dec 2007 08:42:26 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J7t0A-00020n-M2 for emacs-devel@gnu.org; Thu, 27 Dec 2007 08:42:25 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J7t0A-00020g-De for emacs-devel@gnu.org; Thu, 27 Dec 2007 08:42:22 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1J7t0A-0004fk-3C for emacs-devel@gnu.org; Thu, 27 Dec 2007 08:42:22 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1J7t09-0006cP-NX; Thu, 27 Dec 2007 08:42:21 -0500 In-reply-to: (message from David Reitter on Sun, 23 Dec 2007 19:19:03 +0000) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:85507 Archived-At: Would someone please DTRT then ack? Message-Id: From: David Reitter To: emacs-pretest-bug@gnu.org Date: Sun, 23 Dec 2007 19:19:03 +0000 Cc: Subject: pos-visible-in-window-p at ellipsis Start an emacs -Q , presumably in as non-TTY (tested with the Carbon port) M-x latex-mode M-x outline-minor-mode Enter the following text into the buffer \section{heading} this is a sentence. M-x hide-subtree You should now see this: \section{heading}... Place the point at the ellipsis (...) and enter M-: (pos-visible-in-window-p (point) nil 'partial) RET Now hit C-f to place the point right after the ellipsis, and enter M-: (pos-visible-in-window-p (point) nil 'partial) RET The bug is that both `pos-visible-in-window-p' returns the same pixel coordinates at both positions. According to the doc, " X and Y are the pixel coordinates relative to the top left corner of the window.", and I presume this refers to the coordinates of whatever the point is on. This is practically relevant because I'm using that function to position the point in just the right place (i.e. maintain horizontal pixel position) when a user goes up or down a line (and C-n etc doesn't do that.) In GNU Emacs 22.1.50.1 (i386-apple-darwin9.1.0, Carbon Version 1.6.0) of 2007-12-21 on scarlett Windowing system distributor `Apple Inc.', version 10.5.1 configured using `configure '--without-x' '--prefix=/usr/local'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: nil locale-coding-system: iso-8859-1 default-enable-multibyte-characters: t Major mode: LaTeX Minor modes in effect: shell-dirtrack-mode: t outline-minor-mode: t encoded-kbd-mode: t tooltip-mode: t tool-bar-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: identity Recent input: q M-a C-k C-k C-k C-k C-k C-k t h i s SPC i s SPC a SPC n c o l l a p s e d SPC s e n t e n c e n o t SPC a SPC s e n t e n c e . x o u t l i e - m o i n m o d e x l a t e x - m o d e \ s e c i o n t i o n { h a d i n g e a d i n g { { } x o u t l i n e - m i n o r - m o d e : M-v C-y : C-y Recent messages: Loading outline...done outline-back-to-heading: before first heading Loading tex-mode... Loading regexp-opt...done Loading tex-mode...done Loading skeleton...done Outline minor mode enabled call-interactively: Beginning of buffer (133 48) [2 times] Loading emacsbug...done _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel