diff options
| author | Joakim Verona | 2012-10-24 13:07:12 +0200 |
|---|---|---|
| committer | Joakim Verona | 2012-10-24 13:07:12 +0200 |
| commit | fd0ea43455f2bd9c96f76b87188f0808bd6ce213 (patch) | |
| tree | 2a34edfe608adb294de5eef6678e2f9ba457c02c /lisp/progmodes | |
| parent | 6d3ae671153437538da2d1b41af0d1589ec8148b (diff) | |
| parent | 4e79d09a237fe27c0a3d79ddb67642389f414614 (diff) | |
| download | emacs-fd0ea43455f2bd9c96f76b87188f0808bd6ce213.tar.gz emacs-fd0ea43455f2bd9c96f76b87188f0808bd6ce213.zip | |
upstream
Diffstat (limited to 'lisp/progmodes')
| -rw-r--r-- | lisp/progmodes/cc-mode.el | 6 | ||||
| -rw-r--r-- | lisp/progmodes/compile.el | 20 | ||||
| -rw-r--r-- | lisp/progmodes/gud.el | 5 | ||||
| -rw-r--r-- | lisp/progmodes/which-func.el | 3 |
4 files changed, 23 insertions, 11 deletions
diff --git a/lisp/progmodes/cc-mode.el b/lisp/progmodes/cc-mode.el index 2a000957589..50eaebe4dec 100644 --- a/lisp/progmodes/cc-mode.el +++ b/lisp/progmodes/cc-mode.el | |||
| @@ -1703,7 +1703,9 @@ Key bindings: | |||
| 1703 | (message "Using CC Mode version %s" c-version) | 1703 | (message "Using CC Mode version %s" c-version) |
| 1704 | (c-keep-region-active)) | 1704 | (c-keep-region-active)) |
| 1705 | 1705 | ||
| 1706 | (defvar c-prepare-bug-report-hooks nil) | 1706 | (define-obsolete-variable-alias 'c-prepare-bug-report-hooks |
| 1707 | 'c-prepare-bug-report-hook "24.3") | ||
| 1708 | (defvar c-prepare-bug-report-hook nil) | ||
| 1707 | 1709 | ||
| 1708 | ;; Dynamic variables used by reporter. | 1710 | ;; Dynamic variables used by reporter. |
| 1709 | (defvar reporter-prompt-for-summary-p) | 1711 | (defvar reporter-prompt-for-summary-p) |
| @@ -1770,7 +1772,7 @@ Key bindings: | |||
| 1770 | lookup-syntax-properties)) | 1772 | lookup-syntax-properties)) |
| 1771 | vars) | 1773 | vars) |
| 1772 | (lambda () | 1774 | (lambda () |
| 1773 | (run-hooks 'c-prepare-bug-report-hooks) | 1775 | (run-hooks 'c-prepare-bug-report-hook) |
| 1774 | (insert (format "Buffer Style: %s\nc-emacs-features: %s\n" | 1776 | (insert (format "Buffer Style: %s\nc-emacs-features: %s\n" |
| 1775 | style c-features))))))) | 1777 | style c-features))))))) |
| 1776 | 1778 | ||
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index 10fd7a75eaa..06525b354b1 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el | |||
| @@ -1568,12 +1568,20 @@ Returns the compilation buffer created." | |||
| 1568 | ;; Then evaluate a cd command if any, but don't perform it yet, else | 1568 | ;; Then evaluate a cd command if any, but don't perform it yet, else |
| 1569 | ;; start-command would do it again through the shell: (cd "..") AND | 1569 | ;; start-command would do it again through the shell: (cd "..") AND |
| 1570 | ;; sh -c "cd ..; make" | 1570 | ;; sh -c "cd ..; make" |
| 1571 | (cd (if (string-match "\\`\\s *cd\\(?:\\s +\\(\\S +?\\)\\)?\\s *[;&\n]" | 1571 | (cd (cond |
| 1572 | command) | 1572 | ((not (string-match "\\`\\s *cd\\(?:\\s +\\(\\S +?\\|'[^']*'\\|\"\\(?:[^\"`$\\]\\|\\\\.\\)*\"\\)\\)?\\s *[;&\n]" |
| 1573 | (if (match-end 1) | 1573 | command)) |
| 1574 | (substitute-env-vars (match-string 1 command)) | 1574 | default-directory) |
| 1575 | "~") | 1575 | ((not (match-end 1)) "~") |
| 1576 | default-directory)) | 1576 | ((eq (aref command (match-beginning 1)) ?\') |
| 1577 | (substring command (1+ (match-beginning 1)) | ||
| 1578 | (1- (match-end 1)))) | ||
| 1579 | ((eq (aref command (match-beginning 1)) ?\") | ||
| 1580 | (replace-regexp-in-string | ||
| 1581 | "\\\\\\(.\\)" "\\1" | ||
| 1582 | (substring command (1+ (match-beginning 1)) | ||
| 1583 | (1- (match-end 1))))) | ||
| 1584 | (t (substitute-env-vars (match-string 1 command))))) | ||
| 1577 | (erase-buffer) | 1585 | (erase-buffer) |
| 1578 | ;; Select the desired mode. | 1586 | ;; Select the desired mode. |
| 1579 | (if (not (eq mode t)) | 1587 | (if (not (eq mode t)) |
diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el index 719471278a8..13eac8392a2 100644 --- a/lisp/progmodes/gud.el +++ b/lisp/progmodes/gud.el | |||
| @@ -148,7 +148,8 @@ Used to gray out relevant toolbar icons.") | |||
| 148 | ([run] menu-item "Run" gud-run | 148 | ([run] menu-item "Run" gud-run |
| 149 | :enable (not gud-running) | 149 | :enable (not gud-running) |
| 150 | :visible (memq gud-minor-mode '(gdbmi gdb dbx jdb))) | 150 | :visible (memq gud-minor-mode '(gdbmi gdb dbx jdb))) |
| 151 | ([go] menu-item (if gdb-active-process "Continue" "Run") gud-go | 151 | ([go] menu-item (if (bound-and-true-p gdb-active-process) |
| 152 | "Continue" "Run") gud-go | ||
| 152 | :visible (and (eq gud-minor-mode 'gdbmi) | 153 | :visible (and (eq gud-minor-mode 'gdbmi) |
| 153 | (gdb-show-run-p))) | 154 | (gdb-show-run-p))) |
| 154 | ([stop] menu-item "Stop" gud-stop-subjob | 155 | ([stop] menu-item "Stop" gud-stop-subjob |
| @@ -178,7 +179,7 @@ Used to gray out relevant toolbar icons.") | |||
| 178 | '(gdbmi gdb dbx xdb jdb pdb))) | 179 | '(gdbmi gdb dbx xdb jdb pdb))) |
| 179 | ([pp] menu-item "Print S-expression" gud-pp | 180 | ([pp] menu-item "Print S-expression" gud-pp |
| 180 | :enable (and (not gud-running) | 181 | :enable (and (not gud-running) |
| 181 | gdb-active-process) | 182 | (bound-and-true-p gdb-active-process)) |
| 182 | :visible (and (string-equal | 183 | :visible (and (string-equal |
| 183 | (buffer-local-value | 184 | (buffer-local-value |
| 184 | 'gud-target-name gud-comint-buffer) "emacs") | 185 | 'gud-target-name gud-comint-buffer) "emacs") |
diff --git a/lisp/progmodes/which-func.el b/lisp/progmodes/which-func.el index 4819149bdf6..c2ce12b6ad4 100644 --- a/lisp/progmodes/which-func.el +++ b/lisp/progmodes/which-func.el | |||
| @@ -182,7 +182,8 @@ and you want to simplify them for the mode line | |||
| 182 | (defconst which-func-current | 182 | (defconst which-func-current |
| 183 | '(:eval (replace-regexp-in-string | 183 | '(:eval (replace-regexp-in-string |
| 184 | "%" "%%" | 184 | "%" "%%" |
| 185 | (gethash (selected-window) which-func-table which-func-unknown)))) | 185 | (or (gethash (selected-window) which-func-table) |
| 186 | which-func-unknown)))) | ||
| 186 | ;;;###autoload (put 'which-func-current 'risky-local-variable t) | 187 | ;;;###autoload (put 'which-func-current 'risky-local-variable t) |
| 187 | 188 | ||
| 188 | (defvar which-func-mode nil | 189 | (defvar which-func-mode nil |