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#6422: [describe-char PATCH 1/2] describe-char: add missing space in Unicode "Decomposition" line Date: Mon, 14 Jun 2010 14:23:43 +0200 Message-ID: <20100614122343.26121.60672.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 1276530396 21187 80.91.229.12 (14 Jun 2010 15:46:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 14 Jun 2010 15:46:36 +0000 (UTC) To: 6422@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 14 17:46:32 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 1OOBrq-0003tq-Ts for geb-bug-gnu-emacs@m.gmane.org; Mon, 14 Jun 2010 17:46:31 +0200 Original-Received: from localhost ([127.0.0.1]:59921 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OOBrp-0002ME-IS for geb-bug-gnu-emacs@m.gmane.org; Mon, 14 Jun 2010 11:46:29 -0400 Original-Received: from [140.186.70.92] (port=34769 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OO9FW-0008EH-SI for bug-gnu-emacs@gnu.org; Mon, 14 Jun 2010 08:59:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OO9FG-0006dq-Qf for bug-gnu-emacs@gnu.org; Mon, 14 Jun 2010 08:58:31 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36820) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OO9FG-0006dm-PP for bug-gnu-emacs@gnu.org; Mon, 14 Jun 2010 08:58:30 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OO967-00071l-5H; 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 6422 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.127651968526969 (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-00070r-Al for submit@debbugs.gnu.org; Mon, 14 Jun 2010 08:48:04 -0400 Original-Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OO8hq-0006nf-A7 for submit@debbugs.gnu.org; Mon, 14 Jun 2010 08:23:58 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:36834) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1OO8hl-0004h1-5V for submit@debbugs.gnu.org; Mon, 14 Jun 2010 08:23:53 -0400 Original-Received: from [140.186.70.92] (port=55932 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OO8hg-0004VN-4W for bug-gnu-emacs@gnu.org; Mon, 14 Jun 2010 08:23:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OO8he-0000BD-J7 for bug-gnu-emacs@gnu.org; Mon, 14 Jun 2010 08:23:48 -0400 Original-Received: from mail-wy0-f169.google.com ([74.125.82.169]:38721) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OO8he-0000Ap-F4 for bug-gnu-emacs@gnu.org; Mon, 14 Jun 2010 08:23:46 -0400 Original-Received: by wyf28 with SMTP id 28so4099204wyf.0 for ; Mon, 14 Jun 2010 05:23:44 -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=rlbS/zwKwwvMZ1hfDrRyFR7SHHBjluFubDO+dxlkiMc=; b=eju+Z/Pi/b1v7txsBkg78d8j1FKHiVQ763uXHRK3RHVxFWHDl1bu1kR/DO4ArAe9qd sp9Qvs5Jv+Jukwgz4996NoA6gZcxyAqPwhJX72xG4GU1KyI0jMumwTgpZG2XF8e7DNzK LFpMWncGekzLbxfKk2Qow354HbDWOPRZJPqZA= 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=xXJ7tvovh3rxGzEQehiVQQX8eJnHvpkRS4eccwq7W8b63VSYfv9RIATsvdA8vGcnU/ V3AO8mduqCXq/FgLqxakRUmNLmuG7KEGAbeCUEefvrwtpKeguCiPv0Z+Eitj73ZwEHYK PxwEzgEKnoWOU7haMb98/lqud+LzZ6/HEe4ss= Original-Received: by 10.227.69.208 with SMTP id a16mr5553747wbj.193.1276518224899; Mon, 14 Jun 2010 05:23:44 -0700 (PDT) Original-Received: from lux.e.vtech (gatekeeper.vtab.com [62.20.90.206]) by mx.google.com with ESMTPS id u36sm36568728wbv.0.2010.06.14.05.23.44 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 14 Jun 2010 05:23:44 -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:37772 Archived-At: If there is an "info" field, make sure to add a space after it. --- lisp/descr-text.el | 28 ++++++++++++++-------------- 1 files changed, 14 insertions(+), 14 deletions(-) diff --git a/lisp/descr-text.el b/lisp/descr-text.el index 36ee08d..51f7a77 100644 --- a/lisp/descr-text.el +++ b/lisp/descr-text.el @@ -288,20 +288,20 @@ This function is semi-obsolete. Use `get-char-code-property'." (or (char-code-property-description 'bidi-class (intern val)) val))) - (list - "Decomposition" - (if (nth 4 fields) - (let* ((parts (split-string (nth 4 fields))) - (info (car parts))) - (if (string-match "\\`<\\(.+\\)>\\'" info) - (setq info (match-string 1 info)) - (setq info nil)) - (if info (setq parts (cdr parts))) - (setq parts (mapconcat - (lambda (arg) - (string (string-to-number arg 16))) - parts " ")) - (concat info parts)))) + (list "Decomposition" + (let ((field (nth 4 fields))) + (when field + (let* ((parts (split-string field)) + (info (car parts))) + (if (string-match "\\`<\\(.+\\)>\\'" info) + (setq info (match-string 1 info) + parts (cdr parts)) + (setq info nil)) + (concat info (when info " ") + (mapconcat + (lambda (arg) + (string (string-to-number arg 16))) + parts " ")))))) (list "Decimal digit value" (nth 5 fields)) (list "Digit value"