From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#12679: 24.2.50; Can't font-at for the beginning of a string Date: Sat, 20 Oct 2012 14:19:54 +0200 Message-ID: <508296EA.60000@gmx.at> References: <87391an60a.wl%%xmue@d1.dion.ne.jp> <87objywqrz.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1350735633 26188 80.91.229.3 (20 Oct 2012 12:20:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 20 Oct 2012 12:20:33 +0000 (UTC) Cc: Kazuhiro Ito , 12679@debbugs.gnu.org To: Kenichi Handa Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 20 14:20:40 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 1TPY2h-0005Ia-MO for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Oct 2012 14:20:39 +0200 Original-Received: from localhost ([::1]:45697 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TPY2a-0003nf-AC for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Oct 2012 08:20:32 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50742) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TPY2X-0003nW-Ev for bug-gnu-emacs@gnu.org; Sat, 20 Oct 2012 08:20:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TPY2V-000802-At for bug-gnu-emacs@gnu.org; Sat, 20 Oct 2012 08:20:29 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42516) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TPY2V-0007zu-7S for bug-gnu-emacs@gnu.org; Sat, 20 Oct 2012 08:20:27 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TPY41-0006fh-LR for bug-gnu-emacs@gnu.org; Sat, 20 Oct 2012 08:22:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 20 Oct 2012 12:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12679 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12679-submit@debbugs.gnu.org id=B12679.135073570725625 (code B ref 12679); Sat, 20 Oct 2012 12:22:01 +0000 Original-Received: (at 12679) by debbugs.gnu.org; 20 Oct 2012 12:21:47 +0000 Original-Received: from localhost ([127.0.0.1]:52767 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TPY3l-0006fF-PX for submit@debbugs.gnu.org; Sat, 20 Oct 2012 08:21:46 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.23]:50488) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1TPY3j-0006f2-2H for 12679@debbugs.gnu.org; Sat, 20 Oct 2012 08:21:44 -0400 Original-Received: (qmail invoked by alias); 20 Oct 2012 12:20:01 -0000 Original-Received: from 62-47-59-88.adsl.highway.telekom.at (EHLO [62.47.59.88]) [62.47.59.88] by mail.gmx.net (mp069) with SMTP; 20 Oct 2012 14:20:01 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1/e6doPRNzerevInPnLWc+1mGD7NWIjf7j0ks2bZp y4jWqkbXGkuva5 In-Reply-To: <87objywqrz.fsf@gnu.org> X-Y-GMX-Trusted: 0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:65792 Archived-At: Could you please also (1) add a description of the STRING argument in the doc-string of `font-at', and (2) explain what happens when the selected window or the window passed as argument do not show the current buffer. IIUC face_at_buffer_position expects the window passed to it to show the current buffer but this might not be true when `font-at' calls it. There's also this comment in face_at_buffer_position: /* W must display the current buffer. We could write this function to use the frame and buffer of W, but right now it doesn't. */ /* eassert (XBUFFER (w->buffer) == current_buffer); */ Later in the code of face_at_buffer_position I see that w->buffer is sometimes used explicitly but get the impression that most other parts of the code use the current buffer instead. Thanks, martin