From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ivan Andrus Newsgroups: gmane.emacs.bugs Subject: bug#12245: 24.2.50; Image height scaled to fill whole line Date: Tue, 21 Aug 2012 12:20:09 +0200 Message-ID: <6635D0C3-EB6E-4FC6-8A5D-BBCF722808FF@math.byu.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1345544460 21056 80.91.229.3 (21 Aug 2012 10:21:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 21 Aug 2012 10:21:00 +0000 (UTC) To: 12245@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 21 12:21:00 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 1T3lZv-00045r-Hh for geb-bug-gnu-emacs@m.gmane.org; Tue, 21 Aug 2012 12:20:55 +0200 Original-Received: from localhost ([::1]:45097 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3lZt-0007wX-Vt for geb-bug-gnu-emacs@m.gmane.org; Tue, 21 Aug 2012 06:20:53 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39199) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3lZn-0007wJ-9y for bug-gnu-emacs@gnu.org; Tue, 21 Aug 2012 06:20:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T3lZl-0001Ft-TM for bug-gnu-emacs@gnu.org; Tue, 21 Aug 2012 06:20:47 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59718) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3lZl-0001Fp-P4 for bug-gnu-emacs@gnu.org; Tue, 21 Aug 2012 06:20:45 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1T3la3-0004la-Qn for bug-gnu-emacs@gnu.org; Tue, 21 Aug 2012 06:21:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ivan Andrus Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 21 Aug 2012 10:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 12245 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.134554444618293 (code B ref -1); Tue, 21 Aug 2012 10:21:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Aug 2012 10:20:46 +0000 Original-Received: from localhost ([127.0.0.1]:41031 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T3lZm-0004kz-AO for submit@debbugs.gnu.org; Tue, 21 Aug 2012 06:20:46 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50080) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T3lZk-0004kt-DI for submit@debbugs.gnu.org; Tue, 21 Aug 2012 06:20:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T3lZQ-0000zu-7j for submit@debbugs.gnu.org; Tue, 21 Aug 2012 06:20:25 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:54633) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3lZQ-0000zM-2B for submit@debbugs.gnu.org; Tue, 21 Aug 2012 06:20:24 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39061) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3lZL-0007tK-0a for bug-gnu-emacs@gnu.org; Tue, 21 Aug 2012 06:20:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T3lZE-0000hw-Ji for bug-gnu-emacs@gnu.org; Tue, 21 Aug 2012 06:20:18 -0400 Original-Received: from mail-bk0-f41.google.com ([209.85.214.41]:59493) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3lZE-0000hb-9F for bug-gnu-emacs@gnu.org; Tue, 21 Aug 2012 06:20:12 -0400 Original-Received: by bkcjc3 with SMTP id jc3so2225978bkc.0 for ; Tue, 21 Aug 2012 03:20:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:content-transfer-encoding:subject:date:message-id :to:mime-version:x-mailer; bh=b9dC+TwrrrEpAt6LmjEOnHsBvnf38S3x2pUvlSnqeOw=; b=F9su6xYziODYnJPn2ft09LLaS3hWqhLIQU2loEj+ncffL5JTRanUnLb0Wo0mFJ8aIn W5fyQO2zLQ8llraFn/Lrf8HmORlAvH4nJQ+WAHOoBig6pGAWJpUi7+/4fbokapb10KQI r1eqvvI+rmbGzs0pQN06YLYyzouDYSep7UlGx30JQD2hV3Dpc+wWY9EAmo+kiBSqF9Xa tTAycK1QDquNkagITrDTj+0V6niJYq7Evnz2UCn5UyWFa86v7NbCx7BHJQrgR9B/5v9o Hx1ETUcp2S8H1hJq4oXXx5/ozqQEO+xkf701X6IRXMIh9+ioyuwqM0tqE1S9VJmiPrnl PeJg== Original-Received: by 10.205.125.4 with SMTP id gq4mr5077614bkc.109.1345544410876; Tue, 21 Aug 2012 03:20:10 -0700 (PDT) Original-Received: from [172.16.52.145] ([193.225.200.92]) by mx.google.com with ESMTPS id he8sm534575bkc.3.2012.08.21.03.20.09 (version=SSLv3 cipher=OTHER); Tue, 21 Aug 2012 03:20:10 -0700 (PDT) X-Mailer: Apple Mail (2.1084) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:63341 Archived-At: A fairly recent change (in the past few weeks) changed preview-latex in an interesting way. I would bisect it, but I have never been able to get `bzr bisect` to work. What happens, is that the image heights are stretched to fill the full height of the current line. If the image is larger, however, it is not shrunk. This leads to problems reading the short images like those produced from $x$, when they are on a line with a tall equation like a sum. The problem can be see without preview-latex. Start from `emacs -Q` and evaluate the code below. Notice that both images are the same height (larger than a normal line--this works for me with the default font size). Then delete the second image and notice that the first image shrinks. In fact the image should be even smaller. (progn (insert (propertize "1" 'display (create-image "/* XPM */ static char * arrow_right[] = { \"12 5 2 1\", \". c grey60\", \" c None\", \". \", \".. \", \"... \", \".... \", \"..... \", \"...... \", \"....... \", \"........ \", \"......... \", \"......... \", \"........ \", \"....... \", \"...... \", \"..... \", \".... \", \"... \", \".. \", \". \"};" 'xpm t))) (insert (propertize "1" 'display (create-image "/* XPM */ static char * arrow_right[] = { \"12 24 2 1\", \". c grey60\", \" c None\", \". \", \".. \", \"... \", \".... \", \"..... \", \"...... \", \"....... \", \"........ \", \"......... \", \"......... \", \"......... \", \"......... \", \"......... \", \"......... \", \"......... \", \"......... \", \"........ \", \"....... \", \"...... \", \"..... \", \".... \", \"... \", \".. \", \". \"};" 'xpm t)))) In GNU Emacs 24.2.50.2 (i386-apple-darwin10.8.0, NS apple-appkit-1038.36) of 2012-08-20 on oroszlan.local Bzr revision: 109700 jlf@foxtail.org-20120820160851-cooolx696cb26xc0 Windowing system distributor `Apple', version 10.3.1038 Configured using: `configure '--with-ns'' Important settings: value of $LC_CTYPE: UTF-8 locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: s-x r e M-x r e p o r t Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. kill-region: The mark is not set now, so there is no region Making completion list... Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils help-mode easymenu time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process ns multi-tty emacs)