From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: E Sabof Newsgroups: gmane.emacs.bugs Subject: bug#13887: 24.3; doc-view will render blurry images when image-magick is available Date: Tue, 12 Mar 2013 01:00:11 +0000 Message-ID: References: <8762153qc8.fsf@thinkpad.tsdh.de> <8762143co6.fsf@thinkpad.tsdh.de> <877glkgvqj.fsf@thinkpad.tsdh.de> <87txonw6ev.fsf@thinkpad.tsdh.de> <87sj46493q.fsf@thinkpad.tsdh.de> <877gle1etb.fsf@thinkpad.tsdh.de> <838v5tx4av.fsf@gnu.org> <87txohx0g0.fsf@thinkpad.tsdh.de> <831ubllqr0.fsf@gnu.org> <87zjy9vg0r.fsf@thinkpad.tsdh.de> <83y5dtk606.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=20cf3074b472bc02eb04d7afcf21 X-Trace: ger.gmane.org 1363050078 23518 80.91.229.3 (12 Mar 2013 01:01:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 Mar 2013 01:01:18 +0000 (UTC) Cc: 13887@debbugs.gnu.org, Tassilo Horn To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 12 02:01:39 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 1UFDb1-0005k3-2H for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 Mar 2013 02:01:39 +0100 Original-Received: from localhost ([::1]:49610 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UFDae-0005GE-UE for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Mar 2013 21:01:16 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43679) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UFDaX-0005FB-Cy for bug-gnu-emacs@gnu.org; Mon, 11 Mar 2013 21:01:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UFDaU-00022O-GT for bug-gnu-emacs@gnu.org; Mon, 11 Mar 2013 21:01:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42974) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UFDaU-00022J-D0 for bug-gnu-emacs@gnu.org; Mon, 11 Mar 2013 21:01:06 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UFDbO-0007Yg-DK for bug-gnu-emacs@gnu.org; Mon, 11 Mar 2013 21:02:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: E Sabof Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Mar 2013 01:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13887 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13887-submit@debbugs.gnu.org id=B13887.136305007829001 (code B ref 13887); Tue, 12 Mar 2013 01:02:02 +0000 Original-Received: (at 13887) by debbugs.gnu.org; 12 Mar 2013 01:01:18 +0000 Original-Received: from localhost ([127.0.0.1]:47082 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UFDaf-0007Xi-Ts for submit@debbugs.gnu.org; Mon, 11 Mar 2013 21:01:18 -0400 Original-Received: from mail-qe0-f53.google.com ([209.85.128.53]:64566) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UFDab-0007XT-Qn for 13887@debbugs.gnu.org; Mon, 11 Mar 2013 21:01:15 -0400 Original-Received: by mail-qe0-f53.google.com with SMTP id cz11so2630490qeb.26 for <13887@debbugs.gnu.org>; Mon, 11 Mar 2013 18:00:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=bDHQ9SB4jOLNBPAd+j/K1ymVIkMq7P0oGv2Oq3l+ukU=; b=fRZnjT58WW5U2lj5eO+lrQYG6nmgoco+tZXcnqh7p6FXX3ecHlQHRS2BvsZ9IUspAx eSSAOij+UKYS2pQP0j4zxb6/9dwWyspfkYMg9JgBEU5odjkFIsDx32I7uiQ0ohhuZcq1 CpwCAdLBQ/s89pwCyDRKT9OLYiSjl5ntd5vVnMHjDRmWTOIsKvbaifvH02KDbV+PdUP5 /+Ot9uYoMOWqPGvv2Eq3AlbSO5Lvr0DtS+YjYCUd0NAifpmrp7boMUnjs0mxQCRxZTQy zQXjiAhlek8LwHc90/gGWe8RgmXTJa8DWNAm4QgKvuj/yFsgd/O7zxB52z0qYQPiwuuV F8NQ== X-Received: by 10.224.117.66 with SMTP id p2mr14208335qaq.45.1363050011293; Mon, 11 Mar 2013 18:00:11 -0700 (PDT) Original-Received: by 10.49.70.233 with HTTP; Mon, 11 Mar 2013 18:00:11 -0700 (PDT) In-Reply-To: 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.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:72354 Archived-At: --20cf3074b472bc02eb04d7afcf21 Content-Type: text/plain; charset=ISO-8859-1 Further evidence suggests that the "t taking precedence" version is wrong. It's more probable the the precedence is determined by the order of overlays in some C data-structure. On Mon, Mar 11, 2013 at 11:41 PM, E Sabof wrote: > The overlay with t value has precedence over other overlays. If the > problem occurs, I can run the following function, and it will get fixed in > existing windows. However if I create a new window, it will show only text. > If I press + in that window, a new overlay will be created. Perhaps the t > overlay was meant to be the default, and someone misunderstood it's effect. > > (defun 13887-fix-helper1 () > (interactive) > (let* ((ovs (overlays-at (point))) > (ov-t (find-if (lambda (ov) (eq (overlay-get ov 'window) t)) > ovs))) > (when ov-t (delete-overlay ov-t)))) > > Here is one more helper function which might be useful. > > (defun 13887-own-overlay-present-p () > (interactive) > (let* ((ovs (overlays-at (point)))) > (find-if (lambda (ov) (eq (overlay-get ov 'window) > (selected-window))) > ovs))) > --20cf3074b472bc02eb04d7afcf21 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Further evidence suggests that the "t taking=A0preced= ence"=A0version is wrong. It's more probable the the precedence is= determined by the order of overlays in some C data-structure.


On Mon, Mar 11, 2013 at 11:41 PM, E Sabo= f <esabof@gmail.com> wrote:
The overlay with t value has pr= ecedence over other overlays. If the problem occurs, I can run the followin= g function, and it will get fixed in existing windows. However if I create = a new window, it will show only text. If I press + in that window, a new ov= erlay will be created. Perhaps the t overlay was meant to be the default, a= nd someone misunderstood it's effect.

(def= un 13887-fix-helper1 ()
=A0 (interactive)
=A0 (let* ((ovs (overlays-at (point)))
=A0 =A0 =A0 =A0 =A0(ov-t (find-if (lambda (ov) (eq (= overlay-get ov 'window) t))
=A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ovs)))
=A0 =A0 (when ov-t (delete-overlay ov-t))))

Here is on= e more helper function which might be useful.

(defun 13887-own-overlay-present-p ()<= /div>
=A0 (interactive)
=A0 (let* ((ovs (overlays-at (point))))
=A0 =A0 (find-if (lambda (ov) (eq (overlay-get ov 'window)
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 (selected-window)))
=A0 =A0 =A0= =A0 =A0 =A0 =A0ovs)))

--20cf3074b472bc02eb04d7afcf21--