Closes #372: removed trailing spaces in snippets

This commit is contained in:
Joao Tavora
2013-05-05 21:15:27 -04:00
parent 9df05fc413
commit 8bf75fe425
33 changed files with 40 additions and 40 deletions

View File

@@ -3,7 +3,7 @@
# key: x-dired
# --
;; idiom for processing a list of files in dired's marked files
;; suppose myProcessFile is your function that takes a file path
;; and do some processing on the file

View File

@@ -10,8 +10,8 @@
(buffer-string) "\n" t)) )
;; process all lines
(mapc
(lambda (aLine)
(mapc
(lambda (aLine)
(message aLine) ; do your stuff here
)
(read-lines "inputFilePath")

View File

@@ -6,7 +6,7 @@
"Replace “<” to “&lt;” and other chars in HTML.
This works on the current region."
(interactive "r")
(save-restriction
(save-restriction
(narrow-to-region start end)
(goto-char (point-min))
(while (search-forward "&" nil t) (replace-match "&amp;" nil t))