diff options
| author | Juri Linkov | 2006-09-29 20:52:30 +0000 |
|---|---|---|
| committer | Juri Linkov | 2006-09-29 20:52:30 +0000 |
| commit | 7d767a24697ebfe91486889a5a0374ed8cfaa8e7 (patch) | |
| tree | 1b69ffd331865705330090132d5ebef5657bc1a5 | |
| parent | 4c5fe9302552bff035884b4b23f1504d4bb112cf (diff) | |
| download | emacs-7d767a24697ebfe91486889a5a0374ed8cfaa8e7.tar.gz emacs-7d767a24697ebfe91486889a5a0374ed8cfaa8e7.zip | |
(cperl-after-expr-p): Don't move point
to nil if there is no previous property change.
| -rw-r--r-- | lisp/progmodes/cperl-mode.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/progmodes/cperl-mode.el b/lisp/progmodes/cperl-mode.el index ad44753f352..69f4549a0bf 100644 --- a/lisp/progmodes/cperl-mode.el +++ b/lisp/progmodes/cperl-mode.el | |||
| @@ -3914,12 +3914,14 @@ CHARS is a string that contains good characters to have before us (however, | |||
| 3914 | (if (get-text-property (point) 'here-doc-group) | 3914 | (if (get-text-property (point) 'here-doc-group) |
| 3915 | (progn | 3915 | (progn |
| 3916 | (goto-char | 3916 | (goto-char |
| 3917 | (previous-single-property-change (point) 'here-doc-group)) | 3917 | (or (previous-single-property-change (point) 'here-doc-group) |
| 3918 | (point))) | ||
| 3918 | (beginning-of-line 0))) | 3919 | (beginning-of-line 0))) |
| 3919 | (if (get-text-property (point) 'in-pod) | 3920 | (if (get-text-property (point) 'in-pod) |
| 3920 | (progn | 3921 | (progn |
| 3921 | (goto-char | 3922 | (goto-char |
| 3922 | (previous-single-property-change (point) 'in-pod)) | 3923 | (or (previous-single-property-change (point) 'in-pod) |
| 3924 | (point))) | ||
| 3923 | (beginning-of-line 0))) | 3925 | (beginning-of-line 0))) |
| 3924 | (if (looking-at "^[ \t]*\\(#\\|$\\)") nil ; Only comment, skip | 3926 | (if (looking-at "^[ \t]*\\(#\\|$\\)") nil ; Only comment, skip |
| 3925 | ;; Else: last iteration, or a label | 3927 | ;; Else: last iteration, or a label |