aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2005-06-29 13:53:36 +0000
committerJuanma Barranquero2005-06-29 13:53:36 +0000
commit8038e2cf99568a1a85f510ce86bcd0ef28844aec (patch)
tree40bf32b7ea2f6f3b410eeded82b77ffe77759725
parent1bcb666b4491f54f70184ae0d55389d16e12a0f5 (diff)
downloademacs-8038e2cf99568a1a85f510ce86bcd0ef28844aec.tar.gz
emacs-8038e2cf99568a1a85f510ce86bcd0ef28844aec.zip
(cperl-do-auto-fill): Change space constants followed by a sexp to "?\s ".
-rw-r--r--lisp/progmodes/cperl-mode.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/progmodes/cperl-mode.el b/lisp/progmodes/cperl-mode.el
index 63b7ceb6ed0..052df4eedda 100644
--- a/lisp/progmodes/cperl-mode.el
+++ b/lisp/progmodes/cperl-mode.el
@@ -4355,7 +4355,7 @@ indentation and initial hashes. Behaves usually outside of comment."
4355 fill-column) 4355 fill-column)
4356 (let ((c (save-excursion (beginning-of-line) 4356 (let ((c (save-excursion (beginning-of-line)
4357 (cperl-to-comment-or-eol) (point))) 4357 (cperl-to-comment-or-eol) (point)))
4358 (s (memq (following-char) '(?\ ?\t))) marker) 4358 (s (memq (following-char) '(?\s ?\t))) marker)
4359 (if (>= c (point)) 4359 (if (>= c (point))
4360 ;; Don't break line inside code: only inside comment. 4360 ;; Don't break line inside code: only inside comment.
4361 nil 4361 nil
@@ -4366,11 +4366,11 @@ indentation and initial hashes. Behaves usually outside of comment."
4366 (if (bolp) (progn (re-search-forward "#+[ \t]*") 4366 (if (bolp) (progn (re-search-forward "#+[ \t]*")
4367 (goto-char (match-end 0)))) 4367 (goto-char (match-end 0))))
4368 ;; Following space could have gone: 4368 ;; Following space could have gone:
4369 (if (or (not s) (memq (following-char) '(?\ ?\t))) nil 4369 (if (or (not s) (memq (following-char) '(?\s ?\t))) nil
4370 (insert " ") 4370 (insert " ")
4371 (backward-char 1)) 4371 (backward-char 1))
4372 ;; Previous space could have gone: 4372 ;; Previous space could have gone:
4373 (or (memq (preceding-char) '(?\ ?\t)) (insert " ")))))) 4373 (or (memq (preceding-char) '(?\s ?\t)) (insert " "))))))
4374 4374
4375(defun cperl-imenu-addback (lst &optional isback name) 4375(defun cperl-imenu-addback (lst &optional isback name)
4376 ;; We suppose that the lst is a DAG, unless the first element only 4376 ;; We suppose that the lst is a DAG, unless the first element only