From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Gustav =?UTF-8?Q?H=C3=A5llberg?= Newsgroups: gmane.emacs.bugs Subject: bug#6423: [describe-char PATCH 2/2] describe-char: remove superfluous space at end of "Unicode data" line Date: Mon, 14 Jun 2010 14:23:50 +0200 Message-ID: <20100614122349.26121.1080.stgit@lux.e.vtech> References: <20100614122012.26121.15924.stgit@lux.e.vtech> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1276530392 21168 80.91.229.12 (14 Jun 2010 15:46:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 14 Jun 2010 15:46:32 +0000 (UTC) To: 6423@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 14 17:46:29 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 1OOBro-0003oY-I1 for geb-bug-gnu-emacs@m.gmane.org; Mon, 14 Jun 2010 17:46:29 +0200 Original-Received: from localhost ([127.0.0.1]:59916 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OOBrn-0002Lm-Le for geb-bug-gnu-emacs@m.gmane.org; Mon, 14 Jun 2010 11:46:27 -0400 Original-Received: from [140.186.70.92] (port=34761 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OO9FX-0008E5-Ct for bug-gnu-emacs@gnu.org; Mon, 14 Jun 2010 08:58:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OO9FE-0006dZ-R3 for bug-gnu-emacs@gnu.org; Mon, 14 Jun 2010 08:58:30 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36818) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OO9FE-0006dV-Pn for bug-gnu-emacs@gnu.org; Mon, 14 Jun 2010 08:58:28 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OO967-00071r-OG; Mon, 14 Jun 2010 08:49:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gustav =?UTF-8?Q?H=C3=A5llberg?= Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 14 Jun 2010 12:49:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 6423 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.127651968526973 (code B ref -1); Mon, 14 Jun 2010 12:49:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 14 Jun 2010 12:48:05 +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 1OO95A-00070x-SY for submit@debbugs.gnu.org; Mon, 14 Jun 2010 08:48:05 -0400 Original-Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OO8hs-0006ng-Ti for submit@debbugs.gnu.org; Mon, 14 Jun 2010 08:24:01 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:36835) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1OO8hn-0004hF-QO for submit@debbugs.gnu.org; Mon, 14 Jun 2010 08:23:56 -0400 Original-Received: from [140.186.70.92] (port=55981 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OO8hm-0004Wg-DK for bug-gnu-emacs@gnu.org; Mon, 14 Jun 2010 08:23:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OO8hk-0000Cw-EI for bug-gnu-emacs@gnu.org; Mon, 14 Jun 2010 08:23:54 -0400 Original-Received: from mail-ww0-f41.google.com ([74.125.82.41]:37604) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OO8hk-0000Cp-AA for bug-gnu-emacs@gnu.org; Mon, 14 Jun 2010 08:23:52 -0400 Original-Received: by wwb34 with SMTP id 34so4048312wwb.0 for ; Mon, 14 Jun 2010 05:23:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:to:from:date :message-id:in-reply-to:references:user-agent:mime-version :content-type:content-transfer-encoding; bh=k7PzFv/aB7Fefra5nXI/GDFYpc+MndXXwCRELzUPAFg=; b=jnjIE/tHXvCbc+dD8HWAiwOTmyZpUWVzcHoNVPldjQUK9jE8++oa7wjUpX/XFXcArV o0opdaSFZw0TG5+iXfRZPUdzjUdQBWXvgFaqe/+hxi+yPdj4CuRHxfeuoKutSAbJT5o7 UPHiH5GY/BnCwgX7aVw8GE2pFv5a2kD0nZ7l8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:to:from:date:message-id:in-reply-to:references:user-agent :mime-version:content-type:content-transfer-encoding; b=B9TeA53M1XjRpr4y3hqd/gaTIFBo5LCW1P4xdzbbXerH1Fo1dJkxRy7IX4xwoprZ/r Af+QITcZ4itF9fzaD3RPWagKCBDxVmvWUxB08c6Qcds6rDnSgLxxcSKQ5KS4qsSLtBZT 2cVXbB5pJ4g9QCOr7aKIxh9tqa1F9YfHLA0Bg= Original-Received: by 10.227.156.6 with SMTP id u6mr5557167wbw.16.1276518231461; Mon, 14 Jun 2010 05:23:51 -0700 (PDT) Original-Received: from lux.e.vtech (gatekeeper.vtab.com [62.20.90.206]) by mx.google.com with ESMTPS id h1sm1208375wee.31.2010.06.14.05.23.50 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 14 Jun 2010 05:23:51 -0700 (PDT) In-Reply-To: <20100614122012.26121.15924.stgit@lux.e.vtech> User-Agent: StGit/0.15-114-gf9037 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-Mailman-Approved-At: Mon, 14 Jun 2010 08:48:00 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 14 Jun 2010 08:49:03 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Mon, 14 Jun 2010 11:46:18 -0400 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:37771 Archived-At: This prevents annoying markup if the trailing-whitespace face is used. --- lisp/descr-text.el | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/descr-text.el b/lisp/descr-text.el index 51f7a77..d66aa88 100644 --- a/lisp/descr-text.el +++ b/lisp/descr-text.el @@ -618,7 +618,7 @@ as well as widgets, buttons, overlays, and text properties." ,@(if (not eight-bit-p) (let ((unicodedata (describe-char-unicode-data char))) (if unicodedata - (cons (list "Unicode data" " ") unicodedata)))))) + (cons (list "Unicode data" "") unicodedata)))))) (setq max-width (apply 'max (mapcar (lambda (x) (if (cadr x) (length (car x)) 0)) item-list))) @@ -642,7 +642,8 @@ as well as widgets, buttons, overlays, and text properties." (window-width)) (insert "\n") (indent-to (1+ max-width))) - (insert " " clm))) + (unless (zerop (length clm)) + (insert " " clm)))) (insert "\n")))) (when overlays