Stefan Monnier
77ab81d054
Merge from emacs-23
2011-01-14 12:18:41 -05:00
Chong Yidong
900503ae79
Tweaks to tool-bar for default, VC-dir, Compile, and Info.
...
* tool-bar.el (tool-bar-setup): Remove Help button. Remove label
from Search and add a label to Undo.
* vc/vc-dir.el (vc-dir-tool-bar-map): Rearrange, removing
inappropriate buttons and adding :vert-only tags.
* progmodes/compile.el (compilation-mode-tool-bar-map): Adjust to
removal of Help tool-bar button. Remove Undo button for space.
* info.el (info-tool-bar-map): Add :vert-only tags.
2011-01-08 23:13:47 -05:00
Andreas Schwab
6c7ec17145
* lisp/progmodes/compile.el (compilation-error-regexp-alist-alist)
...
[gnu]: Remove unused group.
2011-01-08 14:32:31 +01:00
Andreas Schwab
7c8379331a
Fixes: debbugs:7806
...
* etc/compilation.txt: Add column to gcc-include sample.
* lisp/progmodes/compile.el (compilation-error-regexp-alist-alist)
[gcc-include]: Tighten file name match, add match for column
number.
2011-01-08 14:31:26 +01:00
Glenn Morris
5df4f04cd3
Add 2011 to FSF/AIST copyright years.
2011-01-02 15:50:46 -08:00
Stefan Monnier
175069efeb
Derive from prog-mode, use derived-mode-p, and fix up various
...
minor style issues in lisp/progmodes.
* lisp/progmodes/vhdl-mode.el (vhdl-write-file-hooks-init)
(vhdl-hs-minor-mode, vhdl-ps-print-init): Fix make-local-variable ->
make-local-hook.
* lisp/progmodes/sh-script.el (sh-require-final-newline): Remove.
(sh-set-shell): Don't set require-final-newline since it's already done
by prog-mode.
* lisp/progmodes/modula2.el (m2-mode): Don't make m2-end-comment-column
since we never set it.
* lisp/progmodes/ebrowse.el (ebrowse-set-tree-indentation):
Use read-string and standard prompt.
* lisp/progmodes/dcl-mode.el (dcl-mode-map): Move init into declaration.
* lisp/progmodes/meta-mode.el (meta-mode-abbrev-table): Merge init and decl.
(meta-common-mode-syntax-table): Rename from meta-mode-syntax-table.
(meta-common-mode-map): Rename from meta-mode-map.
Remove C-m binding, which is a user preference, not mode specific.
(meta-common-mode): New major mode; replace meta-common-initialization.
* lisp/progmodes/js.el (js-mode): Call syntax-propertize rather than messing
around with font-lock.
* lisp/progmodes/etags.el (select-tags-table-mode):
Derive from special-mode.
* lisp/progmodes/octave-mod.el (octave-mode):
* lisp/progmodes/gdb-mi.el (gdb-inferior-io-mode, gdb-threads-mode)
(gdb-memory-mode, gdb-disassembly-mode, gdb-breakpoints-mode)
(gdb-frames-mode, gdb-locals-mode, gdb-registers-mode):
Let define-derived-mode do its job.
* lisp/progmodes/cpp.el (cpp-edit-mode-map):
Move initialization into declaration.
(cpp-edit-mode): Use define-derived-mode.
(cpp-edit-load): Use derived-mode-p.
* lisp/progmodes/mixal-mode.el (mixal-mode):
* lisp/progmodes/f90.el (f90-mode):
* lisp/progmodes/cfengine.el (cfengine-mode): Don't bother setting
require-final-newline since prog-mode does it already.
* lisp/progmodes/cc-cmds.el (c-update-modeline): Use match-string.
* lisp/progmodes/asm-mode.el (asm-mode-map): Fix menu setup.
* lisp/progmodes/antlr-mode.el: Require cc-mode upfront.
(antlr-mode-syntax-table, antlr-action-syntax-table): Initialize in
the declaration.
(antlr-directory-dependencies, antlr-show-makefile-rules):
Use derived-mode-p.
(antlr-language-option): Don't assume point-min==1.
(antlr-mode): Use define-derived-mode.
* lisp/progmodes/ada-mode.el: Use derived-mode-p.
(ada-mode): Use define-derived-mode.
Use hack-local-variables-hook.
* lisp/progmodes/vhdl-mode.el (vhdl-mode):
* lisp/progmodes/verilog-mode.el (verilog-mode):
* lisp/progmodes/vera-mode.el (vera-mode):
* lisp/progmodes/sql.el (sql-mode):
* lisp/progmodes/scheme.el (scheme-mode):
* lisp/progmodes/perl-mode.el (perl-mode):
* lisp/progmodes/octave-inf.el (inferior-octave-mode):
* lisp/progmodes/autoconf.el (autoconf-mode):
* lisp/progmodes/m4-mode.el (m4-mode):
* lisp/progmodes/inf-lisp.el (inferior-lisp-mode):
* lisp/progmodes/idlwave.el (idlwave-mode):
* lisp/progmodes/icon.el (icon-mode):
* lisp/progmodes/idlw-help.el (idlwave-help-mode):
* lisp/progmodes/dcl-mode.el (dcl-mode):
* lisp/progmodes/idlw-shell.el (idlwave-shell-mode):
* lisp/progmodes/ebrowse.el (ebrowse-tree-mode, ebrowse-electric-list-mode)
(ebrowse-member-mode, ebrowse-electric-position-mode):
Use define-derived-mode.
* lisp/progmodes/xscheme.el (xscheme-start)
(local-set-scheme-interaction-buffer, scheme-interaction-mode):
* lisp/progmodes/which-func.el (which-function):
* lisp/progmodes/vhdl-mode.el (vhdl-set-style):
* lisp/progmodes/verilog-mode.el (verilog-set-compile-command)
(verilog-modify-compile-command, verilog-error-regexp-add-xemacs)
(verilog-set-define, verilog-auto-reeval-locals):
* lisp/progmodes/sql.el (sql-product-font-lock, sql-interactive-mode):
* lisp/progmodes/simula.el (simula-mode):
* lisp/progmodes/scheme.el (scheme-mode-variables, dsssl-mode):
* lisp/progmodes/python.el (python-check, python-mode):
* lisp/progmodes/prolog.el (prolog-mode-variables):
* lisp/progmodes/gud.el (gud-tooltip-activate-mouse-motions):
* lisp/progmodes/ebrowse.el (ebrowse-view-file-other-frame):
* lisp/progmodes/delphi.el (delphi-mode):
* lisp/progmodes/cc-styles.el (c-setup-paragraph-variables):
* lisp/progmodes/cc-mode.el (c-basic-common-init, c-common-init)
(c-font-lock-init): Move make-local-variable to their setq.
* lisp/progmodes/xscheme.el (exit-scheme-interaction-mode)
(xscheme-enter-interaction-mode, xscheme-enter-debugger-mode)
(xscheme-debugger-mode-p, xscheme-send-string-1):
* lisp/progmodes/tcl.el (inferior-tcl-proc, tcl-current-word)
(tcl-load-file, tcl-restart-with-file):
* lisp/progmodes/ps-mode.el (ps-run-running):
* lisp/progmodes/gdb-mi.el (gud-watch, gdb-mouse-set-clear-breakpoint):
* lisp/progmodes/js.el (js--get-all-known-symbols):
* lisp/progmodes/inf-lisp.el (inferior-lisp-proc):
* lisp/progmodes/idlwave.el (idlwave-beginning-of-statement)
(idlwave-template, idlwave-update-buffer-routine-info)
(idlwave-update-current-buffer-info)
(idlwave-get-routine-info-from-buffers, idlwave-choose)
(idlwave-scan-class-info, idlwave-fix-keywords)
(idlwave-list-buffer-load-path-shadows):
* lisp/progmodes/idlw-toolbar.el (idlwave-toolbar, idlwave-toolbar-add)
(idlwave-toolbar-remove):
* lisp/progmodes/idlw-shell.el (idlwave-shell-save-and-action)
(idlwave-shell-file-name, idlwave-shell-electric-debug-all-off)
(idlwave-shell-menu-def):
* lisp/progmodes/idlw-complete-structtag.el
(idlwave-prepare-structure-tag-completion):
* lisp/progmodes/gud.el (gud-set-buffer):
* lisp/progmodes/f90.el (f90-backslash-not-special):
* lisp/progmodes/delphi.el (delphi-find-unit): Use derived-mode-p.
2010-12-10 15:00:25 -05:00
Jes Bodi Klinke
77b143ebc1
* lisp/progmodes/compile.el (compilation-mode-font-lock-keywords):
...
Don't confuse -omega as "-o mega".
2010-10-27 21:10:22 -04:00
Glenn Morris
5e339ee2a3
Move some autoloaded auto-mode-alist entries to files.el.
...
* image-mode.el, progmodes/compile.el, progmodes/gud.el:
* progmodes/mixal-mode.el, textmodes/bibtex-style.el:
* textmodes/css-mode.el, textmodes/dns-mode.el:
Move autoloaded auto-mode-alist entries to files.el.
* files.el (auto-mode-alist): Move entries here.
2010-09-23 20:06:33 -07:00
Stefan Monnier
331b2b903c
* lisp/progmodes/compile.el (compilation-error-regexp-alist-alist):
...
Not a const.
(compilation-error-regexp-alist-alist): Rule out ": " in file names
for the `gnu' messages.
(compilation-set-skip-threshold): New command.
(compilation-start): Use \' rather than $.
(compilation-forget-errors): Use clrhash.
2010-09-08 17:53:08 +02:00
Chong Yidong
13ef65a483
Fix Ruby compilation error matching.
...
* progmodes/compile.el (compilation-error-regexp-alist-alist):
Remove ruby regexp; handle Ruby errors with gcc-include and gnu.
Recognize leading tab in gcc-include regexp. Ignore names with
leading "from" or "in" in gnu regexp (Bug#6937).
2010-09-04 16:42:03 -04:00
Chong Yidong
c68263b1fd
Give Ruby compilation rule a lower priority than Gnu (Bug#6778).
...
* progmodes/compile.el (compilation-error-regexp-alist-alist):
Give the Ruby rule a lower priority than Gnu (Bug#6778).
* etc/compilation.txt: Make Cucumber test less verbose.
2010-08-14 20:04:53 -04:00
Juanma Barranquero
0ed082fedf
Merge from emacs-23
2010-07-27 04:10:05 +02:00
Chong Yidong
e72b6fa4b2
Doc fix to commentary (Bug#6653).
2010-07-17 17:57:06 -04:00
Aleksei Gusev
dce3463576
Add compilation regexps for cucumber and ruby.
...
* lisp/progmodes/compile.el (compilation-error-regexp-alist-alist): Add
regexps for cucumber and ruby.
2010-07-10 15:47:59 -04:00
Stefan Monnier
f913fe7d54
* progmodes/compile.el (compilation-buffer-modtime): Rename from
...
buffer-modtime. Adjust users.
2010-05-08 16:51:08 -04:00
Stefan Monnier
3b548e1b3a
* progmodes/compile.el: (compilation-start): Abbreviate default directory.
2010-04-23 11:59:32 -04:00
Chong Yidong
790c2e44de
Revert 2009-10-12 change to compilation-next-error-function (Bug#5983).
...
* progmodes/compile.el (compilation-next-error-function): Revert
2009-10-12 change (Bug#5983).
2010-04-20 12:04:05 -04:00
Glenn Morris
ba33df004a
* compile.el (compilation-save-buffers-predicate): Add missing :version tag.
2010-04-09 19:18:09 -07:00
Sam Steingold
4a8ae76f68
(compilation-save-buffers-predicate): Remove the "autoload" cookie.
2010-04-09 11:52:45 -04:00
Sam Steingold
9e86ab0bc7
(compilation-save-buffers-predicate): New custom variable.
...
(compile, recompile): Pass it to `save-some-buffers'.
2010-04-07 12:20:35 -04:00
Chong Yidong
f6f8aa1251
Fix for `compile' (Bug#5771).
...
* progmodes/compile.el (compilation-start): Fix regexp detection
of initial cd command (Bug#5771).
2010-03-28 15:51:55 -04:00
Sam Steingold
5f2484c238
fix a typo in last patch
2010-03-24 09:41:07 -04:00
Sam Steingold
f4087766ce
Fix bug#5620: recalculate all markers on compilation buffer
...
modifications, not on file modifications.
(buffer-modtime): New buffer-local variable:
the buffer modification time, for buffers not associated with files.
(compilation-mode): Create it.
(compilation-filter): Update it.
(compilation-next-error-function): Use it instead of
`visited-file-modtime' for timestamp.
2010-03-23 14:22:46 -04:00
Chong Yidong
3e39928c77
* progmodes/compile.el (compilation-error-regexp-alist-alist): In
...
`watcom' anchor regexp to start of line, to avoid slowness
(Bug#5599).
2010-02-20 08:53:06 -05:00
Glenn Morris
114f9c9679
Add 2010 to copyright years.
2010-01-13 00:35:10 -08:00
Chong Yidong
4d9bbfa616
* compile.el (compilation-read-command): Doc fix.
2010-01-09 16:14:50 -05:00
Chong Yidong
fa7b5f7b98
Fix compile-command's safe-local-variable condition.
...
* progmodes/compile.el: Don't treat compile-command as safe if
compilation-read-command might be nil (Bug#4218).
2010-01-09 15:53:55 -05:00
Dan Nicolaescu
6d341a2a09
* textmodes/ispell.el (ispell-skip-region-alist):
...
* textmodes/css-mode.el (auto-mode-alist):
* progmodes/compile.el (auto-mode-alist):
* international/mule.el (ctext-non-standard-encodings-alist)
(ctext-non-standard-encodings-regexp):
* simple.el (shell-command-switch, text-read-only):
* replace.el (occur-mode-map):
* paths.el (rmail-file-name):
* jka-cmpr-hook.el (jka-compr-build-file-regexp):
* find-file.el (ff-special-constructs):
* files.el (file-name-handler-alist):
* composite.el: Purecopy strings.
2009-11-12 06:55:39 +00:00
Dan Nicolaescu
aaa448c984
* widget.el (define-widget): Purecopy the docstring.
...
* international/mule-cmds.el (charset): Do not purecopy the
docstring here, define-widget does it.
* textmodes/texinfo.el (texinfo-open-quote, texinfo-close-quote):
* textmodes/bibtex-style.el (auto-mode-alist):
* progmodes/inf-lisp.el (inferior-lisp-prompt):
* progmodes/compile.el (compile-command):
* language/korea-util.el (default-korean-keyboard):
* international/mule-conf.el (file-coding-system-alist):
* emacs-lisp/eldoc.el (eldoc-minor-mode-string):
* tooltip.el (tooltip-frame-parameters):
* newcomment.el (comment-end, comment-padding):
* dired.el (dired-trivial-filenames):
* comint.el (comint-file-name-prefix): Purecopy initial values.
2009-11-11 19:24:20 +00:00
Chong Yidong
951802d0c1
* compilation.txt: Add one more error message for msft (Bug#4100).
2009-11-08 16:30:52 +00:00
Juanma Barranquero
057bce6f17
Fix typos in comments.
...
* minibuf.c (Fall_completions): Fix typo in docstring.
2009-10-26 15:18:03 +00:00
Sam Steingold
1d57e5e2e3
fix a typo in the last patch
2009-10-13 02:59:19 +00:00
Sam Steingold
0cd16af432
(compilation-mode-font-lock-keywords): Do not prepend "^ *" to
...
non-anchored patterns, like the perl one (bug#3928).
2009-10-12 21:04:15 +00:00
Sam Steingold
cd29f88b1d
(compilation-next-error-function): Fix the
...
timestamps if the buffer has been visited before
2009-10-12 20:42:45 +00:00
Richard M. Stallman
1fc01b083c
* progmodes/compile.el (compilation-goto-locus): Use next-error-move-function.
2009-08-13 00:58:54 +00:00
Chong Yidong
6807d8ca51
Update comment (from Kevin Ryde).
2009-08-10 02:44:58 +00:00
Sam Steingold
2b1d2412c5
(compilation-mode-font-lock-keywords): Omake sometimes indents the
...
errors it prints, so allow all regexps to start with spaces.
2009-07-10 18:23:49 +00:00
Chong Yidong
f7a2e63478
* progmodes/compile.el (compilation-error-regexp-alist-alist):
...
Comment out 2007-07-25 change adding support for Maven error
messages; this regexp is too slow on long lines (Bug#3441).
2009-06-17 16:33:41 +00:00
Richard M. Stallman
0b508a2736
* progmodes/compile.el (compilation-filter): If inserting at end
...
of accessible part of buffer, keep end of output visible.
2009-05-18 16:30:59 +00:00
Sam Steingold
0fdb20bb32
(compilation-error-regexp-alist-alist): Handle "omake -P" messages "file foo changed".
2009-03-04 14:33:42 +00:00
Sam Steingold
ee15d7591b
(compilation-move-to-column): Guard against negative col values.
2009-03-03 22:26:24 +00:00
Chong Yidong
721451bc13
Fix last change.
2009-02-21 19:50:17 +00:00
Chong Yidong
2f49167cb2
(compilation-error-regexp-alist-alist): Tweak regexp (Bug#2173).
2009-02-21 18:52:19 +00:00
Nick Roberts
8fca05449a
(compilation-error-regexp-alist-alist):
...
Move entry for maven (alphabetical order).
2009-02-19 06:54:22 +00:00
Sam Steingold
72fcf38256
Require comint at top level to fix the last patch.
2009-02-18 15:37:40 +00:00
Sam Steingold
2017951613
(compilation-filter): Call comint-carriage-motion', just like comint-output-filter'.
2009-02-17 16:49:40 +00:00
Glenn Morris
ae940284fa
Add 2009 to copyright years.
2009-01-05 03:18:22 +00:00
Sam Steingold
430aee8b91
(compilation-read-command): Extracted from compile.
...
(compile): Use it.
(recompile): Accept an optional argument to enable editing the command line.
2008-12-04 23:04:39 +00:00
Juri Linkov
6cc725cde5
(compilation-auto-jump-to-first-error):
...
Fix docstring - change "during `compile'" to "during compilation".
2008-11-22 20:42:18 +00:00
Sam Steingold
dd93e6daf7
(compilation-start-hook): New hook.
...
(compilation-start): Run it on the compilation process.
2008-11-18 14:14:37 +00:00