From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.bugs Subject: bug#6000: describe-text-sexp does not know window-width Date: Thu, 22 Apr 2010 14:15:26 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: dough.gmane.org 1271939221 17601 80.91.229.12 (22 Apr 2010 12:27:01 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 22 Apr 2010 12:27:01 +0000 (UTC) To: 6000@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 22 14:26:59 2010 connect(): No such file or directory Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O4vUg-0006On-Ut for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Apr 2010 14:26:59 +0200 Original-Received: from localhost ([127.0.0.1]:36928 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O4vUg-0007RS-D6 for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Apr 2010 08:26:58 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O4vT9-0006op-C3 for bug-gnu-emacs@gnu.org; Thu, 22 Apr 2010 08:25:23 -0400 Original-Received: from [140.186.70.92] (port=51831 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O4vT7-0006nx-PM for bug-gnu-emacs@gnu.org; Thu, 22 Apr 2010 08:25:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O4vT6-0007cC-Cj for bug-gnu-emacs@gnu.org; Thu, 22 Apr 2010 08:25:21 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50474) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O4vT6-0007c5-97 for bug-gnu-emacs@gnu.org; Thu, 22 Apr 2010 08:25:20 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1O4vK5-0006ch-Vq; Thu, 22 Apr 2010 08:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lennart Borgman Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 22 Apr 2010 12:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 6000 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Emacs Bugs Original-Received: via spool by submit@debbugs.gnu.org id=B.127193856125454 (code B ref -1); Thu, 22 Apr 2010 12:16:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 22 Apr 2010 12:16:01 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O4vK5-0006cS-1k for submit@debbugs.gnu.org; Thu, 22 Apr 2010 08:16:01 -0400 Original-Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O4vK2-0006cN-8H for submit@debbugs.gnu.org; Thu, 22 Apr 2010 08:15:58 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:58625) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1O4vJw-0003S2-Jm for submit@debbugs.gnu.org; Thu, 22 Apr 2010 08:15:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O4vJv-0004zU-6F for bug-gnu-emacs@gnu.org; Thu, 22 Apr 2010 08:15:51 -0400 Original-Received: from [140.186.70.92] (port=40130 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O4vJs-0004zM-OT for bug-gnu-emacs@gnu.org; Thu, 22 Apr 2010 08:15:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O4vJr-0005gf-Jb for bug-gnu-emacs@gnu.org; Thu, 22 Apr 2010 08:15:48 -0400 Original-Received: from mail-bw0-f225.google.com ([209.85.218.225]:62317) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O4vJr-0005gK-E5 for bug-gnu-emacs@gnu.org; Thu, 22 Apr 2010 08:15:47 -0400 Original-Received: by bwz25 with SMTP id 25so8403048bwz.8 for ; Thu, 22 Apr 2010 05:15:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:from:date:received :message-id:subject:to:content-type; bh=VEPti0+YXbu21cBr8aHqe5vWaqtYPcpLdUrn1azH9Cs=; b=p2ahczcaltUgMi82ovFnbuPweg+/qjEzFsYbwGWbtzugro52nl0tFRxIY+3N3qx/jy o5B1ttVLWNzXiF3nCqi2uINivktrFqEUkS+eA9SdRHzewO451rVb95OgQdl2NVG7glPc nYFooNPSEYW0kKK+8lFcW5ixGzyaE5lLGO5/s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=SvjyZk0jFDfNI+vC0SN7H3/njIi+b1LV0ass6xZtZG7D07234+vUK7E+wnosdrlY5q D1wL9ga4zMZOdLCvw6BwnvOSoS9J02tmE9O51MoA4iGtg2NPenTvJL74+wY3DDUcrxm+ O4xMuX8A/PDbdfkNDuZ800itOP2sbTQCY6QYY= Original-Received: by 10.239.164.81 with HTTP; Thu, 22 Apr 2010 05:15:26 -0700 (PDT) Original-Received: by 10.239.158.68 with SMTP id t4mr902745hbc.72.1271938546125; Thu, 22 Apr 2010 05:15:46 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 22 Apr 2010 08:16:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:36415 Archived-At: In describe-text-sexp there is a call to window-width. I believe this gives unreliable results because the help-window might not be select at that point always. This shows up in the display of (what-cursor-position t) where the sexp are sometimes unnecessary hidden behind "[Show]". A possible good enough cure is to surround the call to window-width with something like this (with-selected-window (or (get-buffer-window "*Help*") (selected-window)) (window-width))