summaryrefslogtreecommitdiff
path: root/lisp/progmodes
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright year to 2014 by running admin/update-copyright.Paul Eggert2014-01-0185-85/+88
|
* Fix infloop in indentation codeDaniel Colascione2013-12-301-2/+2
|
* Every defcustom should specify its typeGlenn Morris2013-12-281-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * apropos.el (apropos-match-face): * calculator.el (calculator-displayer): * dabbrev.el (dabbrev-search-these-buffers-only): * face-remap.el (buffer-face-mode-face): * simple.el (yank-handled-properties): * emacs-lisp/testcover.el (testcover-potentially-1value-functions): * mail/footnote.el (footnote-mode-line-string, footnote-prefix): * mail/hashcash.el (hashcash-accept-resources, hashcash-program) (hashcash-double-spend-database): * progmodes/ruby-mode.el (ruby-deep-indent-paren) (ruby-deep-indent-paren-style): * textmodes/flyspell.el (flyspell-auto-correct-binding): * textmodes/rst.el (rst-toc-indent, rst-toc-insert-style) (rst-toc-insert-number-separator, rst-toc-insert-max-level): * vc/pcvs-defs.el (cvs-minor-mode-prefix): * erc/erc-log.el (erc-log-file-coding-system): * gnus/gnus-sieve.el (gnus-sieve-select-method): * gnus/gravatar.el (gravatar-automatic-caching, gravatar-cache-ttl) (gravatar-rating, gravatar-size): * gnus/message.el (message-minibuffer-local-map): * gnus/sieve-manage.el (sieve-manage-authenticators) (sieve-manage-authenticator-alist): Specify custom types. * mail/hashcash.el (hashcash-program): Rename from hashcash-path. Update callers.
* Add missing custom :versions, plus small fixesGlenn Morris2013-12-272-1/+3
| | | | | | | | | | | | | | | | | | | | | | * emacs-lisp/smie.el (smie-config): Add type, version, initialize. * bookmark.el (bookmark-bmenu-use-header-line): * doc-view.el (doc-view-scale-internally): * pcmpl-x.el (pcmpl-x-tlmgr-program, pcmpl-x-ack-program): * register.el (register-preview-delay): * net/shr.el (shr-bullet): * progmodes/cfengine.el (cfengine-cf-promises) (cfengine-parameters-indent): * progmodes/octave.el (inferior-octave-error-regexp-alist): * textmodes/reftex-vars.el (reftex-label-regexps): * vc/log-edit.el (log-edit-setup-add-author): Add version. * cedet/ede/linux.el (project-linux-build-directory-default) (project-linux-architecture-default): Fix custom types. Add version. * gnus/gnus-icalendar.el (gnus-icalendar-org, gnus-icalendar): * gnus/gnus-sum.el (gnus-subthread-sort-functions): Add version. * gnus/gnus-sync.el (gnus-sync-file-encrypt-to): Add type and version.
* Misc small custom fixesGlenn Morris2013-12-273-5/+5
| | | | | | | | | | | | | | | | | | | | | | | The value of defcustom's const should not be quoted! * lisp/desktop.el (desktop-restore-in-current-display): * lisp/newcomment.el (comment-empty-lines): * lisp/progmodes/idlwave.el (idlwave-scan-all-buffers-for-routine-info) (idlwave-pad-keyword): * lisp/progmodes/tcl.el (tcl-tab-always-indent): * lisp/textmodes/reftex-vars.el (reftex-index-default-tag): * lisp/elec-pair.el (electric-pair-skip-whitespace): * lisp/progmodes/cfengine.el (cfengine-cf-promises): * lisp/cedet/ede/linux.el (project-linux-build-directory-default) (project-linux-architecture-default): * lisp/erc/erc-button.el (erc-button-alist): * lisp/gnus/auth-source.el (auth-sources): * lisp/gnus/nnmairix.el (nnmairix-propagate-marks-upon-close): * lisp/url/url-history.el (url-history-track): * lisp/url/url-vars.el (url-honor-refresh-requests): Fix custom types. * lisp/net/tls.el (tls-certtool-program): Fix default value.
* * lisp/progmodes/python.el: Use lexical-binding.Fabián Ezequiel Gallina2013-12-261-9/+9
| | | | (python-nav-beginning-of-defun): Stop searching ASAP.
* byte-run.el (eval-when-compile), cc-defs.el (cc-eval-when-compile): Fix ↵Katsumi Yamaoka2013-12-251-1/+1
| | | | edebug spec (bug#16184)
* * lisp/progmodes/python.el:Fabián Ezequiel Gallina2013-12-251-24/+64
| | | | | | | | | | | | | | | | | | | (python-nav--lisp-forward-sexp): New function. (python-nav--lisp-forward-sexp-safe): Use it. Rename from python-nav-lisp-forward-sexp-safe. (python-nav--forward-sexp): New argument SAFE allows switching forward sexp movement behavior for parens. (python-nav-forward-sexp): Throw errors on unterminated parens. (python-nav-backward-sexp, python-nav-forward-sexp-safe) (python-nav-backward-sexp-safe): New functions. (python-shell-buffer-substring): Use `python-nav-forward-sexp-safe'. * test/automated/python-tests.el (python-nav-lisp-forward-sexp-safe-1): Remove test. (python-nav-forward-sexp-safe-1): New test. Fixes: debbugs:16191
* * lisp/progmodes/python.el (python-nav-beginning-of-statement): SpeedFabián Ezequiel Gallina2013-12-241-9/+15
| | | | | | up. Fixes: debbugs:15295
* Rename set-temporary-overlay-map -> set-transient-mapChong Yidong2013-12-231-1/+1
| | | | | | | | | | | | | | | | | | | | | * lisp/subr.el (set-transient-map): Rename from set-temporary-overlay-map. Doc fix. * lisp/face-remap.el (text-scale-adjust): * lisp/indent.el (indent-rigidly): * lisp/kmacro.el (kmacro-call-macro): * lisp/minibuffer.el (minibuffer-force-complete): * lisp/repeat.el (repeat): * lisp/simple.el (universal-argument--mode): * lisp/calendar/todo-mode.el (todo-insert-item--next-param): * lisp/progmodes/f90.el (f90-abbrev-start): Callers changed. * lisp/org/org.el (orgstruct-make-binding): Call set-transient-map instead of old name set-temporary-overlay-map. * doc/lispref/keymaps.texi (Controlling Active Maps): Renamed set-temporary-overlay-map to set-transient map. Doc fixes. (Searching Keymaps): The transient keymap takes precedence.
* * lisp/progmodes/ruby-mode.el (ruby--electric-indent-p): Improve theDmitry Gutov2013-12-221-4/+4
| | | | comments. Handle electric indent after typing `?' and `!'.
* * lisp/progmodes/ruby-mode.el (ruby-smie--implicit-semi-p): Return tDmitry Gutov2013-12-221-1/+1
| | | | | after `{'. We need it after block openers, and it doesn't seem to hurt after hash openers.
* Integrate ruby-mode with electric-indent-mode betterDmitry Gutov2013-12-221-3/+32
| | | | | | | | | * lisp/progmodes/ruby-mode.el (ruby--at-indentation-p): New function, extracted from `ruby-smie-rules'. (ruby--electric-indent-chars): New variable. (ruby--electric-indent-p): New function. (ruby-mode): Use `electric-indent-functions' instead of `electric-indent-chars'.
* * lisp/progmodes/ruby-mode.el (ruby-align-to-stmt-keywords): Tweak theDmitry Gutov2013-12-221-1/+3
| | | | | docstring. (ruby-smie-rules): Indent plus one level after `=>'.
* * progmodes/sh-script.el (sh-mode): Tweak paragraph-separateDaniel Colascione2013-12-201-1/+1
| | | | so that we don't reflow comments into the shebang line.
* * lisp/replace.el (read-regexp-defaults-function): New defcustom.Juri Linkov2013-12-201-6/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | (read-regexp-suggestions): New function. (read-regexp): Use `read-regexp-defaults-function' to get default values. Use `read-regexp-suggestions'. Add non-empty default to history for empty input. (occur-read-regexp-defaults-function): Remove function. (occur-read-primary-args): Use `regexp-history-last' instead of `occur-read-regexp-defaults-function'. * lisp/hi-lock.el (hi-lock-read-regexp-defaults-function): Remove function. (hi-lock-line-face-buffer, hi-lock-face-buffer) (hi-lock-face-phrase-buffer): Use `regexp-history-last' instead of `hi-lock-read-regexp-defaults-function'. Doc fix. (hi-lock-face-symbol-at-point): Replace `find-tag-default-as-regexp' with `find-tag-default-as-symbol-regexp'. Doc fix. (hi-lock-read-regexp-defaults): Remove function. (hi-lock-regexp-okay): Add check for null. * lisp/progmodes/grep.el (grep-read-regexp): Use `grep-tag-default' for the arg DEFAULTS. Move formatting of the prompt to `read-regexp'. * lisp/subr.el (find-tag-default-as-symbol-regexp): New function. (find-tag-default-as-regexp): Move symbol regexp formatting to `find-tag-default-as-symbol-regexp'. Fixes: debbugs:14405
* * lisp/progmodes/ruby-mode.el (ruby-align-to-stmt-keywords): NewDmitry Gutov2013-12-201-7/+56
| | | | | | | | | | | | | | | | | | option. (ruby-smie--indent-to-stmt-p): Use it. (ruby-smie-rules): Revert the logic in the handling of `when'. Expand the `begin' clause to handle `ruby-align-to-stmt-keywords'. (ruby-deep-arglist, ruby-deep-indent-paren) (ruby-deep-indent-paren-style): Update docstrings to note that the vars don't have any effect with SMIE. * test/automated/ruby-mode-tests.el: Add tests for `ruby-align-to-stmt-keywords'. * test/indent/ruby.rb: Update examples to reflect the lack of change in default indentation of `begin' blocks. Fixes: debbugs:16182
* octave-mode: Link to manual.Rüdiger Sonderfeld2013-12-201-0/+3
| | | | | | * lisp/progmodes/octave.el (octave): Add link to manual and octave homepage. (octave-mode-menu): Link to octave-mode manual.
* * lisp/progmodes/ruby-mode.el (ruby-smie-rules): Indent middle-of-blockDmitry Gutov2013-12-191-2/+3
| | | | keywords to their parent.
* * lisp/progmodes/ruby-mode.el (ruby-smie--args-separator-p): Allow theDmitry Gutov2013-12-191-20/+22
| | | | | | | | | | | | | | first arg to be a string (fixed dead code), or an operator symbol. (ruby-smie--forward-token): Tokenize ` @ ' before strings and operator symbols. (ruby-smie-rules): Remove parent token check in the `.' clause, it did nothing. Don't respond to `(:after ".")', it will be called with :before anyway. Remove the ` @ ' rule, it didn't seem to change anything. Only return indentation for binary operators when they are hanging. De-dent opening paren when its parent is `.', otherwise it looks bad when the dot is not at bol or eol. Fixes: debbugs:16182
* make-mode.el (makefile-fill-paragraph): Fix infloop.Kazuhiro Ito2013-12-181-1/+2
| | | | Fixes: debbugs:13914
* * lisp/progmodes/ruby-mode.el (ruby-smie-rules): Indent ternary if.Dmitry Gutov2013-12-171-0/+1
|
* Cleanup cfengine3-mode so complete-symbol works again.Ted Zlatanov2013-12-161-14/+11
| | | | | | | | | * progmodes/cfengine.el (cfengine3--current-word): Remove. (cfengine3--current-function): Bring in the current-function functionality from `cfengine3--current-word'. (cfengine3-completion-function): Bring in the bounds-of-current-word functionality from `cfengine3--current-word'.
* * progmodes/compile.el (compile-goto-error): Do not push-mark.Leo Liu2013-12-161-4/+3
| | | | Remove NOMSG arg and all uses changed.
* Fix comment from the last change to `ruby-smie-rules'Dmitry Gutov2013-12-141-1/+1
|
* Fix bug#16118Dmitry Gutov2013-12-141-3/+14
| | | | | | | | | | * lisp/progmodes/ruby-mode.el (ruby-smie-rules): Return nil before open-paren tokens when preceded by a open-paren, too. (ruby-smie-rules): Handle virtual indentation after open-paren tokens specially. If there is code between it and eol, return the column where is starts. * test/indent/ruby.rb: New examples.
* progmodes/cfengine.el: Fix `add-hook' doc.Ted Zlatanov2013-12-131-1/+1
| | | | * progmodes/cfengine.el: Fix `add-hook' doc.
* More cfengine.el fixes over previous commit.Ted Zlatanov2013-12-131-32/+33
| | | | | | | | | | * progmodes/cfengine.el (cfengine-mode-syntax-functions-regex): Initialize sensibly. (cfengine3--current-word): Fix parameters. (cfengine3-make-syntax-cache): Simplify further. (cfengine3-completion-function, cfengine3--current-function): Use `assq' for symbols. (cfengine3--current-function): Fix `cfengine3--current-word' call.
* Improve CFEngine 3 parsing and eldoc support, with syntax fallbacksTed Zlatanov2013-12-131-40/+686
| | | | | | | | | | | | | | | | | * progmodes/cfengine.el (cfengine-cf-promises): Add more default locations for cf-promises. (cfengine-mode-syntax-functions-regex): New caching variable. (cfengine3-fallback-syntax): Fallback syntax for cases where cf-promises doesn't run. (cfengine3--current-word): Reimplement using `cfengine-mode-syntax-functions-regex'. (cfengine3-completion-function, cfengine3--current-function): Use `cfengine3-make-syntax-cache' directly. (cfengine3-clear-syntax-cache): New function. (cfengine3-make-syntax-cache): Simplify and create `cfengine-mode-syntax-functions-regex' on demand. (cfengine3-format-function-docstring): Don't call `cfengine3-make-syntax-cache' explicitly.
* * lisp/progmodes/python.el (python-pdbtrack-stacktrace-info-regexp):Fabián Ezequiel Gallina2013-12-121-2/+4
| | | | | | | | Also match after beginning of line. (python-pdbtrack-set-tracked-buffer): Fix logic for remote files. Thanks to Russell Sim. Fixes: debbugs:15378
* * lisp/progmodes/python.el (python-indent-calculate-indentation): FixFabián Ezequiel Gallina2013-12-121-13/+25
| | | | | | | | de-denters cornercase. * test/automated/python-tests.el (python-indent-dedenters-2): New test. Fixes: debbugs:15731
* * lisp/progmodes/python.el (python-indent-context)Fabián Ezequiel Gallina2013-12-121-0/+16
| | | | | | | | | | (python-indent-calculate-indentation): Fix auto-identation behavior for comment blocks. * test/automated/python-tests.el (python-indent-after-comment-1) (python-indent-after-comment-2): New tests. Fixes: debbugs:15916
* * lisp/progmodes/python.el (python-indent-calculate-indentation): WhenNathan Trapuzzano2013-12-121-1/+1
| | | | | | | | | | | determining indentation, don't treat "return", "pass", etc., as operators when they are just string constituents. * automated/python-test.el (python-indent-block-enders-1): Rename from python-indent-block-enders. (python-indent-block-enders-2): New test. Fixes: debbugs:15812
* Import `octave-mode' manual from GNU Octave.Rüdiger Sonderfeld2013-12-111-2/+16
| | | | | | | | | | | The manual was written by Kurt Hornik. He agreed to assign the copyright for it to the FSF. I have updated and modified the manual. * doc/misc/octave-mode.texi: Imported from GNU Octave (doc/interpreter/emacs.txi). * doc/misc/Makefile.in: Add octave-mode.texi. * lisp/progmodes/octave.el (octave-mode, inferior-octave-mode): Link to info manual and show keybindings and set `:group' keyword.
* * lisp/progmodes/ruby-mode.el (ruby-smie--implicit-semi-p): Return tDmitry Gutov2013-12-091-2/+2
| | | | after the end of a percent literal.
* * lisp/progmodes/ruby-mode.el (ruby-forward-string): Document.Cameron Desautels2013-12-091-4/+21
| | | | | | Handle caret-delimited strings. Fixes: debbugs:16079
* * lisp/progmodes/ruby-mode.el (ruby-accurate-end-of-block): WhenDmitry Gutov2013-12-091-3/+8
| | | | | | | `ruby-use-smie' is t, use `smie-forward-sexp' instead of `ruby-parse-partial'. Fixes: debbugs:16078
* Port indentation code from js2-mode to js-modeDmitry Gutov2013-12-081-25/+83
| | | | | | | | | | | | | * lisp/progmodes/js.el (js-auto-indent-flag): Remove, was unused. (js-switch-indent-offset): New option. (js--proper-indentation): Use it. And handle the case when "default" is actually a key in an object literal. (js--same-line): New function. (js--multi-line-declaration-indentation): Use it. (js--indent-in-array-comp, js--array-comp-indentation): New functions. (js--proper-indentation): Use them, to handle array comprehension continuations.
* Re-write flymake-highlight-line in flymake.elLeo Liu2013-12-081-61/+14
| | | | | | * progmodes/flymake.el (flymake-highlight-line): Re-write. (flymake-make-overlay): Remove arg MOUSE-FACE. (flymake-save-string-to-file, flymake-read-file-to-string): Remove.
* Re-implement popup menu for flymakeLeo Liu2013-12-081-88/+30
| | | | | | | | | * progmodes/flymake.el (flymake-popup-current-error-menu): Rename from flymake-display-err-menu-for-current-line. Reimplement. (flymake-posn-at-point-as-event, flymake-popup-menu) (flymake-make-emacs-menu): Remove. Fixes: debbugs:16077
* Clean up flymake.elLeo Liu2013-12-081-347/+188
| | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/flymake.el (flymake, flymake-error-bitmap) (flymake-warning-bitmap, flymake-fringe-indicator-position) (flymake-compilation-prevents-syntax-check) (flymake-start-syntax-check-on-newline) (flymake-no-changes-timeout, flymake-gui-warnings-enabled) (flymake-start-syntax-check-on-find-file, flymake-log-level) (flymake-xml-program, flymake-master-file-dirs) (flymake-master-file-count-limit) (flymake-allowed-file-name-masks): Relocate. (flymake-makehash, flymake-float-time) (flymake-replace-regexp-in-string, flymake-split-string) (flymake-get-temp-dir): Remove. (flymake-popup-menu, flymake-nop, flymake-make-xemacs-menu) (flymake-current-row, flymake-selected-frame) (flymake-get-point-pixel-pos): Remove xemacs compatibity and related functions. Fixes: debbugs:16077
* Bug#16045Michael Albinus2013-12-062-10/+4
| | | | | | | | * progmodes/compile.el (compilation-start): * progmodes/grep.el (rgrep): Revert change of 2012-12-20T11:15:38Z!michael.albinus@gmx.de. * net/tramp-sh.el (tramp-sh-handle-start-file-process): Handle long command lines, lasting from "sh -c ...". (Bug#16045)
* Revert inadvertently commited changes in grep.el.Eli Zaretskii2013-12-061-9/+3
|
* * lisp/progmodes/ruby-mode.el (ruby-syntax-propertize-function): TouchDmitry Gutov2013-12-061-2/+2
| | | | up the last change.
* * progmodes/octave.el (inferior-octave-prompt): Use shy groups.Leo Liu2013-12-061-21/+24
| | | | | | | (inferior-octave-startup): Always use "octave> " for prompt. (octave-goto-function-definition) (octave-sync-function-file-names) (octave-find-definition-default-filename): Remove redundant backquotes.
* Fix Bug#15874Dmitry Gutov2013-12-061-2/+9
| | | | | | | | | * lisp/progmodes/ruby-mode.el (ruby-mode-syntax-table): Don't modify syntax for `?'. (ruby-expr-beg): Expect that `!' will have syntax class "symbol" where appropriate already. (ruby-syntax-propertize-function): Propertize `?' and `!' at the end of method names.
* Add caching variant of `completion-table-dynamic'Dmitry Gutov2013-12-061-18/+10
| | | | | | | | | | * lisp/minibuffer.el (completion-table-with-cache): New function. * lisp/progmodes/octave.el (inferior-octave-completion-table): Turn back into function, use `completion-table-with-cache'. Update all references. Fixes: debbugs:11906
* Avoid compiler warning in w32xfns.c.Eli Zaretskii2013-12-041-3/+9
| | | | src/w32xfns.c: Include window.h, to avoid a compiler warning.
* * lisp/window.el (display-buffer-no-window): New action function.Juri Linkov2013-12-031-3/+3
| | | | | | | | | | | | | | (display-buffer-alist, display-buffer): Doc fix. (Bug#13594) * lisp/simple.el (shell-command): Add window alist entry `allow-no-window' to `display-buffer'. (async-shell-command): Doc fix. * lisp/progmodes/compile.el (compilation-start): Rename window alist entry `no-display-ok' to `allow-no-window'. * doc/lispref/windows.texi (Choosing Window): Rename `no-display-ok' to `allow-no-window'.
* * subr.el (process-live-p): Return nil for non-process. Leo Liu2013-12-023-6/+6
| | | | | | | | | | * progmodes/sh-script.el (sh-shell-process): * progmodes/octave.el (inferior-octave-process-live-p): * progmodes/gdb-mi.el (gdb-delchar-or-quit) (gdb-inferior-io-sentinel): * emacs-lock.el (emacs-lock-live-process-p): All uses changed. Fixes: debbugs:16023