summaryrefslogtreecommitdiff
path: root/lisp/progmodes
Commit message (Collapse)AuthorAgeFilesLines
* Fix bug in the state cache mechanism. Remove 'BOD "strategy". Refactor.Alan Mackenzie2013-02-021-180/+137
| | | | | | | | | | | | | | | | cc-engine.el (c-get-fallback-scan-pos): Remove. (c-parse-state-get-strategy): Don't return 'BOD any more. (c-append-lower-brace-pair-to-state-cache): Extra parameter HERE instead of narrowing. Widen to top of buffer before searching backwards for a brace pair. (c-state-push-any-brace-pair): Add HERE parameter to function call. (c-append-to-state-cache): Extra parameter HERE in place of narrowing. Narrow to parameter HERE, in place of being called narrowed. (c-remove-stale-state-cache): Extra parameter HERE in place of narrowing. Check there's an open brace in the cache before searching for its match. (c-invalidate-state-cache-1): Add HERE parameter to function call. (c-parse-state-1): Don't narrow here for 'forward strategy, instead passing extra parameter HERE to several functions. Remove 'BOD strategy.
* * lisp/progmodes/make-mode.el (makefile-fill-paragraph): Reset syntax-tableStefan Monnier2013-01-301-0/+6
| | | | | | properties. Fixes: debbugs:13179
* * progmodes/python.elFabián Ezequiel Gallina2013-01-301-9/+11
| | | | | (python-pdbtrack-comint-output-filter-function): Enhancements on stacktrace detection. (thanks @gnovak)
* * progmodes/python.el (python-shell-parse-command): FindFabián Ezequiel Gallina2013-01-281-1/+5
| | | | python-shell-interpreter with modified environment.
* * lisp/progmodes/python.el: Enhancements to header documentation aboutFabián Ezequiel Gallina2013-01-231-1/+4
| | | | | | skeletons. Fixes: debbugs:5716
* Fix a bug in the state cache mechanism. Refactor this a bit.Alan Mackenzie2013-01-231-48/+56
| | | | | | | | | | | | | | | cc-engine.el (c-parse-state-get-strategy): Remove the `cache-pos' element from the return value. (c-append-lower-brace-pair-to-state-cache): "Narrow" to end of buffer to enable proper searching from beyond HERE. Amend the test for detecting the sought brace pair. Amend the value written to the "brace desert cache" when the brace isn't found. (c-remove-stale-state-cache): Rename `good-pos' to `start-point', and several other variables analogously. (c-remove-stale-state-cache-backwards): Change `cache-pos' from a parameter to a locally calculated variable. (c-parse-state-1): Change the calling conventions to the two defuns involving `cache-pos'.
* etags.el fix for bug#13412Glenn Morris2013-01-161-6/+10
| | | | | * lisp/progmodes/etags.el (tags-table-check-computed-list): Preserve point in tags buffer.
* * progmodes/python.el (python-nav-end-of-statement): FixFabián Ezequiel Gallina2013-01-101-2/+11
| | | | cornercase when handling multiline strings.
* Fix bugs in the c-parse-state mechanism. Reuse some markers instead ofAlan Mackenzie2013-01-091-10/+32
| | | | | | | | | | | | | continually generating new ones. cc-engine.el (c-state-old-cpp-beg-marker, c-state-old-cpp-end-marker): New variables. (c-append-lower-brace-pair-to-state-cache): Start a backward search for "}" definitively outside CPP constructs. (c-remove-stale-state-cache): Inform the caller of a need to search back for a brace pair in certain circumstances. (c-state-maybe-marker): New macro. (c-parse-state): Reuse markers when appropriate.
* * lisp/progmodes/compile.el (compilation-parse-errors): Fix typo.Glenn Morris2013-01-061-1/+1
| | | | Fixes: debbugs:13369
* etags.el fix for compressed filesGlenn Morris2013-01-021-7/+4
| | | | | | | | * lisp/progmodes/etags.el (tags-compression-info-list): Doc fix. (tag-find-file-of-tag-noselect): Check auto-compression-mode rather than 'jka-compr being loaded. Fixes: debbugs:13338
* Update copyright notices for 2013.Paul Eggert2013-01-0184-91/+100
|
* * progmodes/python.el (python-nav-end-of-statement): Rewrite inFabián Ezequiel Gallina2012-12-311-9/+20
| | | | | | | order to improve efficiency (Based on Daniel Colascione's <dancol@dancol.org> patch). Fixes: debbugs:13182
* * progmodes/python.el: Bump defgroup :version to 24.3.Fabián Ezequiel Gallina2012-12-311-1/+1
|
* Backported revisions 2012-12-29T12:33:33Z!fgallina@gnu.org and ↵Fabián Ezequiel Gallina2012-12-311-14/+28
| | | | 2012-12-29T12:57:49Z!fgallina@gnu.org from trunk.
* * lisp/progmodes/ruby-mode.el (ruby-indent-beg-re): Only allow "class",Dmitry Gutov2012-12-261-2/+3
| | | | | | | | "module" and "def" to have indentation before them. Regression from 2012-09-07T04:15:56Z!dgutov@yandex.ru (see the new test). * test/automated/ruby-mode-tests.el (ruby-indent-after-block-in-continued-expression): New test.
* * lisp/progmodes/ruby-mode.el: Bump the version to 1.2.Dmitry Gutov2012-12-241-1/+1
| | | | Fixes: debbugs:13200
* Speed up fontification where there's large brace blocks.Alan Mackenzie2012-12-231-1/+2
| | | | | progmodes/cc-fonts.el (c-font-lock-enclosing-decls): Add a limit to a call of c-beginning-of-decl-1.
* Fix typos.Bastien Guerry2012-12-201-1/+1
|
* Make CC Mode not hang when _some_ lines end in CRLF. Bug #11841.Alan Mackenzie2012-12-111-2/+15
| | | | | cc-engine.el (c-backward-comments): Add code to work around `forward-comment' not recognizing ^M as whitespace.
* * progmodes/python.el (python-skeleton-class)Fabián Ezequiel Gallina2012-12-111-8/+8
| | | | (python-skeleton-def): Do not add space after defun name.
* * lisp/progmodes/octave-mod.el (octave-mark-block): Move out of tokens andStefan Monnier2012-12-051-1/+4
| | | | | | fix open-paren-like token test. Fixes: debbugs:12785
* * progmodes/python.el:Fabián Ezequiel Gallina2012-11-261-1/+1
| | | | | (python-indent-guess-indent-offset): If indentation is guessed make python-indent-offset variable buffer local.
* Fix Imenu regression.Fabián Ezequiel Gallina2012-11-261-9/+27
| | | | | | | * progmodes/python.el: (python-nav-beginning-of-defun): Fix forward movement when statement(s) separates point from defun. (python-imenu-prev-index-position): New function.
* Bump CC Mode's version number to 5.32.4.Alan Mackenzie2012-11-211-1/+1
|
* Fix bugs in the CC Mode state cache. Enhance a debugging mechanism.Alan Mackenzie2012-11-212-12/+48
|
* Fix end-of-defun misbehavior.Fabián Ezequiel Gallina2012-11-121-68/+69
| | | | | | | | | | | * progmodes/python.el (python-nav-beginning-of-defun): Rename from python-beginning-of-defun-function. Handle nested defuns correctly. (python-nav-end-of-defun): Rename from python-end-of-defun-function. Ensure forward movement. (python-info-current-defun): Reimplemented to work as intended with new fixed python-nav-{end,beginning}-of-defun. Stop scanning parent defuns as soon as possible.
* Document flymake fringe bitmapsGlenn Morris2012-11-121-8/+22
| | | | | | | | | | | | * doc/misc/flymake.texi (Customizable variables) (Highlighting erroneous lines): Mention flymake-error-bitmap, flymake-warning-bitmap, and flymake-fringe-indicator-position. * lisp/progmodes/flymake.el (flymake-error-bitmap) (flymake-warning-bitmap, flymake-fringe-indicator-position): Doc fixes. (flymake-error-bitmap, flymake-warning-bitmap): Fix :types. * etc/NEWS: Related markup.
* * lisp/progmodes/ruby-mode.el (ruby-move-to-block): When movingDmitry Gutov2012-11-121-11/+1
| | | | | | | backward, always stop at indentation. Reverts the change from 2012-08-12T22:06:56Z!monnier@iro.umontreal.ca. Fixes: debbugs:12851
* * progmodes/python.el (inferior-python-mode): Fix hang inFabián Ezequiel Gallina2012-11-031-11/+18
| | | | | | jit-lock. Fixes: debbugs:12645
* * lisp/progmodes/sh-script.el (sh--inside-noncommand-expression):Stefan Monnier2012-10-301-5/+7
| | | | | | Rename from sh--inside-arithmetic-expression, handle more cases. Fixes: debbugs:11263
* * lisp/progmodes/sh-script.el (sh--inside-arithmetic-expression): New func.Stefan Monnier2012-10-301-1/+11
| | | | | | (sh-font-lock-open-heredoc): Use it. Fixes: debbugs:12770
* * lisp/progmodes/sh-script.el (sh-font-lock-paren): Also put punctuationStefan Monnier2012-10-281-45/+54
| | | | | | | | | syntax to the matching opener, if any. (sh-smie-sh-forward-token, sh-smie-sh-backward-token): Recognize this matching open as a "case-(". (sh-smie-rc-grammar): Add a corresponding rule for it. Fixes: debbugs:12547
* * lisp/progmodes/compile.el (compilation-start): Try to handle commonStefan Monnier2012-10-231-6/+14
| | | | | | quoting of `cd' argument. Fixes: debbugs:12640
* * gud.el (gud-menu-map): Check gdb-active-process is bound. (Bug#12358)Glenn Morris2012-10-231-2/+3
|
* Cleanup uses of "-hooks".Stefan Monnier2012-10-231-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/emacs/custom.texi (Hooks): * doc/lispref/hooks.texi (Standard Hooks): Clarify that -hooks is deprecated. * lisp/gnus/nndiary.el (nndiary-request-create-group-functions) (nndiary-request-update-info-functions) (nndiary-request-accept-article-functions): * lisp/gnus/gnus-start.el (gnus-subscribe-newsgroup-functions): * lisp/cedet/semantic/db-file.el (semanticdb-save-database-functions): * lisp/cedet/semantic/lex.el (semantic-lex-reset-functions): * lisp/cedet/semantic/edit.el (semantic-change-functions) (semantic-edits-new-change-functions) (semantic-edits-delete-change-functions) (semantic-edits-reparse-change-functions): * lisp/htmlfontify.el (hfy-post-html-hook): * lisp/filesets.el (filesets-cache-fill-content-hook): * lisp/arc-mode.el (archive-extract-hook): * lisp/progmodes/cc-mode.el (c-prepare-bug-report-hook): * lisp/net/rcirc.el (rcirc-sentinel-functions) (rcirc-receive-message-functions, rcirc-activity-functions) (rcirc-print-functions): * lisp/net/dbus.el (dbus-event-error-functions): * lisp/emacs-lisp/eieio.el (eieio-pre-method-execution-functions): * lisp/emacs-lisp/checkdoc.el (checkdoc-style-functions) (checkdoc-comment-style-functions): Don't use "-hooks" suffix. * lisp/term/sun.el (sun-raw-prefix-hooks): * lisp/mail/sendmail.el (mail-yank-hooks): * lisp/mh-e/mh-letter.el (mh-yank-hooks): Use make-obsolete-variable.
* * lisp/progmodes/which-func.el (which-func-current): The hash-table may haveTakafumi Arakaki2012-10-221-1/+2
| | | | | | an explicit nil. Fixes: debbugs:12338
* * progmodes/flymake.el (flymake-create-temp-inplace): Use file-truename.Arne Jørgensen2012-10-201-4/+5
| | | | | Patch from: http://lists.gnu.org/archive/html/emacs-devel/2012-07/msg00444.html
* Fix how gdb-mi calls display-buffer to avoid switching frames.Chong Yidong2012-10-192-42/+42
| | | | | | | | | | | * lisp/progmodes/gdb-mi.el (gdb-display-buffer-other-frame-action): Convert to defcustom. (gdb-get-source-file): Don't bind pop-up-windows. * lisp/progmodes/gud.el (gud-display-line): Don't specially re-use other frames for the gdb-mi case. Fixes: debbugs:12648
* Adapt compile.el to changes in MSVC diagnostics format.Eli Zaretskii2012-10-141-0/+9
| | | | | | | | | | | | | | lisp/progmodes/compile.el (compilation-error-regexp-alist-alist): Adjust the msft regexp to the output of Studio 2010, and move msft before edg-1. See the discussion on emacs-devel, http://lists.gnu.org/archive/html/emacs-devel/2012-09/msg00579.html, for the details. etc/compilation.txt (msft): Add error messages in new Studio 2010 format. test/automated/compile-tests.el (compile-tests--test-regexps-data): Add data for msft's new format.
* * progmodes/python.el (python-mode-map): ReplaceFabián Ezequiel Gallina2012-10-111-10/+4
| | | | | subtitute-key-definition with proper command remapping. (python-nav--up-list): Fix behavior for blocks on the same level.
* * lisp/progmodes/cc-bytecomp.el (cc-bytecomp-defmacro): Remove, unused.Stefan Monnier2012-10-092-34/+0
| | | | * lisp/progmodes/cc-vars.el (bq-process): Remove, unused.
* Implemented `backward-up-list'-like navigation.Fabián Ezequiel Gallina2012-10-081-0/+64
| | | | | | | * progmodes/python.el (python-nav-up-list) (python-nav-backward-up-list): New functions. (python-mode-map): Define substitute key for backward-up-list to python-nav-backward-up-list.
* * progmodes/python.el (python-fill-paragraph): Rename fromFabián Ezequiel Gallina2012-10-081-12/+11
| | | | | | | python-fill-paragraph-function. Fixed fill-paragraph for decorators. Fixes: debbugs:12605
* * progmodes/python.el (python-shell-output-filter): Handle extraFabián Ezequiel Gallina2012-10-081-1/+3
| | | | | | carriage return in OSX. Fixes: debbugs:12409
* Fix shell handling of unbalanced quotes and parens in output.Fabián Ezequiel Gallina2012-10-081-24/+48
| | | | | | | | | * progmodes/python.el (python-rx-constituents): Added string-delimiter. (python-syntax-propertize-function): Use it. (python-shell-output-syntax-table): New var. (inferior-python-mode): Prevent unbalanced parens/quotes from previous output mess with current input context.
* Enhancements on forward-sexp movement.Fabián Ezequiel Gallina2012-10-081-145/+131
| | | | | | | | | | | | | | | * progmodes/python.el (python-nav-beginning-of-statement) (python-nav-end-of-statement): Return point-marker. (python-nav-forward-sexp): lisp-like forward-sexp behavior. (python-info-current-symbol) (python-info-statement-starts-block-p): Rename from python-info-beginning-of-block-p. (python-info-statement-ends-block-p): Rename from python-info-end-of-block-p. (python-info-beginning-of-statement-p) (python-info-end-of-statement-p) (python-info-beginning-of-block-p, python-info-end-of-block-p): New functions.
* * progmodes/python.el (inferior-python-mode)Fabián Ezequiel Gallina2012-10-071-7/+10
| | | | | (python-shell-make-comint): Fixed initialization of local variables copied from parent buffer.
* Enhancements to indentation.Fabián Ezequiel Gallina2012-10-071-5/+14
| | | | | | | * lisp/progmodes/python.el (python-indent-context): Give priority to inside-string context. Make comments indentation markers. (python-indent-region): Do not mess with strings, unless it's the enclosing set of quotes.
* Fix shell output retrieval and comint-prompt-regexp init.Fabián Ezequiel Gallina2012-10-071-31/+46
| | | | | | | | | | | | | | * progmodes/python.el (inferior-python-mode): (python-shell-make-comint): Fix initialization of comint-prompt-regexp from copied file local variables. (python-shell-fetched-lines): Remove var. (python-shell-output-filter-in-progress): Rename from python-shell-fetch-lines-in-progress. (python-shell-output-filter-buffer): Rename from python-shell-fetch-lines-string. (python-shell-fetch-lines-filter): Delete function. (python-shell-output-filter): New function. (python-shell-send-string-no-output): Use them.