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#16028: 24.3.50; Latest build completely breaks my thumnail frames code Date: Tue, 10 Dec 2013 11:31:33 +0100 Message-ID: <52A6ED85.8020206@gmx.at> References: <746cd4cb-c69d-4cff-8dee-f7ccde3cb2f4@default> <52A1E5A6.3010901@gmx.at> <52A1F967.5070403@gmx.at> <6ee939f5-138d-4e5c-830e-8a20f8e45bea@default> <52A207C5.4070404@gmx.at> <12e899a3-dbf2-4b44-9b87-a0b9fc24f317@default> <52A2EE7B.4030105@gmx.at> <723644fb-f171-4bed-b8d0-7f9a1c8b9f7d@default> <52A4428F.4030101@gmx.at> <600e7b0c-73bb-4163-8d03-a8579f250045@default> <52A4B23E.9080609@gmx.at> <837gbeymiy.fsf@gnu.org> <52A60DD2.1020303@gmx.at> <83r49lxsxf.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 1386671542 16251 80.91.229.3 (10 Dec 2013 10:32:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 10 Dec 2013 10:32:22 +0000 (UTC) Cc: 16028@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Dec 10 11:32:25 2013 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 1VqKc4-0001C6-Ra for geb-bug-gnu-emacs@m.gmane.org; Tue, 10 Dec 2013 11:32:24 +0100 Original-Received: from localhost ([::1]:48300 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VqKc4-0005IK-7J for geb-bug-gnu-emacs@m.gmane.org; Tue, 10 Dec 2013 05:32:24 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52983) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VqKbt-0005Hu-5a for bug-gnu-emacs@gnu.org; Tue, 10 Dec 2013 05:32:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VqKbj-00036P-9P for bug-gnu-emacs@gnu.org; Tue, 10 Dec 2013 05:32:13 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55659) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VqKbj-00036K-6G for bug-gnu-emacs@gnu.org; Tue, 10 Dec 2013 05:32:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VqKbi-0002Ax-Ed for bug-gnu-emacs@gnu.org; Tue, 10 Dec 2013 05:32:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 10 Dec 2013 10:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16028 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16028-submit@debbugs.gnu.org id=B16028.13866715078343 (code B ref 16028); Tue, 10 Dec 2013 10:32:02 +0000 Original-Received: (at 16028) by debbugs.gnu.org; 10 Dec 2013 10:31:47 +0000 Original-Received: from localhost ([127.0.0.1]:41445 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VqKbT-0002AV-97 for submit@debbugs.gnu.org; Tue, 10 Dec 2013 05:31:47 -0500 Original-Received: from mout.gmx.net ([212.227.17.22]:59387) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VqKbP-0002AL-KK for 16028@debbugs.gnu.org; Tue, 10 Dec 2013 05:31:44 -0500 Original-Received: from [62.47.46.21] ([62.47.46.21]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0Ld4xA-1V8A620LcO-00i8UP for <16028@debbugs.gnu.org>; Tue, 10 Dec 2013 11:31:42 +0100 In-Reply-To: <83r49lxsxf.fsf@gnu.org> X-Provags-ID: V03:K0:Zz/Evbvk3k+/4G9NDra3hr/76mGjNlprBDYjmrzibNnp5uLsfAp akazRwq2Be7GcZ4qMWWwV3hXcUfbowwyLNhagwYHUdetDGG7z3GtKGaFftLKU4KJ7LZ7nvz 31H0O/8mhWrRzGee4F/QUDCTt3bnwF+6RHj8/69fEm9CsUmSfjCGp3LoYARUm4dlf5QIoBY 1YZdxXiLLWk6q7m9dSeSg== 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:81667 Archived-At: > Can you please test this on X? I'd like to know if this is a Windows > specific problem. A simple way to reproduce this it in a proper bug report: (defun enlarged-font-name (fontname frame increment) "FONTNAME, after enlarging font size of FRAME by INCREMENT. FONTNAME is the font of FRAME." (when (query-fontset fontname) (let ((ascii (assq 'ascii (aref (fontset-info fontname frame) 2)))) (when ascii (setq fontname (nth 2 ascii))))) (let ((xlfd-fields (x-decompose-font-name fontname))) (unless xlfd-fields (error "Cannot decompose font name")) (let ((new-size (+ (string-to-number (aref xlfd-fields xlfd-regexp-pixelsize-subnum)) increment))) (unless (> new-size 0) (signal 'font-too-small (list new-size))) (aset xlfd-fields xlfd-regexp-pixelsize-subnum (number-to-string new-size))) ;; Set point size & width to "*", so frame width adjusts to new font (aset xlfd-fields xlfd-regexp-pointsize-subnum "*") (aset xlfd-fields xlfd-regexp-avgwidth-subnum "*") (x-compose-font-name xlfd-fields))) (defun enlarge-font-by (increment) (let* ((old-font (cdr (assq 'font (frame-parameters (selected-frame))))) (new-font (enlarged-font-name old-font (selected-frame) increment))) (modify-frame-parameters (selected-frame) (list (cons 'font new-font) (cons 'tool-bar-lines 0) (cons 'menu-bar-lines 0) (cons 'scroll-bar-width 6))))) (enlarge-font-by -4) martin