From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#25529: diagnosis and one approach to a fix Date: Tue, 7 Feb 2017 15:11:13 +0200 Message-ID: <0c64a77a-fc01-e1dc-54d2-5564dde3f17f@yandex.ru> References: <87wpd58ag6.fsf@tromey.com> <87shnt89be.fsf@tromey.com> <87o9yg8qdi.fsf@tromey.com> <87k2948onb.fsf@tromey.com> <183374a4-6469-44af-6ae6-fec02874547a@yandex.ru> <87bmuf8c1l.fsf@tromey.com> <87a89y87zv.fsf@tromey.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1486473139 28933 195.159.176.226 (7 Feb 2017 13:12:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 7 Feb 2017 13:12:19 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.0 Cc: 25529@debbugs.gnu.org, Stefan Monnier To: Tom Tromey Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 07 14:12:10 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1cb5Z1-00071b-VZ for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 Feb 2017 14:12:08 +0100 Original-Received: from localhost ([::1]:53971 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cb5Z7-0001Ei-Gk for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 Feb 2017 08:12:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48325) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cb5Z1-0001EQ-Me for bug-gnu-emacs@gnu.org; Tue, 07 Feb 2017 08:12:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cb5Yw-0002wk-OJ for bug-gnu-emacs@gnu.org; Tue, 07 Feb 2017 08:12:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60223) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cb5Yw-0002wb-M8 for bug-gnu-emacs@gnu.org; Tue, 07 Feb 2017 08:12:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cb5Yw-0006uX-Bi for bug-gnu-emacs@gnu.org; Tue, 07 Feb 2017 08:12:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 07 Feb 2017 13:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25529 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25529-submit@debbugs.gnu.org id=B25529.148647308526494 (code B ref 25529); Tue, 07 Feb 2017 13:12:02 +0000 Original-Received: (at 25529) by debbugs.gnu.org; 7 Feb 2017 13:11:25 +0000 Original-Received: from localhost ([127.0.0.1]:58412 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cb5YK-0006tG-Uc for submit@debbugs.gnu.org; Tue, 07 Feb 2017 08:11:25 -0500 Original-Received: from mail-wm0-f68.google.com ([74.125.82.68]:35778) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cb5YI-0006sz-K7 for 25529@debbugs.gnu.org; Tue, 07 Feb 2017 08:11:22 -0500 Original-Received: by mail-wm0-f68.google.com with SMTP id u63so28210939wmu.2 for <25529@debbugs.gnu.org>; Tue, 07 Feb 2017 05:11:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=863BeJr9YCXDT+c5R92um+prPW/AyGdYgLg+Ilxh0ZM=; b=uKzPx69TvWx5eC79cQxPa0prcbs3hLRZ2/ePnAbYrtVbW9D8VqDhj2zqdeGnGslXnY mVaBnVhiYmYnkeWsKhvLskt2AR6QTmUdxagiCgFym2A273Txmw2vGa06iAcF9IYMETOH 4MxyU69ZG1z3aDyeROfheIcfKeaDmmmH+HByXhlTxqODKL6MWdiGznXpbHHzy0uSKoW6 aotRY7bYeBJXshUIt4rrAlAFL5KTGkaM6mitLsnZ0Uy0HRuP5BE4m+HdWKs+Z+W9XTjL LliTbqL/ftHHjd/v1/64qgQURQUdF/wQQViYt9awXDVMlod7rDrt06NDBk2pVFLAKQii tRIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=863BeJr9YCXDT+c5R92um+prPW/AyGdYgLg+Ilxh0ZM=; b=hiDC0z4+T5F3yj2uiYHQE71w44EnBm4wqEK6hNIDwq8lmQckEQ5H6/zfLMsPx2CVP8 7pUekiPLR9gXJBj2TBpm9qd+RiMEyqAQ/tTCaCP0nrsr8vZxxG5mVx+CCxPBAaZAGhTq tq1Q1STITvPR9sotjCPISGFYW85k2V0a/b5xJgtz5T4pHWOTJv6Hl44A5kMTDZpYnNDa epjkrXhtpBfUd5J1SdYNatdDSj333eNiDyyX4hck8VpiLQ179uQ2IczslCYNpNvaPGO+ zm8j+nxNmU6OrEdm7UHa7R9ysx/Xips+9r9nNnWHhuKSoFpq0akJgf/liUGzLJT9hhRA oOCg== X-Gm-Message-State: AMke39loMLVVUBSrguKt6VPxje/iupl9wZuA1RIOs/Woc7NVlvPtsK73f3CGY0iCwe6PJg== X-Received: by 10.28.93.68 with SMTP id r65mr14317944wmb.133.1486473076876; Tue, 07 Feb 2017 05:11:16 -0800 (PST) Original-Received: from [192.168.0.133] ([212.50.99.193]) by smtp.googlemail.com with ESMTPSA id w17sm7305214wra.28.2017.02.07.05.11.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Feb 2017 05:11:16 -0800 (PST) In-Reply-To: <87a89y87zv.fsf@tromey.com> Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:129067 Archived-At: On 07.02.2017 15:07, Tom Tromey wrote: > Dmitry> I'm not sure. Normally, that helps deal with multiline literals, but > Dmitry> regexps in JavaScript are single-line. Maybe Stefan remembers. > > Based on discussion in the multi-mode thread, I'm thinking perhaps it > handles the case where the start of the regexp literal was syntax-ified > but not the end. That's the idea, but syntax-propertize runs syntax-propertize-extend-region-functions, which extends to the beginning of the line of the edited region. So if we made an edit inside a line containing a regexp, START should be at the beginning of that line. There could be some edge cases, though.