bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#34671: 27.0.50; Outdated code listings in (elisp) Example Major Mode


From: Basil L. Contovounesios
Subject: bug#34671: 27.0.50; Outdated code listings in (elisp) Example Major Modes
Date: Tue, 26 Feb 2019 17:06:58 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Attachment: 0001-Update-example-major-mode-code-in-Elisp-manual.patch
Description: Text Data

Attachment: 0002-Use-lexical-binding-in-text-mode.el.patch
Description: Text Data

Attachment: 0003-Do-not-set-indent-line-function-in-text-mode.patch
Description: Text Data

"Basil L. Contovounesios" <contovob@tcd.ie> writes:

> Some of the examples in '(elisp) Example Major Modes' do not reflect the
> current code in lisp/textmodes/text-mode.el and
> lisp/emacs-lisp/lisp-mode.el.  Furthermore, the indentation of the
> lisp-mode-map listing in the manual is off due to a tab character in its
> Texinfo source.
>
> Patch(es) to follow.

I attach said patches; WDYT?

The first patch reconciles the code listings in the manual with the
current state of the corresponding libraries.

The second patch enables lexical-binding in text-mode.el along with some
minor aesthetic changes.

The last patch fulfils an old promise in the manual to eventually forgo
setting indent-line-function in text-mode, which is considered
redundant.

Thanks,

-- 
Basil

reply via email to

[Prev in Thread] Current Thread [Next in Thread]