From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Teemu Likonen Newsgroups: gmane.emacs.devel Subject: wcheck-mode (was: Finding packages to enable by default) Date: Sat, 21 Jun 2014 16:18:26 +0300 Message-ID: <8738ey8kpp.fsf_-_@mithlond.arda> References: <87ob4fg3zp.fsf@gmail.com> <874mzgdm3d.fsf@mithlond.arda> <87r42jd7ld.fsf@mithlond.arda> <83y4wrr822.fsf@gnu.org> <87mwd7d300.fsf@mithlond.arda> <83mwd7qvl2.fsf@gnu.org> <87bntncqe7.fsf@mithlond.arda> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1403356756 23761 80.91.229.3 (21 Jun 2014 13:19:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 21 Jun 2014 13:19:16 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jun 21 15:19:09 2014 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 1WyLCH-0004SU-Ao for ged-emacs-devel@m.gmane.org; Sat, 21 Jun 2014 15:19:09 +0200 Original-Received: from localhost ([::1]:45017 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WyLCG-0008Tn-S2 for ged-emacs-devel@m.gmane.org; Sat, 21 Jun 2014 09:19:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57128) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WyLC7-0008Th-PV for emacs-devel@gnu.org; Sat, 21 Jun 2014 09:19:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WyLC0-00067K-AR for emacs-devel@gnu.org; Sat, 21 Jun 2014 09:18:59 -0400 Original-Received: from mta-out1.inet.fi ([62.71.2.198]:44266 helo=jenni1.inet.fi) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WyLBs-00063H-4b; Sat, 21 Jun 2014 09:18:44 -0400 Original-Received: from mithlond.arda (84.251.136.59) by jenni1.inet.fi (8.5.140.03) id 53A17E3E00377ED1; Sat, 21 Jun 2014 16:18:33 +0300 Original-Received: from dtw by mithlond.arda with local (Exim 4.80) (envelope-from ) id 1WyLBg-00014F-6X; Sat, 21 Jun 2014 16:18:32 +0300 In-Reply-To: (Stefan Monnier's message of "Fri, 20 Jun 2014 21:28:08 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.91 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 62.71.2.198 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:172603 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Stefan Monnier [2014-06-20 21:28:08 -04:00] wrote: > I just had a look at wcheck-mode and it looks very interesting. Would > you be interesting in contributing the code (we could at a minimum > include it in GNU ELPA, tho I think it might be worthwhile in Emacs > itself). Either way is fine. The papers have been signed so I guess you can just pull the code. Potentially Emacs developers can improve it. I'm pretty much of type "I just scratch my own itches" and to me wcheck is about ready. So I'm not interested in new heavy maintenance burden. But I'm here and can help. > I see it is "display and timer driven". The "display driven" part is > interesting since it saves you from having to "touch" text before it > gets syntax-checked. And the "timer driven" part makes it less > intrusive performance-wise. Also it operates on larger chunks of text > at a time, which is more efficient. I remember trying a couple of different things years ago and they all were based on the idea of reading the buffers' window content kind of visually. Invisible text is skipped and text outside window areas is not read nor painted. > I have a question: why does it use window-scroll-functions and such > hooks instead of using jit-lock? Maybe just because I'm not familiar with jit-lock. Wcheck uses some of its features, though. Anyway, the idea is to trigger wcheck read event for after any change in window configuration, buffer content, outline visibility etc. It's perfectly fine to use other methods if they offer similar trigger. After a quick look, maybe through jit-lock-register? > One downside for the user is that ispell.el's M-TAB might not work as > well since by the time wcheck's timer runs to discover your typo, the > user might "too far". Wcheck's "action" feature uses synchronous process to get information From=20its back-end program. Maybe wcheck's version of M-TAB feature can be implemented similar way. I've never used M-TAB, though. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQIcBAEBCAAGBQJTpYYjAAoJEHGdadMkU5RQz5MQALWPQcUAzgFkKibLyi09LwQf WM6/O7BDlcJG6BEujfPSUrHM8AkyFCMeArft/z+3dw6PMQPqslSHsNdl48tQeaBO nS6sQdUo9APfSfejfxgDPerLffSP69Rl/ognvMj8apmRCsPKKnoZZdtclngEvuxA iowgYiY/aisthVQ5QJzCrmughuH2nlQjSa73AAhuBBmrxhu+IsnDv0G8wt6+OEEp sMq1dnhz/jpyqSGx0MtiRgEd360cbRg8YJDIknhLIWplljgAZxwbf19MejqPRdfq pNY+TtkB8BNi+qCWmuGMcPiIRzsDIXTOo8BCAj8IIP0SOvPEdT0XSWC7gbkps6Jr Vre38QIxUrU93lJ09bG6jY/SH/hi0Vn2Ha33K+Gj04crJsWgeH+mVs0hhvJeT8HY 2DWgUOAYK869AmWLXOSIPoFOpRGw9QBEcQiUskgOHKffOpKc2VNFE9DC4/0pHRO3 dgadFq3bltglsR9WLJ/w/8TsKSlx4aPA+iH1ahdpT7ZiRpg+IfGiZ1w6sEdqKxdy 5TW4mlM9a3ZgH2eSzi36DphCXHrB+CGChQUIqlCKrEBySXmX7tyllgch0xQeRlPo FrQZqVetWlzTVfO4VvIW1wPgXJar9bJe3vi2GI8IunVlsHPzHSMk7qKgxvs/jL7s O36X6kUAOqSgUmJUPOrO =3POA -----END PGP SIGNATURE----- --=-=-=--