From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Daniele Nicolodi Newsgroups: gmane.emacs.devel Subject: Re: Major mode and implementation of expected editing facilities Date: Tue, 28 May 2019 22:21:06 -0600 Message-ID: <4b80c74e-301c-2333-101d-75f49d37c4dd@grinta.net> References: <82832b3f-9e1c-cc3a-0a47-24e752e5b56c@grinta.net> <83blzn1epr.fsf@gnu.org> <0638d02d-967a-f0db-89f7-02f97bab87ba@grinta.net> <0C100B81-F296-44C7-8098-3111C709A8F1@gnu.org> <835zpu1ve2.fsf@gnu.org> <83h89eyopq.fsf@gnu.org> <40f1648f-2552-dbcd-cae9-d7d7424f657c@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="74077"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 Cc: emacs-devel@gnu.org To: =?UTF-8?Q?Cl=c3=a9ment_Pit-Claudel?= , Eli Zaretskii , John Yates Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 29 06:21:49 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hVq61-000J9X-4M for ged-emacs-devel@m.gmane.org; Wed, 29 May 2019 06:21:49 +0200 Original-Received: from localhost ([127.0.0.1]:46830 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVq5z-0001it-Pl for ged-emacs-devel@m.gmane.org; Wed, 29 May 2019 00:21:47 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:45043) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVq5P-0001ib-30 for emacs-devel@gnu.org; Wed, 29 May 2019 00:21:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hVq5O-0002yb-7V for emacs-devel@gnu.org; Wed, 29 May 2019 00:21:11 -0400 Original-Received: from zed.grinta.net ([109.74.203.128]:51046) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVq5M-0002xs-UW; Wed, 29 May 2019 00:21:09 -0400 Original-Received: from black.hsd1.co.comcast.net (c-98-245-163-4.hsd1.co.comcast.net [98.245.163.4]) (Authenticated sender: daniele) by zed.grinta.net (Postfix) with ESMTPSA id BC989E92DB; Wed, 29 May 2019 04:21:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=grinta.net; s=mail; t=1559103668; bh=Am6m+IaJvwhlFKL5NTQBDzxftaw+0L2nOawpbbjvLQk=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=hCR13Up/ZT3HXIsxQgi4ffmLmbE5xhcOYc0TlIDdSEmwF5scRzy5j3JhXYWPxjFzb DY2PkA/jvMNAqVjuVuhRjwvoAV9Sea84qOuDAzMvLo7yYbyGsPACLYVYVedX6vMEbz i31xo3QRkakZdCafvWZHYwac0B+4tEKZ52Tvmxv8= Openpgp: preference=signencrypt In-Reply-To: <40f1648f-2552-dbcd-cae9-d7d7424f657c@gmail.com> Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 109.74.203.128 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:237142 Archived-At: On 28/05/2019 22:11, Cl=C3=A9ment Pit-Claudel wrote: > On 2019-05-28 22:33, Eli Zaretskii wrote: >> If you or someone else want to suggest improvements for that chapter >> of the manual, please do, and thanks in advance. >=20 > To get the ball rolling, I'll mention a few facilities that I like > major modes to hook into. Others can likely point out many > omissions: [snip] Thanks Cl=C3=A9ment! This is what I was looking for. I wish it could fi= nd its way into documentation. > Btw, a good place to find these things is existing mode functions; > look for setq-local or (set (make-local-variable =E2=80=A6) =E2=80=A6) = in > define-derived-mode blocks. This is how I found the hooks that my mode already implements, but it is a bit tedious to have to go through the source code. Cheers, Dan