diff options
| author | Joakim Verona | 2013-02-03 00:03:44 +0100 |
|---|---|---|
| committer | Joakim Verona | 2013-02-03 00:03:44 +0100 |
| commit | cfefa7e817861c3fdf541becf7fbcfa00fa16858 (patch) | |
| tree | 1a3ed70e7761f27ff2e882ba5148bdb3e4b62231 /lisp/progmodes | |
| parent | 9aa1f4ecdb156a4135c3f7f6125a2b5a40258038 (diff) | |
| parent | 8ea41ea99608c7483ef5c91e230a760cf90bfb54 (diff) | |
| download | emacs-cfefa7e817861c3fdf541becf7fbcfa00fa16858.tar.gz emacs-cfefa7e817861c3fdf541becf7fbcfa00fa16858.zip | |
auto upstream
Diffstat (limited to 'lisp/progmodes')
| -rw-r--r-- | lisp/progmodes/cc-awk.el | 5 | ||||
| -rw-r--r-- | lisp/progmodes/compile.el | 16 | ||||
| -rw-r--r-- | lisp/progmodes/grep.el | 4 | ||||
| -rw-r--r-- | lisp/progmodes/make-mode.el | 6 | ||||
| -rw-r--r-- | lisp/progmodes/python.el | 2 |
5 files changed, 19 insertions, 14 deletions
diff --git a/lisp/progmodes/cc-awk.el b/lisp/progmodes/cc-awk.el index 0711bc983e8..4b3fc91b0ff 100644 --- a/lisp/progmodes/cc-awk.el +++ b/lisp/progmodes/cc-awk.el | |||
| @@ -142,7 +142,7 @@ | |||
| 142 | 142 | ||
| 143 | (defconst c-awk-harmless-line-char-re "[^_#/\"\\\\\n\r]") | 143 | (defconst c-awk-harmless-line-char-re "[^_#/\"\\\\\n\r]") |
| 144 | ;; Matches any character but a _, #, /, ", \, or newline. N.B. _" starts a | 144 | ;; Matches any character but a _, #, /, ", \, or newline. N.B. _" starts a |
| 145 | ;; localisation string in gawk 3.1 | 145 | ;; localization string in gawk 3.1 |
| 146 | (defconst c-awk-harmless-line-string*-re | 146 | (defconst c-awk-harmless-line-string*-re |
| 147 | (concat "\\(" c-awk-harmless-line-char-re "\\|" c-awk-esc-pair-re "\\|" c-awk-harmless-_ "\\)*")) | 147 | (concat "\\(" c-awk-harmless-line-char-re "\\|" c-awk-esc-pair-re "\\|" c-awk-harmless-_ "\\)*")) |
| 148 | ;; Matches a (possibly empty) sequence of chars without unescaped /, ", \, | 148 | ;; Matches a (possibly empty) sequence of chars without unescaped /, ", \, |
| @@ -795,7 +795,8 @@ | |||
| 795 | (setq anchor (point)) | 795 | (setq anchor (point)) |
| 796 | (search-forward-regexp c-awk-harmless-string*-here-re nil t) | 796 | (search-forward-regexp c-awk-harmless-string*-here-re nil t) |
| 797 | ;; We are now looking at either a " or a / or a brace/paren/semicolon. | 797 | ;; We are now looking at either a " or a / or a brace/paren/semicolon. |
| 798 | ;; Do our thing on the string, regexp or divsion sign or update our state. | 798 | ;; Do our thing on the string, regexp or division sign or update |
| 799 | ;; our state. | ||
| 799 | (setq anchor-state-/div | 800 | (setq anchor-state-/div |
| 800 | (cond | 801 | (cond |
| 801 | ((looking-at "_?\"") | 802 | ((looking-at "_?\"") |
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index eb73b77bf52..d2a9617e28e 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el | |||
| @@ -42,24 +42,21 @@ | |||
| 42 | 42 | ||
| 43 | ;;;###autoload | 43 | ;;;###autoload |
| 44 | (defcustom compilation-mode-hook nil | 44 | (defcustom compilation-mode-hook nil |
| 45 | "List of hook functions run by `compilation-mode' (see `run-mode-hooks')." | 45 | "List of hook functions run by `compilation-mode'." |
| 46 | :type 'hook | 46 | :type 'hook |
| 47 | :group 'compilation) | 47 | :group 'compilation) |
| 48 | 48 | ||
| 49 | ;;;###autoload | 49 | ;;;###autoload |
| 50 | (defcustom compilation-start-hook nil | 50 | (defcustom compilation-start-hook nil |
| 51 | "List of hook functions run by `compilation-start' on the compilation process. | 51 | "Hook run after starting a new compilation process. |
| 52 | \(See `run-hook-with-args'). | 52 | The hook is run with one argument, the new process." |
| 53 | If you use \"omake -P\" and do not want \\[save-buffers-kill-terminal] to ask whether you want | ||
| 54 | the compilation to be killed, you can use this hook: | ||
| 55 | (add-hook 'compilation-start-hook | ||
| 56 | (lambda (process) (set-process-query-on-exit-flag process nil)) nil t)" | ||
| 57 | :type 'hook | 53 | :type 'hook |
| 58 | :group 'compilation) | 54 | :group 'compilation) |
| 59 | 55 | ||
| 60 | ;;;###autoload | 56 | ;;;###autoload |
| 61 | (defcustom compilation-window-height nil | 57 | (defcustom compilation-window-height nil |
| 62 | "Number of lines in a compilation window. If nil, use Emacs default." | 58 | "Number of lines in a compilation window. |
| 59 | If nil, use Emacs default." | ||
| 63 | :type '(choice (const :tag "Default" nil) | 60 | :type '(choice (const :tag "Default" nil) |
| 64 | integer) | 61 | integer) |
| 65 | :group 'compilation) | 62 | :group 'compilation) |
| @@ -265,7 +262,8 @@ of[ \t]+\"?\\([a-zA-Z]?:?[^\":\n]+\\)\"?:" 3 2 nil (1)) | |||
| 265 | \\([0-9]+\\)\\(?:-\\(?4:[0-9]+\\)\\(?:\\.\\(?5:[0-9]+\\)\\)?\ | 262 | \\([0-9]+\\)\\(?:-\\(?4:[0-9]+\\)\\(?:\\.\\(?5:[0-9]+\\)\\)?\ |
| 266 | \\|[.:]\\(?3:[0-9]+\\)\\(?:-\\(?:\\(?4:[0-9]+\\)\\.\\)?\\(?5:[0-9]+\\)\\)?\\)?:\ | 263 | \\|[.:]\\(?3:[0-9]+\\)\\(?:-\\(?:\\(?4:[0-9]+\\)\\.\\)?\\(?5:[0-9]+\\)\\)?\\)?:\ |
| 267 | \\(?: *\\(\\(?:Future\\|Runtime\\)?[Ww]arning\\|W:\\)\\|\ | 264 | \\(?: *\\(\\(?:Future\\|Runtime\\)?[Ww]arning\\|W:\\)\\|\ |
| 268 | *\\([Ii]nfo\\(?:\\>\\|rmationa?l?\\)\\|I:\\|instantiated from\\|[Nn]ote\\)\\|\ | 265 | *\\([Ii]nfo\\(?:\\>\\|rmationa?l?\\)\\|I:\\|\\[ skipping .+ \\]\\|\ |
| 266 | \\(?:instantiated\\|required\\) from\\|[Nn]ote\\)\\|\ | ||
| 269 | *[Ee]rror\\|[0-9]?\\(?:[^0-9\n]\\|$\\)\\|[0-9][0-9][0-9]\\)" | 267 | *[Ee]rror\\|[0-9]?\\(?:[^0-9\n]\\|$\\)\\|[0-9][0-9][0-9]\\)" |
| 270 | 1 (2 . 4) (3 . 5) (6 . 7)) | 268 | 1 (2 . 4) (3 . 5) (6 . 7)) |
| 271 | 269 | ||
diff --git a/lisp/progmodes/grep.el b/lisp/progmodes/grep.el index ef321addf24..d8c39f2ddef 100644 --- a/lisp/progmodes/grep.el +++ b/lisp/progmodes/grep.el | |||
| @@ -359,7 +359,7 @@ Notice that using \\[next-error] or \\[compile-goto-error] modifies | |||
| 359 | (when grep-highlight-matches | 359 | (when grep-highlight-matches |
| 360 | (let* ((beg (match-end 0)) | 360 | (let* ((beg (match-end 0)) |
| 361 | (end (save-excursion (goto-char beg) (line-end-position))) | 361 | (end (save-excursion (goto-char beg) (line-end-position))) |
| 362 | (mbeg (text-property-any beg end 'font-lock-face 'match))) | 362 | (mbeg (text-property-any beg end 'font-lock-face grep-match-face))) |
| 363 | (when mbeg | 363 | (when mbeg |
| 364 | (- mbeg beg))))) | 364 | (- mbeg beg))))) |
| 365 | . | 365 | . |
| @@ -367,7 +367,7 @@ Notice that using \\[next-error] or \\[compile-goto-error] modifies | |||
| 367 | (when grep-highlight-matches | 367 | (when grep-highlight-matches |
| 368 | (let* ((beg (match-end 0)) | 368 | (let* ((beg (match-end 0)) |
| 369 | (end (save-excursion (goto-char beg) (line-end-position))) | 369 | (end (save-excursion (goto-char beg) (line-end-position))) |
| 370 | (mbeg (text-property-any beg end 'font-lock-face 'match)) | 370 | (mbeg (text-property-any beg end 'font-lock-face grep-match-face)) |
| 371 | (mend (and mbeg (next-single-property-change mbeg 'font-lock-face nil end)))) | 371 | (mend (and mbeg (next-single-property-change mbeg 'font-lock-face nil end)))) |
| 372 | (when mend | 372 | (when mend |
| 373 | (- mend beg))))))) | 373 | (- mend beg))))))) |
diff --git a/lisp/progmodes/make-mode.el b/lisp/progmodes/make-mode.el index be718135f99..20673866bc4 100644 --- a/lisp/progmodes/make-mode.el +++ b/lisp/progmodes/make-mode.el | |||
| @@ -1304,6 +1304,12 @@ Fill comments, backslashed lines, and variable definitions specially." | |||
| 1304 | (save-restriction | 1304 | (save-restriction |
| 1305 | (narrow-to-region beginning end) | 1305 | (narrow-to-region beginning end) |
| 1306 | (makefile-backslash-region (point-min) (point-max) t) | 1306 | (makefile-backslash-region (point-min) (point-max) t) |
| 1307 | ;; Backslashed newlines are marked as punctuation, so when | ||
| 1308 | ;; fill-delete-newlines turns the LF into SPC, we end up with spaces | ||
| 1309 | ;; which back-to-indentation (called via fill-newline -> | ||
| 1310 | ;; fill-indent-to-left-margin -> indent-line-to) thinks are real code | ||
| 1311 | ;; (bug#13179). | ||
| 1312 | (remove-text-properties (point-min) (point-max) '(syntax-table)) | ||
| 1307 | (let ((fill-paragraph-function nil) | 1313 | (let ((fill-paragraph-function nil) |
| 1308 | ;; Adjust fill-column to allow space for the backslash. | 1314 | ;; Adjust fill-column to allow space for the backslash. |
| 1309 | (fill-column (- fill-column 1))) | 1315 | (fill-column (- fill-column 1))) |
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 2cb108cc316..35c5ba19e33 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -2334,7 +2334,7 @@ Argument OUTPUT is a string with the output from the comint process." | |||
| 2334 | ;; encounters an exception, it prints the _entire_ stack | 2334 | ;; encounters an exception, it prints the _entire_ stack |
| 2335 | ;; trace. To handle all of these cases, we want to find | 2335 | ;; trace. To handle all of these cases, we want to find |
| 2336 | ;; the _last_ stack frame printed in the most recent | 2336 | ;; the _last_ stack frame printed in the most recent |
| 2337 | ;; batch of output, then jump to the corrsponding | 2337 | ;; batch of output, then jump to the corresponding |
| 2338 | ;; file/line number. | 2338 | ;; file/line number. |
| 2339 | (goto-char (point-max)) | 2339 | (goto-char (point-max)) |
| 2340 | (when (re-search-backward python-pdbtrack-stacktrace-info-regexp nil t) | 2340 | (when (re-search-backward python-pdbtrack-stacktrace-info-regexp nil t) |