From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "D. Goel" Newsgroups: gmane.emacs.bugs Subject: (indent-region) &optional suggested... Date: 18 May 2002 14:43:50 -0400 Organization: University of Maryland College Park Sender: bug-gnu-emacs-admin@gnu.org Message-ID: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1021747500 29664 127.0.0.1 (18 May 2002 18:45:00 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 18 May 2002 18:45:00 +0000 (UTC) Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 1799CN-0007iL-00 for ; Sat, 18 May 2002 20:45:00 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 1799Cn-0007cI-00; Sat, 18 May 2002 14:45:25 -0400 Original-Received: from chx400.switch.ch ([130.59.10.2]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 1799BL-0007IQ-00 for ; Sat, 18 May 2002 14:43:55 -0400 Original-Received: from grapevine.wam.umd.edu ([128.8.10.18]) by chx400.switch.ch with esmtp (Exim 3.20 #1) id 1799BK-00072b-00 for gnu-emacs-bug@moderators.isc.org; Sat, 18 May 2002 20:43:54 +0200 Original-Received: from grapevine.wam.umd.edu (localhost [127.0.0.1]) by grapevine.wam.umd.edu (8.9.3/8.9.3) with SMTP id OAA09201 for ; Sat, 18 May 2002 14:43:52 -0400 (EDT) Original-Received: (from news@localhost) by grapevine.wam.umd.edu (8.9.3/8.9.3) id OAA09197 for gnu-emacs-bug@moderators.isc.org; Sat, 18 May 2002 14:43:51 -0400 (EDT) Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 38 Original-NNTP-Posting-Host: poynting.umd.edu Original-X-Trace: grapevine.wam.umd.edu 1021747430 9050 128.8.86.100 (18 May 2002 18:43:50 GMT) Original-X-Complaints-To: abuse@wam.umd.edu Original-NNTP-Posting-Date: Sat, 18 May 2002 18:43:50 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:1440 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:1440 (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 -- 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