From: "D. Goel" <deego@glue.umd.edu>
Subject: (indent-region) &optional suggested...
Date: 18 May 2002 14:43:50 -0400 [thread overview]
Message-ID: <ap3vg9lguu1.fsf@poynting.umd.edu> (raw)
(indent-region) allows its last argument to be nil, and in that case,
assumes mode-based defaults.. we might as well make that argument
optional... diff attached..
D <http://www.glue.umd.edu/~deego/>
--
Did you know that FSF sells GNUish buttons for real cheap?-----
https://agia.fsf.org/
====================================================
diff -cw /homes/deego/emacs/indent-orig.el /homes/deego/emacs/indent.el
*** /homes/deego/emacs/indent-orig.el Sat May 18 14:39:15 2002
--- /homes/deego/emacs/indent.el Sat May 18 14:39:52 2002
***************
*** 296,302 ****
"Short cut function to indent region using `indent-according-to-mode'.
A value of nil means really run `indent-according-to-mode' on each line.")
! (defun indent-region (start end column)
"Indent each nonblank line in the region.
With prefix no argument, indent each line using `indent-according-to-mode',
or use `indent-region-function' to do the whole region if that's non-nil.
--- 296,302 ----
"Short cut function to indent region using `indent-according-to-mode'.
A value of nil means really run `indent-according-to-mode' on each line.")
! (defun indent-region (start end &optional column)
"Indent each nonblank line in the region.
With prefix no argument, indent each line using `indent-according-to-mode',
or use `indent-region-function' to do the whole region if that's non-nil.
Diff finished at Sat May 18 14:40:08
reply other threads:[~2002-05-18 18:43 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=ap3vg9lguu1.fsf@poynting.umd.edu \
--to=deego@glue.umd.edu \
/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).