Emacs : Information and code concerning Emacs
Updated: 7/28/2003; 6:30:54 PM.

 

Subscribe to "Emacs" in Radio UserLand.

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.

 
 

Thursday, June 19, 2003

I've fixed a bug in remove-line-boundary-in-region. The problem was that the removal went one line too far. This is fixed. Plus, I commented the code.

(defun remove-line-boundary-in-region (beginning end)
"Collapses all the lines in the specified region into a single line."
(interactive "r")
(save-excursion
(goto-char beginning)
(goto-char (point-at-bol))
(insert "n")

(let ((beg (point)))
(goto-char end)
(while (>= (point) beg)
(delete-indentation)))))


8:47:24 AM    comment []

© Copyright 2003 Tom Pierce.



Click here to visit the Radio UserLand website.

 


June 2003
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30          
May   Jul

Search

 
How this works

Emacs Sources
wedgetsql-indent.el
wedgeuser-add-sql-folding-marks
wedgeremove-line-boundary-in-region

My Subscriptions