From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: joaotavora@gmail.com (=?utf-8?B?Sm/Do28gVMOhdm9yYQ==?=) Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] master bb591f139f: Enhance CC Mode's fontification, etc., of unterminated strings. Date: Tue, 22 May 2018 23:17:22 +0100 Message-ID: <871se31gjx.fsf@gmail.com> References: <20180522174054.GA4504@ACM> <877envijii.fsf@gmail.com> <83zi0rcwmx.fsf@gnu.org> <87zi0rh1ys.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1527027394 23886 195.159.176.226 (22 May 2018 22:16:34 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 22 May 2018 22:16:34 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Cc: tino.calancha@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii , acm@muc.de Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 23 00:16:29 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fLFa1-00066v-Nw for ged-emacs-devel@m.gmane.org; Wed, 23 May 2018 00:16:29 +0200 Original-Received: from localhost ([::1]:58164 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fLFc8-0007ds-94 for ged-emacs-devel@m.gmane.org; Tue, 22 May 2018 18:18:40 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41688) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fLFb0-0007dd-BS for emacs-devel@gnu.org; Tue, 22 May 2018 18:17:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fLFaw-0002iT-Gg for emacs-devel@gnu.org; Tue, 22 May 2018 18:17:29 -0400 Original-Received: from mail-wr0-x236.google.com ([2a00:1450:400c:c0c::236]:35702) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fLFaw-0002hx-8i; Tue, 22 May 2018 18:17:26 -0400 Original-Received: by mail-wr0-x236.google.com with SMTP id i14-v6so22882426wre.2; Tue, 22 May 2018 15:17:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=UzeRY0KTJKqUReCmsgiL89vsBUez70Lz7MpqoRYiC4I=; b=FbjsAiWoxsQE6IFpQkzpF3HciT1XB0kLfkiYex5OVnukA8vlnjN9bVw+/1J4Z2RPkM SBgGrAjRyX16SdhWZFIWfxskYsKOgpxP0AL9jlZbrx71wxqj49mEL9iz4e9w2neyZsed 2WJJLIoXfvHrNA9RFVrUr5lNPFv+bbNJ4dyu+vU/2TBDouUhLSQ1LaT8CET/OO/wQ2RF zdTr5x+lpuvcbrCUno3+lkzLiUY4XR8OvCGSr1qTejxYINrIB/WTf/4vSESJwYK5HXZ7 bt9HqHZJkF0OfpN0AkdXMRTFs4y1BQ7oIUD22gLAEaMGUhksDKink7VzkLjutIvIAMZe vFrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=UzeRY0KTJKqUReCmsgiL89vsBUez70Lz7MpqoRYiC4I=; b=oXX72SB8BmJfuQmq4EUusR2dKJwN0bK46wIvL5ObkkINPlukqy7YkP/Hyn3OtagiC2 ydkZxiZ4YuTSAJvYgvaTgsQ9b1ZYqj9r8PaaDYkBhFszw2fuJG5DhI5XPyrPmouezFVx MKfU0Bb0q5hE+zye75LoEIFnI9z7LCrt9jDhsk1j5uvj9Gl8aABAJSIMi3vw6AuVdP1t LK6amfMgdJjkJ1A91kQ+WqLvJCeYQREM5Xlm9GN01NqSIS2Q4eElvnSFjxKU+QDRmmwH X8I4lqe8gexwI3PMyto/0gtVN91/QbSBV77wkg9jEF6QiUvWvATYouzdXNL5hsO62Loe qhvw== X-Gm-Message-State: ALKqPwctU3SC4Y/IZg+iSa7Zp8D1cZwZszdOv7i7ePzce9QUFoh48zPB XwIjJfCxAqcABSzavG9pB4s= X-Google-Smtp-Source: AB8JxZofxd8w4JDew9d7TAL8HRMtvW5tcyO3FTeorZGOz8r43vh0kr7++ygp77vyNxEW44cQktKmSQ== X-Received: by 2002:adf:82d1:: with SMTP id 75-v6mr179410wrc.77.1527027445127; Tue, 22 May 2018 15:17:25 -0700 (PDT) Original-Received: from lolita.yourcompany.com (188.139.62.94.rev.vodafone.pt. [94.62.139.188]) by smtp.gmail.com with ESMTPSA id n3-v6sm4549904wrp.14.2018.05.22.15.17.23 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 22 May 2018 15:17:24 -0700 (PDT) In-Reply-To: <87zi0rh1ys.fsf@gmail.com> (=?utf-8?Q?=22Jo=C3=A3o_T=C3=A1vor?= =?utf-8?Q?a=22's?= message of "Tue, 22 May 2018 21:25:47 +0100") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::236 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:225580 Archived-At: Eli Zaretskii writes: >> Thanks. How about adding this information to the test file(s), as >> comments, so that others won't need to search high and low for it? > > 1. fix the generated docstring so that M-x > ert-describe-test returns useful information. I can do this. I just pushed this change to master and though it's not perfect, I'm pretty happy with the result. Here's readable output of M-x ert-describe-test for the test that Alan is investigating: electric-pair-autowrapping-5-at-point-2-in-c++-mode-in-strings is a test defined in `electric-tests.elc'. =20=20=20 Electricity test in a `c++-mode' buffer. =20=20=20 Start with point at 2 in a 5-char-long buffer like this one: =20=20=20 |"foo"| (buffer start and end are denoted by `|') =20=20=20 Now call this: =20=20=20 #'(lambda nil (electric-pair-mode 1) (mark-sexp 1)) =20=20=20 Now press the key for: " =20=20=20 The buffer's contents should become: =20=20=20 |""foo""| =20=20=20 , and point should be at 3. Jo=C3=A3o