From: Stefan Monnier <monnier@iro.umontreal.ca>
To: rms@gnu.org
Cc: emacs-devel@gnu.org
Subject: Re: Fwd: Bug in lisp indentation
Date: Sun, 15 Jul 2007 21:49:38 -0400 [thread overview]
Message-ID: <jwvejj9jf1a.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <E1I9luf-0006vC-LO@fencepost.gnu.org> (Richard Stallman's message of "Sat\, 14 Jul 2007 14\:00\:13 -0400")
> neither is the beaviour of indent-region consistent with TAB.
This is very easy to fix. And I think it's a good idea in any case.
See patch below,
Stefan
--- lisp-mode.el 08 jui 2007 14:44:28 -0400 1.202
+++ lisp-mode.el 15 jui 2007 21:49:08 -0400
@@ -214,8 +214,6 @@
;;(set (make-local-variable 'adaptive-fill-mode) nil)
(make-local-variable 'indent-line-function)
(setq indent-line-function 'lisp-indent-line)
- (make-local-variable 'indent-region-function)
- (setq indent-region-function 'lisp-indent-region)
(make-local-variable 'parse-sexp-ignore-comments)
(setq parse-sexp-ignore-comments t)
(make-local-variable 'outline-regexp)
@@ -1206,16 +1204,6 @@
(setq outer-loop-done (= (point) last-point))
(setq last-point (point)))))))
-(defun lisp-indent-region (start end)
- "Indent every line whose first char is between START and END inclusive."
- (save-excursion
- (let ((endmark (copy-marker end)))
- (goto-char start)
- (and (bolp) (not (eolp))
- (lisp-indent-line))
- (indent-sexp endmark)
- (set-marker endmark nil))))
-
(defun indent-pp-sexp (&optional arg)
"Indent each line of the list starting just after point, or prettyprint it.
A prefix argument specifies pretty-printing."
next prev parent reply other threads:[~2007-07-16 1:49 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-14 18:00 [lenst@lysator.liu.se: Bug in lisp indentation] Richard Stallman
2007-07-14 19:53 ` Bug in lisp indentation Thien-Thi Nguyen
2007-07-14 20:04 ` Stefan Monnier
2007-07-14 20:46 ` Thien-Thi Nguyen
2007-07-15 14:43 ` Lennart Staflin
2007-07-15 17:23 ` Thien-Thi Nguyen
2007-07-16 14:04 ` Lennart Staflin
2007-07-16 14:59 ` Thien-Thi Nguyen
2007-07-14 20:06 ` Thien-Thi Nguyen
2007-07-16 1:49 ` Stefan Monnier [this message]
2007-07-17 3:34 ` Fwd: " Richard Stallman
2007-07-17 8:27 ` David Kastrup
2007-07-17 17:00 ` Stefan Monnier
2007-07-18 4:42 ` Richard Stallman
2007-07-18 18:49 ` Stefan Monnier
2007-07-20 13:42 ` Richard Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvejj9jf1a.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=rms@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).