From e06ab4081ce4029d7bcd7e1906c50ba6d75664f1 Mon Sep 17 00:00:00 2001 From: Taylor R Campbell Date: Sun, 20 Mar 2011 17:33:28 +0000 Subject: Spell `paredit-recenter-on-sexp' to match convention in Emacs. Ignore-this: d3bd6a4462a90bf7182e089a0f54bfb9 Omit comment above. I rewrote this function since the suggestion, Marco suggested a lot more than just that, and credits are moving to a separate file. darcs-hash:20110320173328-00fcc-dab332a1d49f961105b3477e669cd45af6791627 --- paredit.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'paredit.el') diff --git a/paredit.el b/paredit.el index e00df9d..1622cea 100644 --- a/paredit.el +++ b/paredit.el @@ -453,7 +453,7 @@ Paredit behaves badly if parentheses are imbalanced, so exercise "\"Hello, |world!\"") ("hello-\n| world" "hello-|world")) - ("C-c C-M-l" paredit-recentre-on-sexp) + ("C-c C-M-l" paredit-recenter-on-sexp) ("M-q" paredit-reindent-defun) )) nil) ; end of PROGN @@ -1703,10 +1703,10 @@ A negative argument means move forward but still descend a level." (interactive "p") (down-list (- (or arg 1)))) -;;; Thanks to Marco Baringer for suggesting & writing this function. +(defalias 'paredit-recentre-on-sexp 'paredit-recenter-on-sexp) -(defun paredit-recentre-on-sexp (&optional n) - "Recentre the screen on the S-expression following the point. +(defun paredit-recenter-on-sexp (&optional n) + "Recenter the screen on the S-expression following the point. With a prefix argument N, encompass all N S-expressions forward." (interactive "P") (save-excursion -- cgit v1.2.1