From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#13130: 24.2.90; :box face attribute problems Date: Mon, 10 Dec 2012 02:22:36 +0400 Message-ID: <87ip8asw5v.fsf@vbx.i-did-not-set--mail-host-address--so-tickle-me> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1355091816 28532 80.91.229.3 (9 Dec 2012 22:23:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 9 Dec 2012 22:23:36 +0000 (UTC) To: 13130@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Dec 09 23:23:50 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 1ThpHq-000567-5X for geb-bug-gnu-emacs@m.gmane.org; Sun, 09 Dec 2012 23:23:50 +0100 Original-Received: from localhost ([::1]:57691 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ThpHd-0007KW-NZ for geb-bug-gnu-emacs@m.gmane.org; Sun, 09 Dec 2012 17:23:37 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:51883) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ThpHZ-0007JU-96 for bug-gnu-emacs@gnu.org; Sun, 09 Dec 2012 17:23:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ThpHW-00006l-NL for bug-gnu-emacs@gnu.org; Sun, 09 Dec 2012 17:23:33 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52383) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ThpHW-00006h-KB for bug-gnu-emacs@gnu.org; Sun, 09 Dec 2012 17:23:30 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1ThpI2-00077g-8k for bug-gnu-emacs@gnu.org; Sun, 09 Dec 2012 17:24:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 09 Dec 2012 22:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 13130 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.135509183227360 (code B ref -1); Sun, 09 Dec 2012 22:24:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 Dec 2012 22:23:52 +0000 Original-Received: from localhost ([127.0.0.1]:34401 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ThpHr-00077F-SL for submit@debbugs.gnu.org; Sun, 09 Dec 2012 17:23:52 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:40455) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ThpHn-000774-O0 for submit@debbugs.gnu.org; Sun, 09 Dec 2012 17:23:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ThpH9-0008SV-Gn for submit@debbugs.gnu.org; Sun, 09 Dec 2012 17:23:15 -0500 Original-Received: from lists.gnu.org ([208.118.235.17]:38964) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ThpH9-0008SQ-E0 for submit@debbugs.gnu.org; Sun, 09 Dec 2012 17:23:07 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:51718) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ThpH4-0007G1-MG for bug-gnu-emacs@gnu.org; Sun, 09 Dec 2012 17:23:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ThpH0-0008Rf-Vd for bug-gnu-emacs@gnu.org; Sun, 09 Dec 2012 17:23:02 -0500 Original-Received: from mail-lb0-f169.google.com ([209.85.217.169]:50599) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ThpH0-0008RZ-Nf for bug-gnu-emacs@gnu.org; Sun, 09 Dec 2012 17:22:58 -0500 Original-Received: by mail-lb0-f169.google.com with SMTP id gk1so1814228lbb.0 for ; Sun, 09 Dec 2012 14:22:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:date:message-id:mime-version:content-type; bh=x+w7K04eZbrCtGqc8FSm/h0ekTcvh1jZxfnuzvqsFmM=; b=y+QAgVXg9QPh+VTgs6VUKvnBPqBxEnU4o67k6FN4Ygs+sRVhAb/BotIq/uCRhCFQHS niZEUngKsF9SEM5o5/8ROguF1mNuU/fB5kW3i/Eot+eER993qqOvCyBYcx9ggjhDMAr5 zOwt5JXp6mtkGIbj3eL3ZdXZY9t3ggqGBiPiW5dOiMNyjuTkAVbNovkCtpwxe3pE374A t7HFWw0edUMLRrFOZt3kslCFDzhI36ffxoMYTBp/MynhGv99+ldizurjRL07+CPL2lvx vkexOyULMcK0jESLEoQBx0uH3Rsnv4iEOR4Um8iNfMkty6jNJRM04QZ01PO6FUNF4hVR I4ng== Original-Received: by 10.152.108.37 with SMTP id hh5mr11974894lab.52.1355091777234; Sun, 09 Dec 2012 14:22:57 -0800 (PST) Original-Received: from vbx ([178.252.98.87]) by mx.google.com with ESMTPS id k7sm7045719lbf.4.2012.12.09.14.22.55 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 09 Dec 2012 14:22:56 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:68249 Archived-At: I'd like to use this attribute on the face that yasnippet sets on active field overlays. So, to reproduce: 1. Install yasnippet. 2. Eval this: (let ((color (face-attribute 'region :background))) (defface yas-field-highlight-box `((t :box (:line-width -1 :color ,color))) "Box the color of region.")) (put 'yas-field-highlight-face 'face-alias 'yas-field-highlight-box) 3. Open a buffer, M-x ruby-mode, type "forin", press Tab. Problems: a) Despite line-width of -1, the character widths are still affected. You can observe it when tabbing between the fields: as the field becomes inactive, it shrinks in width a bit. b) The box border is drawn not only around the overlay, but also around all pieces of text with different faces inside it. To reproduce, type this in one of the fields: "abc"[/b/] If installing yasnippet is a problem, I can try to localize the bug with a smaller example. --Dmitry In GNU Emacs 24.2.90.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.6.0) of 2012-11-26 on vbx Bzr revision: 110959 rgm@gnu.org-20121126014100-0199uq4y2fo0cnaz Windowing system distributor `The X.Org Foundation', version 11.0.11300000 System Description: Ubuntu 12.10