aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2005-01-03 20:46:22 +0000
committerStefan Monnier2005-01-03 20:46:22 +0000
commit8a525646b0d1b78ecd3e36bf34f7002625814cf5 (patch)
tree6201216418f6185560acd6c73afdba2ee2269a0e
parente817f9a24842f7f949bd82d78d92fa86d139fd81 (diff)
downloademacs-8a525646b0d1b78ecd3e36bf34f7002625814cf5.tar.gz
emacs-8a525646b0d1b78ecd3e36bf34f7002625814cf5.zip
(perl-nochange, perl-calculate-indent):
Don't confuse module-prefixed identifiers for labels. Reported by Juan-Leon Lahoz Garcia <juanleon1@gmail.com>.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/progmodes/perl-mode.el8
2 files changed, 10 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index ac78d4d7f9a..7ad139850ba 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12005-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * progmodes/perl-mode.el (perl-nochange, perl-calculate-indent):
4 Don't confuse module-prefixed identifiers for labels.
5 Reported by Juan-Leon Lahoz Garcia <juanleon1@gmail.com>.
6
12005-01-02 Richard M. Stallman <rms@gnu.org> 72005-01-02 Richard M. Stallman <rms@gnu.org>
2 8
3 * files.el (basic-save-buffer-1): Fix previous change. 9 * files.el (basic-save-buffer-1): Fix previous change.
diff --git a/lisp/progmodes/perl-mode.el b/lisp/progmodes/perl-mode.el
index c24e8046b66..eb630c2ed54 100644
--- a/lisp/progmodes/perl-mode.el
+++ b/lisp/progmodes/perl-mode.el
@@ -1,6 +1,6 @@
1;;; perl-mode.el --- Perl code editing commands for GNU Emacs 1;;; perl-mode.el --- Perl code editing commands for GNU Emacs
2 2
3;; Copyright (C) 1990, 1994, 2003 Free Software Foundation, Inc. 3;; Copyright (C) 1990, 1994, 2003, 2005 Free Software Foundation, Inc.
4 4
5;; Author: William F. Mann 5;; Author: William F. Mann
6;; Maintainer: FSF 6;; Maintainer: FSF
@@ -408,7 +408,7 @@ existing comment, moves to end-of-line, or if at end-of-line already,
408create a new comment." 408create a new comment."
409 :type 'boolean) 409 :type 'boolean)
410 410
411(defcustom perl-nochange ";?#\\|\f\\|\\s(\\|\\(\\w\\|\\s_\\)+:" 411(defcustom perl-nochange ";?#\\|\f\\|\\s(\\|\\(\\w\\|\\s_\\)+:[^:]"
412 "*Lines starting with this regular expression are not auto-indented." 412 "*Lines starting with this regular expression are not auto-indented."
413 :type 'regexp) 413 :type 'regexp)
414 414
@@ -769,7 +769,7 @@ Optional argument PARSE-START should be the position of `beginning-of-defun'."
769 (skip-chars-forward " \t\f\n") 769 (skip-chars-forward " \t\f\n")
770 (cond ((looking-at ";?#") 770 (cond ((looking-at ";?#")
771 (forward-line 1) t) 771 (forward-line 1) t)
772 ((looking-at "\\(\\w\\|\\s_\\)+:") 772 ((looking-at "\\(\\w\\|\\s_\\)+:[^:]")
773 (save-excursion 773 (save-excursion
774 (end-of-line) 774 (end-of-line)
775 (setq colon-line-end (point))) 775 (setq colon-line-end (point)))
@@ -929,5 +929,5 @@ With argument, repeat that many times; negative args move backward."
929 929
930(provide 'perl-mode) 930(provide 'perl-mode)
931 931
932;;; arch-tag: 8c7ff68d-15f3-46a2-ade2-b7c41f176826 932;; arch-tag: 8c7ff68d-15f3-46a2-ade2-b7c41f176826
933;;; perl-mode.el ends here 933;;; perl-mode.el ends here