summaryrefslogtreecommitdiff
path: root/lisp/progmodes
Commit message (Collapse)AuthorAgeFilesLines
* Merge from emacs-23.Glenn Morris2011-01-241-43/+49
|\ | | | | | | Note setting of CANNOT_DUMP on ia64 hpux is still to be merged manually.
| * Merge several fixes from upsteam ruby-mode.Nobuyoshi Nakada2011-01-221-5/+11
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/ruby-mode.el (ruby-here-doc-beg-match): Fix for here-doc which ends with an underscore. (ruby-mode-set-encoding): Skip shebang line always. (ruby-mode-map): Bind C-c C-c to comment-region. (ruby-expr-beg, ruby-font-lock-keywords): Highlight literal hash key labels as symbols. (ruby-forward-sexp): Stop after literal hash key labels. (ruby-font-lock-syntactic-keywords): Highlight regexp after open bracket.
* | * lisp/progmodes/perl-mode.el (perl-syntax-propertize-special-constructs):Stefan Monnier2011-01-241-2/+4
| | | | | | | | | | | | Don't move backward, so as not to fall in an inf-loop. Fixes: debbugs:7736
* | * lisp/progmodes/ruby-mode.el (ruby-syntax-propertize-function):Stefan Monnier2011-01-241-6/+5
| | | | | | | | | | | | Handle ?" and friends differently (e.g. don't use backrefs). Fixes: debbugs:7735
* | Merge from emacs-23Glenn Morris2011-01-222-6/+3
|\|
| * * lisp/progmodes/js.el (js--regexp-literal): Count backslashes.Stefan Monnier2011-01-211-1/+1
| | | | | | | | Fixes: debbugs:7882
| * compile.el fix for bug#7812Glenn Morris2011-01-201-5/+2
| | | | | | | | | | * lisp/progmodes/compile.el (compilation-error-regexp-alist): Fix custom type.
| * Fix bug #6684 with shell pipelines on MS-Windows.Eli Zaretskii2011-01-091-4/+7
| | | | | | | | | | | | | | | | progmodes/grep.el (grep-compute-defaults): Quote the program file name after the pipe symbol in Grep templates. jka-compr.el (jka-compr-partial-uncompress): Likewise. Fixes: debbugs:6784
* | Don't mess with *temp*.Stefan Monnier2011-01-201-28/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/obsolete/spell.el: Move from textmodes/spell.el. (spell-string): * lisp/term.el (term-read-input-ring): * lisp/startup.el (display-startup-echo-area-message): * lisp/progmodes/antlr-mode.el (antlr-directory-dependencies): * lisp/gnus/message.el (message-mailer-swallows-blank-line): * lisp/comint.el (comint-read-input-ring): Use with-temp-buffer. * lisp/international/mule.el (ctext-pre-write-conversion): Don't hardcode point-min==1. * lisp/gnus/mm-util.el (mm-find-buffer-file-coding-system): Don't forget to kill the temp buffer.
* | Refill some copyright headers.Glenn Morris2011-01-1517-35/+38
| |
* | Nuke arch-tags.Glenn Morris2011-01-1551-51/+0
| |
* | Add 2011 to remaining FSF/AIST copyright years.Glenn Morris2011-01-151-1/+1
| |
* | Merge from emacs-23 branch.Glenn Morris2011-01-151-4/+7
|\|
* | Merge from emacs-23Stefan Monnier2011-01-1480-104/+100
|\|
| * * progmodes/python.el (python-mode): Don't impose font-lock.Stefan Monnier2011-01-021-1/+0
| | | | | | | | Fixes: debbugs:3628
| * Add 2011 to FSF/AIST copyright years.Glenn Morris2011-01-0283-83/+83
| |
* | * progmodes/sh-script.el (sh-other-keywords): Add ZSH's foreachTassilo Horn2011-01-141-1/+1
| | | | | | | | loop keyword.
* | * lisp/progmodes/prolog.el: Use syntax-propertize. Further code cleanup.Stefan Monnier2011-01-131-526/+499
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (prolog-use-prolog-tokenizer-flag): Change default when syntax-propertize can be used. (prolog-syntax-propertize-function): New var. (prolog-mode-variables): Move make-local-variable into `set'. Don't make comment-column local since we don't set it. Set comment-add (as it was in previous prolog.el). Use dolist. Set syntax-propertize-function. (prolog-mode, prolog-inferior-mode): Call prolog(-inferior)-menu directly, not through the mode-hook. (prolog-buffer-module, prolog-indent-level) (prolog-paren-is-the-first-on-line-p, prolog-paren-balance) (prolog-comment-limits, prolog-goto-comment-column): Use line-(end|beginning)-position. (prolog-build-prolog-command): Tighten up regexp. (prolog-consult-compile): Move make-local-variable into `set'. (prolog-consult-compile-filter, prolog-goto-next-paren) (prolog-help-on-predicate, prolog-clause-info) (prolog-mark-predicate): Don't let+setq. (prolog-indent-line): Use indent-line-to. Only call prolog-goto-comment-column if necessary. (prolog-indent-level): Use bobp. (prolog-first-pos-on-line): Remove, not used any more. (prolog-in-string-or-comment): Use syntax-ppss if available. (prolog-help-on-predicate): Use read-string. (prolog-goto-predicate-info): Simplify. (prolog-read-predicate): Use `default' rather than `initial'. (prolog-temporary-file): Use make-temp-file to close a security hole. (prolog-toggle-sicstus-sd): New command. (prolog-electric-underscore, prolog-variables-to-anonymous): Use dynamic-scoping as it was meant. (prolog-menu): Move menu definitions to top-level. Use a toggle-button for Sicstus's source debugger. Change "Code" to the more usual "Prolog", and hence change "Prolog" to "System". (prolog-inferior-menu): Reuse prolog-menu's help menu. Move other menu definition to top-level.
* | * lisp/progmodes/prolog.el: Fix up coding conventions and such.Stefan Monnier2011-01-111-318/+239
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (prolog-indent-width): Use the same default as in previous prolog.el rather than tab-width which depends on which buffer is current when the file is loaded. (prolog-electric-newline-flag): Only enable if electric-indent-mode is not available. (prolog-emacs): Remove. Use (featurep 'xemacs) instead. (prolog-known-systems): Remove. (prolog-mode-syntax-table, prolog-inferior-mode-map): Move initialization into declaration. (prolog-mode-map): Move initialization into declaration. Remove system-specific mode-map vars, since they referred to the same keymap anyway. (prolog-mode-variables): Obey the user's preference w.r.t adaptive-fill-mode. Prefer symbol-value to `eval'. (prolog-mode-keybindings-edit): Add compatibility bindings. (prolog-mode): Use define-derived-mode. Don't handle mercury here. (mercury-mode-map): New var. (mercury-mode, prolog-inferior-mode): Use define-derived-mode. (prolog-ensure-process, prolog-process-insert-string) (prolog-consult-compile): Use with-current-buffer. (prolog-guess-fill-prefix): Simplify data flow. (prolog-replace-in-string): New function to use instead of replace-in-string. (prolog-enable-sicstus-sd): Don't abuse `eval'. (prolog-uncomment-region): Use `uncomment-region' when available. (prolog-electric-colon, prolog-electric-dash): Use `eolp'. (prolog-int-to-char, prolog-char-to-int): New functions to use instead of int-to-char and char-to-int. (prolog-mode-hook, prolog-inferior-mode-hook): Don't force font-lock.
* | * lisp/progmodes/prolog.el: Replace by a whole new file.Stefan Bruda2011-01-101-353/+4048
| |
* | Make org-link and idlwave-help-link inherit from link face.Chong Yidong2011-01-091-3/+2
| | | | | | | | | | | | | | Suggested by Joakim Verona. * lisp/org/org-faces.el (org-link): * lisp/progmodes/idlw-help.el (idlwave-help-link): Inherit from link face.
* | Tweaks to tool-bar for default, VC-dir, Compile, and Info.Chong Yidong2011-01-081-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* | * lisp/progmodes/compile.el (compilation-error-regexp-alist-alist)Andreas Schwab2011-01-081-2/+2
| | | | | | | | [gnu]: Remove unused group.
* | Fixes: debbugs:7806Andreas Schwab2011-01-081-1/+3
| | | | | | | | | | | | | | | | * 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.
* | Tidy up some js.el requires.Glenn Morris2010-12-141-4/+4
| | | | | | | | | | | | * lisp/progmodes/js.el: Doc't require font-lock, etags, or easymenu. (find-tag-marker-ring): Declare. (js-find-symbol): Require etags.
* | (c-forward-type): Before scanning a template arglist, check that theAlan Mackenzie2010-12-121-1/+2
| | | | | | | | current language supports this.
* | Derive from prog-mode, use derived-mode-p, and fix up variousStefan Monnier2010-12-1046-1026/+605
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | In gdb, try to init comint history from gdbhist.Glenn Morris2010-12-071-2/+16
| | | | | | | | | | * lisp/progmodes/gdb-mi.el (gdb): Try to initialize comint input history from gdb's history file. (Bug#7575)
* | * lisp/progmodes/which-func.el (which-func-ff-hook): Log the error message.Stefan Monnier2010-12-031-25/+28
| | | | | | | | | | (which-func-update-1): Distinguish symbols from strings. (which-function): Stay within 80 columns.
* | Small flymake changes.Glenn Morris2010-12-021-6/+26
| | | | | | | | | | | | | | | | * lisp/progmodes/flymake.el (flymake-check-file-limit): Allow nil to mean "no limit". (flymake-check-patch-master-file-buffer): Update for above change. Allow a .tex file-name extension to be optional. (flymake-master-tex-init): Also match \include statements.
* | Merge changes from emacs-23 branchChong Yidong2010-11-272-25/+35
|\|
| * * progmodes/which-func.el (which-func-imenu-joiner-function):Stefan Monnier2010-11-231-4/+4
| | | | | | | | | | | | Return a string, as expected. (which-function-mode): Make sure we stop any previous timer before starting a new one.
| * Backport fixes for Bug#5390 and Bug#5694 from trunk.Chong Yidong2010-11-211-24/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * progmodes/python.el: Add Ipython support (Bug#5390). (python-shell-prompt-alist) (python-shell-continuation-prompt-alist): New options. (python--set-prompt-regexp): New function. (inferior-python-mode, run-python, python-shell): Require ansi-color. Use python--set-prompt-regexp to set the comint prompt based on the Python interpreter. (python--prompt-regexp): New var. (python-check-comint-prompt) (python-comint-output-filter-function): Use it. (run-python): Use a pipe (Bug#5694).
| * Make the sys.path remove in Python mode customizable (Bug#7454).Chong Yidong2010-11-211-17/+31
| | | | | | | | | | * progmodes/python.el (run-python): Doc fix. (python-keep-current-directory-in-path): New var (Bug#7454).
| * python.el comment.Glenn Morris2010-11-201-0/+1
| |
* | Highlight top-level augmented assignments in Python (Bug#6445).Chong Yidong2010-11-211-1/+2
| | | | | | | | | | * progmodes/python.el (python-font-lock-keywords): Highlight top-level augmented assignments (Bug#6445).
* | Merge from emacs-23Stefan Monnier2010-11-171-1/+1
|\|
| * * lisp/progmodes/python.el (python-shell): Doc fix.Glenn Morris2010-11-091-2/+1
| |
* | * lisp/progmodes/python.el (run-python): Explain why we remove the currentStefan Monnier2010-11-171-0/+5
| | | | | | | | directory from sys.path. Suggested by Eric Hanchrow <erich@cozi.com>.
* | * lisp/progmodes/grep.el (grep-regexp-alist): Tighten the regexp.Stefan Monnier2010-11-171-2/+6
| | | | | | | | Fixes: debbugs:7378
* | * lisp/progmodes/octave-mod.el: Rely on elecric-*-modes.Stefan Monnier2010-11-161-64/+5
| | | | | | | | | | | | | | | | | | | | (octave-mode-map): Don't bind ;, SPC, and LF. (octave-auto-indent, octave-auto-newline): Remove. (electric-layout-rules): Declare. (octave-mode): Set electric-layout-rules. (octave-indent-new-comment-line): Use reindent-then-newline-and-indent. (octave-reindent-then-newline-and-indent, octave-electric-semi) (octave-electric-space): Remove.
* | * lisp/progmodes/modula2.el: Use SMIE and skeleton.Stefan Monnier2010-11-111-273/+326
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (m2-mode-syntax-table): (*..*) can be nested. Add //...\n. Fix paren syntax. (m2-mode-map): Remove LF and TAB bindings. (m2-indent): Add safety property. (m2-smie-grammar): New var. (m2-smie-refine-colon, m2-smie-refine-of, m2-smie-backward-token) (m2-smie-forward-token, m2-smie-refine-semi, m2-smie-rules): New funs. (m2-mode): Use define-derived-mode. (m2-newline, m2-tab): Remove. (m2-begin, m2-case, m2-definition, m2-else, m2-for, m2-header) (m2-if, m2-loop, m2-module, m2-or, m2-procedure, m2-with, m2-record) (m2-stdio, m2-type, m2-until, m2-var, m2-while, m2-export) (m2-import): Use define-skeleton. * test/indent/modula2.mod: New file.
* | Silence idlw*.el compilation.Glenn Morris2010-11-104-47/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/idlw-complete-structtag.el: Remove unused dec `name'. * lisp/progmodes/idlwave.el (idlwave-routine-entry-compare-twins) (idlwave-study-twins): Prefix dynamic local variable `name'. (idlwave-routine-twin-compare): Update for above change. * lisp/progmodes/idlw-help.el (idlwave-do-mouse-completion-help): Prefix dynamic local variables `name', `kwd', and `link'. * lisp/progmodes/idlw-shell.el (idlwave-shell-complete-execcomm-help): * lisp/progmodes/idlw-complete-structtag.el (idlwave-complete-structure-tag-help): * lisp/progmodes/idlwave.el (idlwave-complete-sysvar-help) (idlwave-complete-sysvar-tag-help) (idlwave-complete-class-structure-tag-help): Update for above name changes.
* | * lisp/progmodes/octave-mod.el (octave-mark-block): Update for smie change.Glenn Morris2010-11-101-4/+3
| |
* | system-type related trivia.Glenn Morris2010-11-092-7/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/cedet/semantic/bovine/c.el: Test system-type with memq. * lisp/progmodes/cperl-mode.el (cperl-find-pods-heres, cperl-write-tags): No recent Emacs supports system-type `emx'. * lisp/progmodes/ada-xref.el (is-windows): Rename to ada-on-ms-windows. (ada-command-separator, ada-default-prj-properties) (ada-find-any-references): Update for above name change. * lisp/dirtrack.el (dirtrack-directory-function) (dirtrack-canonicalize-function): * lisp/filecache.el (file-cache-completion-ignore-case) (file-cache-case-fold-search, file-cache-ignore-case): * lisp/term.el (serial-port-is-file-p): Cosmetic change. * lisp/emulation/viper-init.el (viper-ms-style-os-p): Doc fix. Remove non-existent `windows-95' system-type. * lisp/dired.el (dired-chown-program): Remove non-existent `linux' system-type. * lisp/locate.el: Comment.
* | Merge from emacs-23Stefan Monnier2010-11-093-37/+34
|\|
| * * lisp/progmodes/tcl.el (tcl-hairy-scan-for-comment): Doc fix.Glenn Morris2010-11-081-9/+1
| |
| * * lisp/progmodes/python.el (python-font-lock-syntactic-keywords):Stefan Monnier2010-11-081-14/+5
| | | | | | | | | | | | | | Fix handling of backslash escapes. (python-quote-syntax): Adjust accordingly. Fixes: debbugs:7322
| * * progmodes/verilog-mode.el (verilog-insert-one-definition)Wilson Snyder2010-11-061-13/+30
| | | | | | | | | | | | | | | | (verilog-read-decls, verilog-read-sub-decls-sig): Fix AUTOWIRE and AUTOINOUT for SV style multidimensional arrays, bug294. Reported by Eric Mastromarchi. (verilog-preprocess): Use with-current-buffer and font-lock-fontify-buffer to cleanup style issues.
* | * lisp/progmodes/meta-mode.el: (meta-indent-line): Simplify.Glenn Morris2010-11-091-6/+5
| |