From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: HTML-Info design Date: Wed, 28 Jan 2015 13:27:32 +1100 Message-ID: <878ugn1vxn.fsf@building.gnus.org> References: <87k31fwwyv.fsf@ferrier.me.uk> <87bnmq9ibf.fsf@ferrier.me.uk> <87lhlrx5fc.fsf@building.gnus.org> <878uhrcr5l.fsf@building.gnus.org> <83sifzjflk.fsf@gnu.org> <87fvbyagaw.fsf@building.gnus.org> <83iogujvbq.fsf@gnu.org> <87tx0ee7rf.fsf@building.gnus.org> <83egricpvg.fsf@gnu.org> <87zj97vic8.fsf@building.gnus.org> <83wq4argjp.fsf@gnu.org> <87iofui8vo.fsf@building.gnus.org> <838ugqqczp.fsf@gnu.org> <877fw9dndz.fsf@building.gnus.org> <83a914ozsh.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1422412194 1377 80.91.229.3 (28 Jan 2015 02:29:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 28 Jan 2015 02:29:54 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 28 03:29:54 2015 Return-path: Envelope-to: ged-emacs-devel@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 1YGIO8-0000Q2-Of for ged-emacs-devel@m.gmane.org; Wed, 28 Jan 2015 03:29:52 +0100 Original-Received: from localhost ([::1]:50957 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGIO8-0000GN-4K for ged-emacs-devel@m.gmane.org; Tue, 27 Jan 2015 21:29:52 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38972) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGIN1-0007Fj-6q for emacs-devel@gnu.org; Tue, 27 Jan 2015 21:28:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YGIN0-00073R-Av for emacs-devel@gnu.org; Tue, 27 Jan 2015 21:28:43 -0500 Original-Received: from smtp.syd.comcen.com.au ([203.23.236.77]:2143) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGIMs-00071Y-IZ; Tue, 27 Jan 2015 21:28:35 -0500 Original-Received: from building.gnus.org ([27.96.197.126]) by smtp.syd.comcen.com.au (8.13.4/8.12.9) with ESMTP id t0S2RbKd093400; Wed, 28 Jan 2015 13:27:40 +1100 (EST) In-Reply-To: <83a914ozsh.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 27 Jan 2015 20:15:42 +0200") User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) X-comcen-MailScanner-Information: Please contact the ISP for more information X-comcen-MailScanner: Found to be clean X-comcen-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=0.102, required 4, AWL 0.00, BAYES_50 0.00, RDNS_NONE 0.10) X-comcen-MailScanner-From: larsi@gnus.org X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 203.23.236.77 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:181867 Archived-At: Eli Zaretskii writes: >> Debugger entered--Lisp error: (error "Specified window is not displaying the current buffer") > > Yes, you need to arrange for the buffer to be current and displayed in > the window you pass to the function. See the function's doc string. > >> shr uses temporary buffers to format various bits, so this doesn't seem >> to be a practical approach when determining the pixel widths of text. > > You can invoke font-at on a string instead of buffer. Thanks. Does that make sense, though? I'm guessing that using `font-at' on a string, it implicitly uses the current window for something. `font-at' on a buffer could use the same logic, couldn't it? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/