diff options
| author | Miles Bader | 2005-09-11 22:21:01 +0000 |
|---|---|---|
| committer | Miles Bader | 2005-09-11 22:21:01 +0000 |
| commit | ff8d296438e69b8cf701d95b6ccd271c416c46fd (patch) | |
| tree | 44b388101b40592656ad4c5033aabe2a1ae4b462 /lisp/progmodes | |
| parent | 389cb481135145b80a679beec8cdc8fed75682c5 (diff) | |
| parent | a8f6d239d2d541ec874a22000e0542c20fd55a67 (diff) | |
| download | emacs-ff8d296438e69b8cf701d95b6ccd271c416c46fd.tar.gz emacs-ff8d296438e69b8cf701d95b6ccd271c416c46fd.zip | |
Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-81
Merge from emacs--cvs-trunk--0
Patches applied:
* emacs--cvs-trunk--0 (patch 532-541)
- Update from CVS
- Merge from gnus--rel--5.10
* gnus--rel--5.10 (patch 112-115)
- Update from CVS
Diffstat (limited to 'lisp/progmodes')
| -rw-r--r-- | lisp/progmodes/delphi.el | 1 | ||||
| -rw-r--r-- | lisp/progmodes/flymake.el | 3 | ||||
| -rw-r--r-- | lisp/progmodes/make-mode.el | 4 | ||||
| -rw-r--r-- | lisp/progmodes/octave-inf.el | 6 | ||||
| -rw-r--r-- | lisp/progmodes/perl-mode.el | 4 | ||||
| -rw-r--r-- | lisp/progmodes/sh-script.el | 7 |
6 files changed, 19 insertions, 6 deletions
diff --git a/lisp/progmodes/delphi.el b/lisp/progmodes/delphi.el index 0c94120a0f8..85f7e1339f3 100644 --- a/lisp/progmodes/delphi.el +++ b/lisp/progmodes/delphi.el | |||
| @@ -4,6 +4,7 @@ | |||
| 4 | ;; Free Software Foundation, Inc. | 4 | ;; Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Author: Ray Blaak <blaak@infomatch.com> | 6 | ;; Author: Ray Blaak <blaak@infomatch.com> |
| 7 | ;; Maintainer: FSF (Blaak's email addr bounces, Aug 2005) | ||
| 7 | ;; Keywords: languages | 8 | ;; Keywords: languages |
| 8 | 9 | ||
| 9 | ;; This file is part of GNU Emacs. | 10 | ;; This file is part of GNU Emacs. |
diff --git a/lisp/progmodes/flymake.el b/lisp/progmodes/flymake.el index d137284f795..e5089d84fb0 100644 --- a/lisp/progmodes/flymake.el +++ b/lisp/progmodes/flymake.el | |||
| @@ -960,8 +960,7 @@ Convert it to flymake internal format." | |||
| 960 | (setq converted-list (cons (list regexp file line col) converted-list))))) | 960 | (setq converted-list (cons (list regexp file line col) converted-list))))) |
| 961 | converted-list)) | 961 | converted-list)) |
| 962 | 962 | ||
| 963 | (eval-when-compile | 963 | (require 'compile) |
| 964 | (require 'compile)) | ||
| 965 | 964 | ||
| 966 | (defvar flymake-err-line-patterns ; regexp file-idx line-idx col-idx (optional) text-idx(optional), match-end to end of string is error text | 965 | (defvar flymake-err-line-patterns ; regexp file-idx line-idx col-idx (optional) text-idx(optional), match-end to end of string is error text |
| 967 | (append | 966 | (append |
diff --git a/lisp/progmodes/make-mode.el b/lisp/progmodes/make-mode.el index b8336691307..11ae1c66aa7 100644 --- a/lisp/progmodes/make-mode.el +++ b/lisp/progmodes/make-mode.el | |||
| @@ -1833,6 +1833,10 @@ If it isn't in one, return nil." | |||
| 1833 | ;; Don't keep looking across a blank line or comment. | 1833 | ;; Don't keep looking across a blank line or comment. |
| 1834 | (looking-at "$\\|#") | 1834 | (looking-at "$\\|#") |
| 1835 | (not (zerop (forward-line -1)))))) | 1835 | (not (zerop (forward-line -1)))))) |
| 1836 | ;; Remove leading and trailing whitespace. | ||
| 1837 | (when found | ||
| 1838 | (setq found (replace-regexp-in-string "[ \t]+\\'" "" found)) | ||
| 1839 | (setq found (replace-regexp-in-string "\\`[ \t]+" "" found))) | ||
| 1836 | found))) | 1840 | found))) |
| 1837 | 1841 | ||
| 1838 | (provide 'make-mode) | 1842 | (provide 'make-mode) |
diff --git a/lisp/progmodes/octave-inf.el b/lisp/progmodes/octave-inf.el index 917016cf159..4f0875bbf99 100644 --- a/lisp/progmodes/octave-inf.el +++ b/lisp/progmodes/octave-inf.el | |||
| @@ -248,7 +248,11 @@ startup file, `~/.emacs-octave'." | |||
| 248 | 248 | ||
| 249 | ;; And finally, everything is back to normal. | 249 | ;; And finally, everything is back to normal. |
| 250 | (set-process-filter proc 'inferior-octave-output-filter) | 250 | (set-process-filter proc 'inferior-octave-output-filter) |
| 251 | (run-hooks 'inferior-octave-startup-hook))) | 251 | (run-hooks 'inferior-octave-startup-hook) |
| 252 | (run-hooks 'inferior-octave-startup-hook) | ||
| 253 | ;; Just in case, to be sure a cd in the startup file | ||
| 254 | ;; won't have detrimental effects. | ||
| 255 | (inferior-octave-resync-dirs))) | ||
| 252 | 256 | ||
| 253 | 257 | ||
| 254 | (defun inferior-octave-complete () | 258 | (defun inferior-octave-complete () |
diff --git a/lisp/progmodes/perl-mode.el b/lisp/progmodes/perl-mode.el index 25a414e69d2..cb2ec81f501 100644 --- a/lisp/progmodes/perl-mode.el +++ b/lisp/progmodes/perl-mode.el | |||
| @@ -267,12 +267,12 @@ The expansion is entirely correct because it uses the C preprocessor." | |||
| 267 | ("\\<sub\\s-+\\S-+\\s-*(\\([^)]+\\))" 1 '(1)) | 267 | ("\\<sub\\s-+\\S-+\\s-*(\\([^)]+\\))" 1 '(1)) |
| 268 | ;; regexp and funny quotes | 268 | ;; regexp and funny quotes |
| 269 | ("[?:.,;=!~({[][ \t\n]*\\(/\\)" (1 '(7))) | 269 | ("[?:.,;=!~({[][ \t\n]*\\(/\\)" (1 '(7))) |
| 270 | ("[?:.,;=!~({[ \t\n]\\([msy]\\|q[qxrw]?\\|tr\\)\\>\\s-*\\([^])}> \n\t]\\)" | 270 | ("\\(^\\|[?:.,;=!~({[ \t]\\)\\([msy]\\|q[qxrw]?\\|tr\\)\\>\\s-*\\([^])}> \n\t]\\)" |
| 271 | ;; Nasty cases: | 271 | ;; Nasty cases: |
| 272 | ;; /foo/m $a->m $#m $m @m %m | 272 | ;; /foo/m $a->m $#m $m @m %m |
| 273 | ;; \s (appears often in regexps). | 273 | ;; \s (appears often in regexps). |
| 274 | ;; -s file | 274 | ;; -s file |
| 275 | (2 (if (assoc (char-after (match-beginning 2)) | 275 | (3 (if (assoc (char-after (match-beginning 3)) |
| 276 | perl-quote-like-pairs) | 276 | perl-quote-like-pairs) |
| 277 | '(15) '(7)))) | 277 | '(15) '(7)))) |
| 278 | ;; TODO: here-documents ("<<\\(\\sw\\|['\"]\\)") | 278 | ;; TODO: here-documents ("<<\\(\\sw\\|['\"]\\)") |
diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el index d39cc4b7281..663332fb8c6 100644 --- a/lisp/progmodes/sh-script.el +++ b/lisp/progmodes/sh-script.el | |||
| @@ -490,7 +490,10 @@ This is buffer-local in every such buffer.") | |||
| 490 | map) | 490 | map) |
| 491 | "Keymap used in Shell-Script mode.") | 491 | "Keymap used in Shell-Script mode.") |
| 492 | 492 | ||
| 493 | 493 | (defvar sh-skeleton-pair-default-alist '((?( _ ?)) (?\)) | |
| 494 | (?[ ?\s _ ?\s ?]) (?\]) | ||
| 495 | (?{ _ ?}) (?\})) | ||
| 496 | "Value to use for `skeleton-pair-default-alist' in Shell-Script mode.") | ||
| 494 | 497 | ||
| 495 | (defcustom sh-dynamic-complete-functions | 498 | (defcustom sh-dynamic-complete-functions |
| 496 | '(shell-dynamic-complete-environment-variable | 499 | '(shell-dynamic-complete-environment-variable |
| @@ -1362,6 +1365,8 @@ with your script for an edit-interpret-debug cycle." | |||
| 1362 | (make-local-variable 'sh-shell-variables-initialized) | 1365 | (make-local-variable 'sh-shell-variables-initialized) |
| 1363 | (make-local-variable 'imenu-generic-expression) | 1366 | (make-local-variable 'imenu-generic-expression) |
| 1364 | (make-local-variable 'sh-indent-supported-here) | 1367 | (make-local-variable 'sh-indent-supported-here) |
| 1368 | (make-local-variable 'skeleton-pair-default-alist) | ||
| 1369 | (setq skeleton-pair-default-alist sh-skeleton-pair-default-alist) | ||
| 1365 | (setq skeleton-end-hook (lambda () | 1370 | (setq skeleton-end-hook (lambda () |
| 1366 | (or (eolp) (newline) (indent-relative))) | 1371 | (or (eolp) (newline) (indent-relative))) |
| 1367 | paragraph-start (concat page-delimiter "\\|$") | 1372 | paragraph-start (concat page-delimiter "\\|$") |