From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?Cl=c3=a9ment_Pit--Claudel?= Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] comment-cache 223d16f 2/3: Apply `comment-depth' text properties when calling `back_comment'. Date: Sat, 12 Mar 2016 16:29:43 -0500 Message-ID: <56E48A47.9060404@gmail.com> References: <20160308132530.861.91488@vcs.savannah.gnu.org> <20160308183010.GB6269@acm.fritz.box> <20160309174816.GE3948@acm.fritz.box> <56E0805F.3050804@gmx.at> <20160312170839.GE2572@acm.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="nBNaKSnkf436qntSa7bCMbPro0haP97gO" X-Trace: ger.gmane.org 1457818206 4209 80.91.229.3 (12 Mar 2016 21:30:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 12 Mar 2016 21:30:06 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 12 22:29:57 2016 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 1aer6h-0003Lf-9o for ged-emacs-devel@m.gmane.org; Sat, 12 Mar 2016 22:29:55 +0100 Original-Received: from localhost ([::1]:33467 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aer6g-0007EA-5r for ged-emacs-devel@m.gmane.org; Sat, 12 Mar 2016 16:29:54 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51010) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aer6d-0007E5-EW for emacs-devel@gnu.org; Sat, 12 Mar 2016 16:29:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aer6Y-0000iG-Er for emacs-devel@gnu.org; Sat, 12 Mar 2016 16:29:51 -0500 Original-Received: from mout.kundenserver.de ([212.227.126.135]:51791) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aer6Y-0000iC-5X for emacs-devel@gnu.org; Sat, 12 Mar 2016 16:29:46 -0500 Original-Received: from [18.189.75.34] ([18.189.75.34]) by mrelayeu.kundenserver.de (mreue003) with ESMTPSA (Nemesis) id 0LzFPp-1Zjv0j4BvN-014WJ1 for ; Sat, 12 Mar 2016 22:29:45 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 In-Reply-To: X-Provags-ID: V03:K0:tMmGgVUBsb2Owd9fvF0BN8a1H/eG43x7Zrc3tsvf95MbcCk/QF6 ydIzQGwNzKb4Ys7JbEKwDVOP8lX6yZppgdQBnfHweNOikoUjKlh32rbNRD/ecMHuuSCsBfB EcGDzfmhUjher1qZxd5SdlxLl0+c4mZv2knti94QqEzA3AmyvZcCtaR3Rq3BDEFZf+y4nvD 2lgMXyHL6FONJdgzSjqpQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:KZ26cWpRpno=:OcWO9IzVBOlIp1AhbjifuI F0Tf88AGy//p/kb0L3XPId0euS9XVaj+TkLFSPGr+sBAVBMiwlb+s7gvuv0VcG1oSKKxEk0Vs ix9puqIBUOLL+fdsJGUyjyx8A8G8FJoVmsOeEmSlazV5wWfgwfzFeTohiGCO542xdxBR8sl9b wY8/DDgdBlXejl21SRmY14CuaQlDD5CTrfGrf4O2QvYosICqvEjxXUov0ixMyLufCLSPuZJN3 yNm6HsCchOhOXP9IqSYtJuxYog8sP8BbivoztxYNFxf3R9BaWl+wPGgkelzKSB5fMCiEIPNCx Avy6EK21cI4b7rCioX0tm4ZNCm2Rntoxd3sHc+Kyjz5vfe+QRRs3Vio5iP5jqztS2pneet3J/ jdr6IPV+u2PMaQm854KdbkLgpIVR0z62Q+2UGXLJeVoj8WrOX7D319kmhUVtuu7gO4ixmh3Ss 1dpbjjCvNRF8/yT1g0MXw6StWtGq3aVCvig5MXsprUk1myICXKfSdz4ByTY9eBZsJybgeQNTy S57UWflZXXLFKntLhcmc1KeMfqHxg71r6fQ83L4NZmJjWJeHlg2IDtTkU/cxQPXGgIcHkvAwf VRZxR2d8GCqG3dKRQwZ3mW9puD3K+6SBBQmdhWgJdCe04DNZ+RfeN1ikKgxLQRB/QZvcoCmzf VEdEJryYAhhOUu2dEm/phv00UYmab6aI1rpFY798Y1OGna12fvZw/mvygko26vmHm8qM= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.126.135 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:201558 Archived-At: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --nBNaKSnkf436qntSa7bCMbPro0haP97gO Content-Type: multipart/mixed; boundary="EIbsDjqoDeQESwom8m67Npr7RsbO4u7Xh" From: =?UTF-8?Q?Cl=c3=a9ment_Pit--Claudel?= To: emacs-devel@gnu.org Message-ID: <56E48A47.9060404@gmail.com> Subject: Re: [Emacs-diffs] comment-cache 223d16f 2/3: Apply `comment-depth' text properties when calling `back_comment'. References: <20160308132530.861.91488@vcs.savannah.gnu.org> <20160308183010.GB6269@acm.fritz.box> <20160309174816.GE3948@acm.fritz.box> <56E0805F.3050804@gmx.at> <20160312170839.GE2572@acm.fritz.box> In-Reply-To: --EIbsDjqoDeQESwom8m67Npr7RsbO4u7Xh Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 03/12/2016 03:56 PM, Dmitry Gutov wrote: > On 03/12/2016 07:08 PM, Alan Mackenzie wrote: >=20 >> Now, if only we had a nice fast method of determining whether we were = in >> a literal, and then getting out of it ..... :-) >=20 > Why not >=20 > (save-restriction > (prog-widen) > (let* ((state (syntax-ppss)) > (lit-start (nth 8 state))) > (when lit-start > (goto-char lit-start)))) >=20 > ? Does this break on=20 /* test */ in C mode? ( indicate the position of the point) --EIbsDjqoDeQESwom8m67Npr7RsbO4u7Xh-- --nBNaKSnkf436qntSa7bCMbPro0haP97gO Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJW5IpHAAoJEPqg+cTm90wjBYIQAIeE1Alpet+6k4IcAXmBgYKu 2rgmxEEzgN2BmeJwiJqtrzT0ywqvyURf25wjCHnL4OCwG9iC4DoOQ4dz1YEPvtG7 Ov+jwt1JLMEFKSfDnv1FONZtMBs01uXc1OyIy/MNgPyuphkxVHR/F9r0vgFtOXtd RjVNQ2XQIg0G/I1ytzo8saHoWn/xdk8XvO7OKGLykk9dktVxSbNy6hL8DoQNgJx+ NUwy2QXzDOj2lwBM4wXMgbTO+trGU/lv9P4j70HpgcT1Mhvmdnl8DKqeB0JXo4oV wCumbMvjjG89nc/A/2JuwABLdfHpz2he5T2nwvToQXhTe/qlJoueKcDtEmZipN7h KQg8JpKXMMwA1jeBLKY5/uQP+YiEHR6LxdspIe++6c8KDiGkLtF4EU/8Pz+bwfBf N8td26/FCMW3vXeC1akY2f+Kf7B4F6kKGpwK3/N537Zto5LE0ltIcQGFZZMj6/+T MUcSuJB46KTN5qIkeaQB+umCByKNcza+QRIz9UyLVRFZEBLw3OoiN59s1ROK1XG4 XAYacsEA930lGpyY3ZTGzYkx4SotZq3XI6VmCUTcOplflHJe/0Lc4ihaBSzNfPd0 YsHqBcajpgqkKvtLDBtZOT6kXhSj7mVGjbKDa5YelsgVLyQYucFp210o5GWPmbyP wAfhEmEpaYJ+Y6ZcGa33 =6PiE -----END PGP SIGNATURE----- --nBNaKSnkf436qntSa7bCMbPro0haP97gO--