From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: Escaping quotes in docstrings, Was: A simple solution to "Upcoming loss of usability ..." Date: Thu, 2 Jul 2015 12:46:15 +0300 Message-ID: <55950867.5080304@yandex.ru> References: <87egkzg7gb.fsf@gmail.com> <558C2E25.10303@cs.ucla.edu> <558C492E.9000705@yandex.ru> <558C7DE1.4060507@cs.ucla.edu> <558C82D2.1070408@yandex.ru> <558CBA7E.7060900@cs.ucla.edu> <558D403D.303@yandex.ru> <558EDD4C.4040002@cs.ucla.edu> <558EE315.3080107@yandex.ru> <558F10FA.409@cs.ucla.edu> <558F4804.1020406@yandex.ru> <559010D6.5090905@cs.ucla.edu> <559058AD.5060504@yandex.ru> <55908355.3080407@yandex.ru> <559356D2.4000103@cs.ucla.edu> <5594813A.3000705@yandex.ru> <5594E0DB.1080702@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1435830402 8182 80.91.229.3 (2 Jul 2015 09:46:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 2 Jul 2015 09:46:42 +0000 (UTC) To: Paul Eggert , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 02 11:46:37 2015 Return-path: Envelope-to: ged-emacs-devel@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 1ZAb4m-0002en-OG for ged-emacs-devel@m.gmane.org; Thu, 02 Jul 2015 11:46:36 +0200 Original-Received: from localhost ([::1]:35590 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZAb4l-0007J5-UQ for ged-emacs-devel@m.gmane.org; Thu, 02 Jul 2015 05:46:35 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35294) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZAb4e-0007Iv-SV for emacs-devel@gnu.org; Thu, 02 Jul 2015 05:46:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZAb4b-0006tp-Mb for emacs-devel@gnu.org; Thu, 02 Jul 2015 05:46:28 -0400 Original-Received: from mail-wi0-x232.google.com ([2a00:1450:400c:c05::232]:36041) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZAb4b-0006tl-Eg for emacs-devel@gnu.org; Thu, 02 Jul 2015 05:46:25 -0400 Original-Received: by widjy10 with SMTP id jy10so79848730wid.1 for ; Thu, 02 Jul 2015 02:46:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=vD+Xl4THBo6XtmVVbgIrFxdivxe0BD1ugeWqJ60U1kA=; b=IA4fYPXOeIosz5SniC63Qjm+wrWE9XM7ADC3V7W/PrqC+agu2O3TMg/kggpBa622KL wFNRS59qXvC9CWWYCeCQgBOCvDtfgAtMyCs3pKmUdfnzuJVTERgRIllvfJPoMxlU/Qq7 MbWIul5xC/y1N7K+TZWuvbOHxHHM2y9SGBYLvO4JWoy8gQiTI7jxwyxxd2EjIB7UR/Hx 2eKPu+eMQvrY+rwZJ9LCmJ9lMIrEv924+afPsxp7YqUr/qz2tg8140Hcd1Xqj04ueSJe myJszRZrfS+HvDNGBb3URlNFKxk2ZhCYDGj+lv35mOwkHYiRTyn1SpO6vi7ldf5PjTfR HOqg== X-Received: by 10.180.83.137 with SMTP id q9mr54651824wiy.68.1435830384704; Thu, 02 Jul 2015 02:46:24 -0700 (PDT) Original-Received: from [192.168.1.2] ([82.102.93.54]) by mx.google.com with ESMTPSA id e2sm7179344wjw.12.2015.07.02.02.46.22 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Jul 2015 02:46:23 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0 In-Reply-To: <5594E0DB.1080702@cs.ucla.edu> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::232 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:187709 Archived-At: On 07/02/2015 09:57 AM, Paul Eggert wrote: > I've seen highlighting vanish, but I've never seen the characters > change. Anyway.... Try that with prettify-symbols-mode. >> Why? I'm assuming the value is separated from the other contents by >> whitespace >> or newlines. > > I don't think that's a safe assumption. It's common for quoted > help-values to be jammed into the middle of other text. I'd need an example. But anyway, this question will be moot if we delegate escaping to the lower level. > But buffer-substring-no-properties has no properties in the result, > right? So effectively they're removed. No, they remain on the text. We just use a small piece of it, without properties, to change the appearance of the said text (compose-region adds an extra property). > And what about the TAB? Indeed, it's a problem in that implementation. But anyway, again, we're unlikely to end up using it.