From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Jonas Bernoulli" Newsgroups: gmane.emacs.bugs Subject: replacing display specification fails to preserve box around replaced text Date: Sat, 22 Mar 2008 16:52:23 +0100 Message-ID: <201bac3a0803220852k82b944eh78a46bb9cfcf415f@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1206201161 4341 80.91.229.12 (22 Mar 2008 15:52:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 22 Mar 2008 15:52:41 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 22 16:53:11 2008 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.50) id 1Jd61t-0006Sw-Vr for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Mar 2008 16:53:10 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jd61J-0007KC-Ag for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Mar 2008 11:52:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jd61E-0007K6-87 for bug-gnu-emacs@gnu.org; Sat, 22 Mar 2008 11:52:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jd61C-0007Ju-9S for bug-gnu-emacs@gnu.org; Sat, 22 Mar 2008 11:52:27 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jd61C-0007Jr-5r for bug-gnu-emacs@gnu.org; Sat, 22 Mar 2008 11:52:26 -0400 Original-Received: from nf-out-0910.google.com ([64.233.182.188]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jd61B-0004Rb-FF for bug-gnu-emacs@gnu.org; Sat, 22 Mar 2008 11:52:25 -0400 Original-Received: by nf-out-0910.google.com with SMTP id f5so724716nfh.26 for ; Sat, 22 Mar 2008 08:52:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; bh=sph2oJdYrEeUypCIpdxMNSNMcSq++XGLkOIs4vfod54=; b=NYrT8aKlo9CLfiRr1piLBpmXhNdPANSBVWJM0q9FryQGOWBQUUftijyZs4HMK9F/LBc7vd0StaluktwNFCmUsylEW9gRvEx+JskyCpR5OIlIbkYcbG3OM3egawBjTZrJ7HkuaSisVorTo7fMFfdIFf/wVxsOZy582G4WCbewagY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; b=GeSWf5ekLHWfurPKEbDke3nM8m0H8fvgvyTcHZCXFnX/6MBbT8GNiAa3K/0GnBISsRJ6lD4052vz9Bb/3R40Ng3NAJ4nO3yF4VXM1LfZ+Tk+imDqq//NarygKTIOAN33bKKFUvuYQPiSWMnd2EPpeHiNAtZcygyv6C4/lFZmRBk= Original-Received: by 10.78.189.5 with SMTP id m5mr13746666huf.77.1206201143286; Sat, 22 Mar 2008 08:52:23 -0700 (PDT) Original-Received: by 10.78.124.1 with HTTP; Sat, 22 Mar 2008 08:52:23 -0700 (PDT) Content-Disposition: inline X-Google-Sender-Auth: 6142728a71fdc8c6 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list 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:17745 Archived-At: When replacing the text at the end of a region that has a face which draws a box around that text, replacing text at the end of that region using a display specification fails to preserve the box around the replaced text. The box above and below the replaced text is shown as expected though. At the beginning of the text all sides of the box are shown as expeced. (progn (insert (propertize "foo" 'face '((:box (:line-width 5 :color "red"))))) (backward-char) (put-text-property (point) (1+ (point)) 'display "*")) results in: +--- |fo* +--- (progn (insert (propertize "foo" 'face '((:box (:line-width 5 :color "red"))))) (backward-char 3) (put-text-property (point) (1+ (point)) 'display "*")) results in: +---+ |*oo| +---+ Both 22.1 and 23.0.60 behave this way. -- Jonas