diff options
| author | Joakim Verona | 2011-10-10 13:00:51 +0200 |
|---|---|---|
| committer | Joakim Verona | 2011-10-10 13:00:51 +0200 |
| commit | 0b19c7867f5e647fa0269833fe74e0064b415c08 (patch) | |
| tree | 08a0a4112e94675ffde647160706480e78435818 /lisp/progmodes | |
| parent | d4077561a90a24d61e295745d70c0effa655a37c (diff) | |
| parent | 0563dae9a9e3a8c2b6de454693c0cc207e67f05d (diff) | |
| download | emacs-0b19c7867f5e647fa0269833fe74e0064b415c08.tar.gz emacs-0b19c7867f5e647fa0269833fe74e0064b415c08.zip | |
upstream
Diffstat (limited to 'lisp/progmodes')
| -rw-r--r-- | lisp/progmodes/f90.el | 21 | ||||
| -rw-r--r-- | lisp/progmodes/gdb-mi.el | 6 | ||||
| -rw-r--r-- | lisp/progmodes/perl-mode.el | 10 |
3 files changed, 26 insertions, 11 deletions
diff --git a/lisp/progmodes/f90.el b/lisp/progmodes/f90.el index eb33822ce55..3d5c8a97835 100644 --- a/lisp/progmodes/f90.el +++ b/lisp/progmodes/f90.el | |||
| @@ -1489,14 +1489,19 @@ Does not check type and subprogram indentation." | |||
| 1489 | (if (not (f90-previous-statement)) | 1489 | (if (not (f90-previous-statement)) |
| 1490 | ;; If f90-previous-statement returns nil, we must have been | 1490 | ;; If f90-previous-statement returns nil, we must have been |
| 1491 | ;; called from on or before the first line of the first statement. | 1491 | ;; called from on or before the first line of the first statement. |
| 1492 | (setq icol (if (save-excursion | 1492 | (setq icol (if (or (save-excursion |
| 1493 | ;; f90-previous-statement has moved us over | 1493 | (goto-char pnt) |
| 1494 | ;; comment/blank lines, so we need to get | 1494 | (beginning-of-line) |
| 1495 | ;; back to the first code statement. | 1495 | ;; Preprocessor line before code statement. |
| 1496 | (when (looking-at "[ \t]*\\([!#]\\|$\\)") | 1496 | (looking-at "[ \t]*#")) |
| 1497 | (f90-next-statement)) | 1497 | (progn |
| 1498 | (skip-chars-forward " \t0-9") | 1498 | ;; f90-previous-statement has moved us over |
| 1499 | (f90-looking-at-program-block-start)) | 1499 | ;; comment/blank lines, so we need to get |
| 1500 | ;; back to the first code statement. | ||
| 1501 | (when (looking-at "[ \t]*\\([!#]\\|$\\)") | ||
| 1502 | (f90-next-statement)) | ||
| 1503 | (skip-chars-forward " \t0-9") | ||
| 1504 | (f90-looking-at-program-block-start))) | ||
| 1500 | 0 | 1505 | 0 |
| 1501 | ;; No explicit PROGRAM start statement. | 1506 | ;; No explicit PROGRAM start statement. |
| 1502 | f90-program-indent)) | 1507 | f90-program-indent)) |
diff --git a/lisp/progmodes/gdb-mi.el b/lisp/progmodes/gdb-mi.el index a4d7cff4127..22db7b2e5f4 100644 --- a/lisp/progmodes/gdb-mi.el +++ b/lisp/progmodes/gdb-mi.el | |||
| @@ -605,6 +605,12 @@ NOARG must be t when this macro is used outside `gud-def'" | |||
| 605 | The directory containing FILE becomes the initial working directory | 605 | The directory containing FILE becomes the initial working directory |
| 606 | and source-file directory for your debugger. | 606 | and source-file directory for your debugger. |
| 607 | 607 | ||
| 608 | COMMAND-LINE is the shell command for starting the gdb session. | ||
| 609 | It should be a string consisting of the name of the gdb | ||
| 610 | executable followed by command-line options. The command-line | ||
| 611 | options should include \"-i=mi\" to use gdb's MI text interface. | ||
| 612 | Note that the old \"--annotate\" option is no longer supported. | ||
| 613 | |||
| 608 | If `gdb-many-windows' is nil (the default value) then gdb just | 614 | If `gdb-many-windows' is nil (the default value) then gdb just |
| 609 | pops up the GUD buffer unless `gdb-show-main' is t. In this case | 615 | pops up the GUD buffer unless `gdb-show-main' is t. In this case |
| 610 | it starts with two windows: one displaying the GUD buffer and the | 616 | it starts with two windows: one displaying the GUD buffer and the |
diff --git a/lisp/progmodes/perl-mode.el b/lisp/progmodes/perl-mode.el index 933f004bb5d..f051b49fe2a 100644 --- a/lisp/progmodes/perl-mode.el +++ b/lisp/progmodes/perl-mode.el | |||
| @@ -633,8 +633,8 @@ Turning on Perl mode runs the normal hook `perl-mode-hook'." | |||
| 633 | 633 | ||
| 634 | (defalias 'electric-perl-terminator 'perl-electric-terminator) | 634 | (defalias 'electric-perl-terminator 'perl-electric-terminator) |
| 635 | (defun perl-electric-terminator (arg) | 635 | (defun perl-electric-terminator (arg) |
| 636 | "Insert character and adjust indentation. | 636 | "Insert character and maybe adjust indentation. |
| 637 | If at end-of-line, and not in a comment or a quote, correct the's indentation." | 637 | If at end-of-line, and not in a comment or a quote, correct the indentation." |
| 638 | (interactive "P") | 638 | (interactive "P") |
| 639 | (let ((insertpos (point))) | 639 | (let ((insertpos (point))) |
| 640 | (and (not arg) ; decide whether to indent | 640 | (and (not arg) ; decide whether to indent |
| @@ -832,7 +832,11 @@ Optional argument PARSE-START should be the position of `beginning-of-defun'." | |||
| 832 | (save-excursion | 832 | (save-excursion |
| 833 | (beginning-of-line) | 833 | (beginning-of-line) |
| 834 | (looking-at "\\s-+sub\\>")) | 834 | (looking-at "\\s-+sub\\>")) |
| 835 | (> indent-point (save-excursion (forward-sexp 1) (point)))) | 835 | (> indent-point (save-excursion |
| 836 | (condition-case nil | ||
| 837 | (forward-sexp 1) | ||
| 838 | (scan-error nil)) | ||
| 839 | (point)))) | ||
| 836 | (perl-beginning-of-function)) | 840 | (perl-beginning-of-function)) |
| 837 | (while (< (point) indent-point) ;repeat until right sexp | 841 | (while (< (point) indent-point) ;repeat until right sexp |
| 838 | (setq state (parse-partial-sexp (point) indent-point 0)) | 842 | (setq state (parse-partial-sexp (point) indent-point 0)) |