aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2010-08-20 00:33:06 -0700
committerGlenn Morris2010-08-20 00:33:06 -0700
commit9130a2d65e43df830bc987b519b46904bf111334 (patch)
treedef512901ec50c716bf414cb33f6579da58a0ca0
parentfb89a65490016bfb747b80a6967dc619944ef945 (diff)
downloademacs-9130a2d65e43df830bc987b519b46904bf111334.tar.gz
emacs-9130a2d65e43df830bc987b519b46904bf111334.zip
Minor align-regexp fix.
* lisp/align.el (align-regexp): Make group and spacing arguments use the interactive defaults when non-interactive. (Bug#6698)
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/align.el6
2 files changed, 7 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index c104d38cdfd..0b9731ae904 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
12010-08-20 Glenn Morris <rgm@gnu.org> 12010-08-20 Glenn Morris <rgm@gnu.org>
2 2
3 * align.el (align-regexp): Make group and spacing arguments
4 use the interactive defaults when non-interactive. (Bug#6698)
5
3 * mail/rmail.el (rmail-forward): Replace mail-text-start with its 6 * mail/rmail.el (rmail-forward): Replace mail-text-start with its
4 expansion, so as not to need sendmail. 7 expansion, so as not to need sendmail.
5 (mail-text-start): Remove declaration. 8 (mail-text-start): Remove declaration.
diff --git a/lisp/align.el b/lisp/align.el
index 9d811327021..0812d362875 100644
--- a/lisp/align.el
+++ b/lisp/align.el
@@ -1,7 +1,7 @@
1;;; align.el --- align text to a specific column, by regexp 1;;; align.el --- align text to a specific column, by regexp
2 2
3;; Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 3;; Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
4;; 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. 4;; 2008, 2009, 2010 Free Software Foundation, Inc.
5 5
6;; Author: John Wiegley <johnw@gnu.org> 6;; Author: John Wiegley <johnw@gnu.org>
7;; Maintainer: FSF 7;; Maintainer: FSF
@@ -944,6 +944,8 @@ region, call `align-regexp' and type in that regular expression."
944 (list (concat "\\(\\s-*\\)" 944 (list (concat "\\(\\s-*\\)"
945 (read-string "Align regexp: ")) 945 (read-string "Align regexp: "))
946 1 align-default-spacing nil)))) 946 1 align-default-spacing nil))))
947 (or group (setq group 1))
948 (or spacing (setq spacing align-default-spacing))
947 (let ((rule 949 (let ((rule
948 (list (list nil (cons 'regexp regexp) 950 (list (list nil (cons 'regexp regexp)
949 (cons 'group (abs group)) 951 (cons 'group (abs group))