aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes (follow)
Commit message (Collapse)AuthorAgeFilesLines
* lisp/progmodes/python.el: Updated Copyright years.old-branches/pythonFabián Ezequiel Gallina2012-06-141-1/+1
|
* Merge from trunkFabián Ezequiel Gallina2012-06-1419-607/+1067
|\
| * Various minor variable/hook cleanups.Chong Yidong2012-06-122-10/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/edebug.el (edebug-inhibit-emacs-lisp-mode-bindings): Rename from gud-inhibit-global-bindings. * lisp/emacs-lisp/eieio.el (eieio-pre-method-execution-hooks): Doc fix. * lisp/erc/erc-dcc.el (erc-dcc-chat-filter-functions): Rename from erc-dcc-chat-filter-hook, since this is an abnormal hook. * lisp/nxml/nxml-glyph.el (nxml-glyph-set-functions): Rename abnormal hook from nxml-glyph-set-hook. * lisp/progmodes/cwarn.el (cwarn-mode): Remove redundant variable declaration. * lisp/progmodes/pascal.el (pascal-toggle-completions): Doc fix. * lisp/textmodes/bibtex.el (bibtex-string-file-path, bibtex-file-path): Convert to defcustom. * lisp/url/url-handlers.el (url-handler-regexp): * lisp/url/url-nfs.el (url-nfs-automounter-directory-spec): * lisp/url/url-vars.el (url-load-hook): Convert to defcustom.
| * Change face used for fortran.el directivesGlenn Morris2012-06-111-2/+2
| | | | | | | | | | | | * lisp/progmodes/fortran.el (fortran-font-lock-keywords-3): Use preprocessor face for directives. (fortran-directive-re): Doc fix.
| * Face cleanups. Remove some uses of old-style face spec and :bold/:italic. Chong Yidong2012-06-093-51/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * faces.el (set-face-attribute): Doc fix. (modify-face): Don't use :bold and :italic. (error, warning, success): Tweak definitions. * cus-edit.el (custom-modified, custom-invalid, custom-rogue) (custom-modified, custom-set, custom-changed, custom-themed) (custom-saved, custom-button, custom-button-mouse) (custom-button-pressed, custom-state, custom-comment-tag) (custom-variable-tag, custom-group-tag-1, custom-group-tag) (custom-group-subtitle): Use new-style face specs. (custom-invalid-face, custom-rogue-face, custom-modified-face) (custom-set-face, custom-changed-face, custom-saved-face) (custom-button-face, custom-button-pressed-face) (custom-documentation-face, custom-state-face) (custom-comment-face, custom-comment-tag-face) (custom-variable-tag-face, custom-variable-button-face) (custom-face-tag-face, custom-group-tag-face-1) (custom-group-tag-face): Remove obsolete face alias. * epa.el (epa-validity-high, epa-validity-medium) (epa-validity-low, epa-mark, epa-field-name, epa-string) (epa-field-name, epa-field-body): * font-lock.el (font-lock-comment-face, font-lock-string-face) (font-lock-keyword-face, font-lock-builtin-face) (font-lock-function-name-face, font-lock-variable-name-face) (font-lock-type-face, font-lock-constant-face): * ido.el (ido-first-match, ido-only-match, ido-subdir) (ido-virtual, ido-indicator, ido-incomplete-regexp): * speedbar.el (speedbar-button-face, speedbar-file-face) (speedbar-directory-face, speedbar-tag-face) (speedbar-selected-face, speedbar-highlight-face) (speedbar-separator-face): * whitespace.el (whitespace-newline, whitespace-space) (whitespace-hspace, whitespace-tab, whitespace-trailing) (whitespace-line, whitespace-space-before-tab) (whitespace-space-after-tab, whitespace-indentation) (whitespace-empty): * emulation/cua-base.el (cua-global-mark): * eshell/em-prompt.el (eshell-prompt): * net/newst-plainview.el (newsticker-new-item-face) (newsticker-old-item-face, newsticker-immortal-item-face) (newsticker-obsolete-item-face, newsticker-date-face) (newsticker-statistics-face, newsticker-default-face): * net/newst-reader.el (newsticker-feed-face) (newsticker-extra-face, newsticker-enclosure-face): * net/newst-treeview.el (newsticker-treeview-face) (newsticker-treeview-new-face, newsticker-treeview-old-face) (newsticker-treeview-immortal-face) (newsticker-treeview-obsolete-face) (newsticker-treeview-selection-face): * net/rcirc.el (rcirc-my-nick, rcirc-other-nick) (rcirc-bright-nick, rcirc-server, rcirc-timestamp) (rcirc-nick-in-message, rcirc-nick-in-message-full-line) (rcirc-prompt, rcirc-track-keyword, rcirc-url, rcirc-keyword): * nxml/nxml-outln.el (nxml-heading, nxml-outline-indicator) (nxml-outline-active-indicator, nxml-outline-ellipsis): * play/mpuz.el (mpuz-unsolved, mpuz-solved, mpuz-trivial) (mpuz-text): * progmodes/vera-mode.el (vera-font-lock-number) (vera-font-lock-function, vera-font-lock-interface): * textmodes/table.el (table-cell): Use new-style face specs, and don't use the old :bold and :italic attributes. * erc-button.el (erc-button): * erc-goodies.el (erc-bold-face, erc-inverse-face) (erc-underline-face, fg:erc-color-*): * erc-match.el (erc-current-nick-face, erc-dangerous-host-face) (erc-pal-face, erc-fool-face, erc-keyword-face): * erc-stamp.el (erc-timestamp-face): Likewise. * erc.el (erc-direct-msg-face, erc-header-line, erc-input-face) (erc-command-indicator-face, erc-notice-face, erc-action-face) (erc-error-face, erc-my-nick-face, erc-nick-default-face) (erc-nick-msg-face): Use new-style face specs, and avoid :bold. * progmodes/ebrowse.el (ebrowse-tree-mark, ebrowse-root-class) (ebrowse-member-attribute, ebrowse-default, ebrowse-file-name) (ebrowse-member-class, ebrowse-progress): Likewise. (ebrowse-tree-mark-face, ebrowse-root-class-face) (ebrowse-file-name-face, ebrowse-default-face) (ebrowse-member-attribute-face, ebrowse-member-class-face) (ebrowse-progress-face): Remove obsolete faces. * progmodes/flymake.el (flymake-errline, flymake-warnline): Inherit from error and warning faces respectively. * textmodes/flyspell.el (flyspell-incorrect, flyspell-duplicate): Likewise. (flyspell-incorrect-face, flyspell-duplicate-face): Remove obsolete aliases. * display.texi (Face Attributes): Font family does not accept wildcards. De-document obsolete :bold and :italic attributes. (Defining Faces): Use new-style face spec format.
| * * progmodes/python.el (python-send-region): Ensure, that theMichael Albinus2012-06-061-3/+8
| | | | | | | | temporary file is created also in the remote case.
| * Fix legibility of compilation mode-line messages.Chong Yidong2012-06-031-5/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/compile.el (compilation-mode-line-fail) (compilation-mode-line-run, compilation-mode-line-exit): New faces. (compilation-start, compilation-handle-exit): Use them. * etc/themes/wheatgrass-theme.el: * etc/themes/deeper-blue-theme.el: * etc/themes/tango-dark-theme.el: * etc/themes/tsdh-dark-theme.el: Add compilation-mode-line-fail, compilation-mode-line-run, and compilation-mode-line-exit faces. * etc/themes/manoj-dark-theme.el: Remove :family attributes. Fixes: debbugs:11032
| * Improve ediff and which-func integration.Jack Duthen2012-06-031-0/+16
| | | | | | | | | | | | | | * lisp/progmodes/which-func.el (which-func-update-ediff-windows): New function. Use it in ediff-select-hook. Fixes: debbugs:11478
| * Remove incorrect uses of "modeline".Chong Yidong2012-06-029-20/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ansi-color.el (ansi-color-faces-vector): Change default faces. * cus-edit.el (mode-line): * dframe.el (dframe-mouse-hscroll): * emacs-lisp/re-builder.el: * emacs-lisp/easy-mmode.el (define-minor-mode): * frame.el (set-frame-name): * help.el (lookup-minor-mode-from-indicator): * net/rcirc.el (rcirc-activity-string, rcirc-short-buffer-name): * progmodes/cc-cmds.el (c-toggle-auto-newline) (c-toggle-hungry-state): * progmodes/antlr-mode.el (antlr-language-alist): * progmodes/idlw-shell.el (idlwave-shell-electric-stop-line-face): * progmodes/vhdl-mode.el (vhdl-mode): * progmodes/which-func.el (which-func, which-func-cleanup-function): * term/ns-win.el (ns-face-at-pos): * term/sup-mouse.el (sup-mouse-report): * textmodes/flyspell.el (flyspell-mode-line-string): * textmodes/ispell.el (ispell-highlight-face): * textmodes/reftex-global.el: * vc/vc-arch.el (vc-arch-mode-line-string): * vc/vc-cvs.el (vc-cvs-mode-line-string): * vc/vc-git.el (vc-git-mode-line-string): * vc/vc-hooks.el (vc-display-status) (vc-default-mode-line-string): * vc/vc-mtn.el (vc-mtn-mode-line-string): Doc fixes. * dired.el (dired-sort-set-mode-line): Rename from dired-sort-set-modeline. All callers changed. * foldout.el (foldout-mode-line-string): Rename from foldout-modeline-string. All callers changed. (foldout-update-mode-line): Rename from foldout-update-modeline. * strokes.el (strokes-lighter): Rename from strokes-modeline-string. * subr.el (redraw-modeline): Make into obsolete alias. * calendar/timeclock.el (timeclock-mode-line-display): Rename from timeclock-modeline-display. Make old name an alias. (timeclock-update-mode-line): Likewise. All callers changed. (timeclock-mode-line-display): No need to check before using add-hook. (timeclock-relative, timeclock-day-over-hook) (timeclock-use-elapsed, timeclock-mode-string) (timeclock-mode-line-display): Doc fix, "modeline" -> "mode line". * emulation/crisp.el (crisp-mode-mode-line-string): Rename from crisp-mode-modeline-string. * erc-track.el (erc-track, erc-track-faces-priority-list) (erc-track-faces-normal-list, erc-track-find-face) (erc-track-modified-channels): Fix modeline -> mode line in docs. * eshell/esh-mode.el (eshell-status-in-mode-line): Rename from eshell-status-in-modeline. * org-clock.el (org-clock-string-limit) (org-clock-modeline-total, org-clock-task-overrun-text) (org-clock-mode-line-entry): Doc fix, "modeline" -> "mode line". * play/solitaire.el (solitaire-build-mode-line): Rename from solitaire-build-modeline. All callers changed. * play/zone.el (zone-hiding-mode-line): Rename from zone-hiding-modeline. All callers changed. (zone): Remove unusued `modeline-hidden-level' property. * progmodes/xscheme.el (xscheme-mode-line-initialize): Rename from xscheme-modeline-initialize. All callers changed. * textmodes/sgml-mode.el (html-face-tag-alist) (html-tag-face-alist): Use mode-line face instead of obsolete alias modeline. Fixes: debbugs:10329
| * Spelling fixes.Paul Eggert2012-05-281-2/+2
| |
| * * lisp/progmodes/vhdl-mode.el: Sync with upstream 3.33.28.Reto Zimmermann2012-05-271-410/+878
| | | | | | | | http://www.iis.ee.ethz.ch/~zimmi/emacs/vhdl-mode.html#release-notes-3.33
| * * lisp/progmodes/cc-mode.el (auto-mode-alist): Fix typo.Glenn Morris2012-05-251-2/+2
| |
| * * lisp/progmodes/js.el: Add notes in comments.Stefan Monnier2012-05-251-1/+6
| |
| * * lisp/progmodes/gdb-mi.el: Minor style changes.Stefan Monnier2012-05-251-102/+70
| | | | | | | | | | | | | | | | | | (gdb-enable-debug, gdb-speedbar-auto-raise, gdb-many-windows): Turn into minor modes. (gdb--if-arrow): Rename from gdb-if-arrow, make it hygienic. (gdb-mouse-until, gdb-mouse-jump): Adjust uses accordingly. (gdb-shell): Remove unneeded let-binding. (gdb-get-many-fields): Eliminate O(n²) behavior.
| * lisp/progmodes/which-func.el (which-func-ff-hook): Check against user-error.Juanma Barranquero2012-05-221-1/+2
| |
| * * lisp/progmodes/compile.el (compilation-error-regexp-alist-alist):Stefan Monnier2012-05-211-1/+1
| | | | | | | | | | | | Simplify Maven regexp, and make sure the file can't start with a space. Fixes: debbugs:11517
| * * lisp/emacs-lisp/lisp-mode.el (doc-string-elt): Move those properties toStefan Monnier2012-05-171-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | their respective macro declarations. * lisp/skeleton.el (define-skeleton): * lisp/progmodes/compile.el (define-compilation-mode): * lisp/ibuf-macs.el (define-ibuffer-sorter, define-ibuffer-op) (define-ibuffer-filter): * lisp/emacs-lisp/generic.el (define-generic-mode): * lisp/emacs-lisp/easy-mmode.el (define-minor-mode) (define-globalized-minor-mode): * lisp/emacs-lisp/cl-macs.el (defun*, defmacro*, defstruct, deftype): * lisp/emacs-lisp/byte-run.el (defsubst): * lisp/custom.el (deftheme): Add doc-string metadata.
* | * lisp/progmodes/python.el: (python-indent, python-guess-indent,Fabián Ezequiel Gallina2012-06-141-0/+10
| | | | | | | | | | python-use-skeletons): New obsolete variable aliases. (python-indent-guess-indent-offset): Make interactive.
* | Migrated python-font-lock-syntactic-keywords to ↵Fabián Ezequiel Gallina2012-05-171-12/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | python-syntax-propertize-function This is a backport of Stefan Monnier's migration to the new font-lock machinery (introduced in 2010-09-10T23:13:42Z!monnier@iro.umontreal.ca). New Vars: + python-syntax-propertize-function Deleted Vars: + python-font-lock-syntactic-keywords
* | Copyright information updateFabián Ezequiel Gallina2012-05-171-16/+12
| |
* | Revert "Merge pull request #83 from tkf/empty-triple-quote"Fabián Ezequiel Gallina2012-05-171-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit f4d086427343eb0b8bc91355388d2437c568b1f6, reversing changes made to 8f697fd2ef23a9e1d9a06ac8ca419d76ccedb27d. While the fix worked with empty triple quoted strings it broke simpler cases like these: """ def someting(a, b, c): " """ or ''' def someting(a, b, c): ' ''' Another approach is needed for giving triple quoted string the correct syntax.
* | Make `which-func-functions' defaults to '(python-info-current-defun)Fabián Ezequiel Gallina2012-05-171-0/+2
| |
* | Function documentation enhancementsFabián Ezequiel Gallina2012-05-171-7/+9
| |
* | New defun navigation machineryFabián Ezequiel Gallina2012-05-171-78/+92
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `python-nav-beginning-of-defun' and `python-beginning-of-defun-function' have changed and now they don't handle decorators anymore. `python-end-of-defun-function' is now smart enough to detect the real ending of the current defun. `python-shell-send-defun' always sends the outermost defun and includes decorators. When called with prefix argument the decorators are skipped. `python-info-current-defun' has been modified to use the new defun movement API. New Functions: + python-info-looking-at-beginning-of-defun
* | Enhancements on `python-beginning-of-defun-function' for `mark-defun' behavior.Fabián Ezequiel Gallina2012-05-171-10/+13
| | | | | | | | `mark-defun' was failing when point was right at the start of a defun.
* | `python-nav-list-defun-positions' now caches defuns positions (#75)Fabián Ezequiel Gallina2012-05-171-22/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a simplified version of @dandavison pull request (thanks dan!) `python-nav-list-defun-positions' now uses `python-nav-list-defun-positions-cache' buffer local variable to store cached values of defun positions. `python-nav-jump-to-defun' now benefits from this new cache and if called with prefix argument it will invalidate it so new defuns are scanned. New Vars: + `python-nav-list-defun-positions-cache'
* | Enhancements to `python-end-of-defun-function' so it's not blocked by top ↵Fabián Ezequiel Gallina2012-05-171-6/+3
| | | | | | | | level assignments (fixes #64)
* | Variable name changeDan Davison2012-05-171-3/+3
| | | | | | | | python-shell-enable-syntax-highlighting -> python-shell-enable-font-lock
* | Enhancements to `python-indent-post-self-insert-function'Fabián Ezequiel Gallina2012-05-171-11/+8
| | | | | | | | Fixed case where the paren base indentation is not 0.
* | Enhanced closing block notification when line is indented or a colon is ↵Fabián Ezequiel Gallina2012-05-171-10/+17
| | | | | | | | | | | | | | | | | | | | | | inserted. `python-indent-line' and `python-indent-electric-colon' now uses the new `python-info-closing-block-message' function that takes care of messaging the block the current line is closing (if applicable). New Functions: + `python-info-closing-block-message'
* | Readjust indentation automatically on lines with closing parens.Fabián Ezequiel Gallina2012-05-171-0/+24
| | | | | | | | | | | | | | | | For this to work `python-indent-post-self-insert-function' is added to the `post-self-insert-hook.' when python-mode is initialized. New functions: + `python-indent-post-self-insert-function'
* | Removed tabs and fixed indentation in several parts.Fabián Ezequiel Gallina2012-05-171-18/+18
| |
* | Do not call `switch-to-buffer' in `python-shell-get-or-create-process'Fabián Ezequiel Gallina2012-05-171-4/+2
| | | | | | | | | | For this to work properly `run-python' now calls `python-shell-make-comint' with the POP argument set to nil.
* | Treat empty triple quoteTakafumi Arakaki2012-05-171-0/+1
| | | | | | | | Fix #70
* | Small fix in `python-shell-send-defun' (#69 thanks mafm-git!)Fabián Ezequiel Gallina2012-05-171-2/+4
| |
* | Customizable variable to control syntax highlighting in shell.Dan Davison2012-05-171-0/+14
| | | | | | | | Default is on.
* | Don't send "if __name__ == '__main__':" to interpreterDan Davison2012-05-171-4/+17
| |
* | Disregard leading whitespace when forming module completionsDan Davison2012-05-171-2/+4
| | | | | | | | | | This allows an indented import line (e.g. in a function or method body) to be completed.
* | Deactivate mark on python-shell-send-regionDan Davison2012-05-171-2/+1
| |
* | Use `completion-at-point` instead of `comint-dynamic-complete` in shell ↵Dan Davison2012-05-171-1/+1
| | | | | | | | completion
* | Pass entire line of input to module completerDan Davison2012-05-171-4/+12
| | | | | | | | | | | | | | The module completer wants e.g. 'from xxx' as input, not just 'xxx'. This change also causes all modules to be offered as completions to 'from ', whereas previously this was regarded as empty input.
* | Enhancements on ipython 0.10 setup documentation (thanks to @tkf for the hint)Fabián Ezequiel Gallina2012-05-171-2/+4
| |
* | Added missing dot in `python-completion-complete-at-point' errorFabián Ezequiel Gallina2012-05-171-1/+1
| |
* | Enhanced completion subject finding logic for ↵Fabián Ezequiel Gallina2012-05-171-2/+19
| | | | | | | | `python-shell-completion--do-completion-at-point'
* | Make `python-shell-completion--do-completion-at-point' to return a list for ↵Fabián Ezequiel Gallina2012-05-171-32/+11
| | | | | | | | | | | | | | `completion-at-point' do it's job instead of replicating completion logic. Removed vars: + python-shell-completion-original-window-configuration
* | Make `python-shell-completion--do-completion-at-point' work for calls done ↵Fabián Ezequiel Gallina2012-05-171-3/+5
| | | | | | | | | | | | | | | | via `python-completion-complete-at-point'. The comint prompt retrieval logic was failing on `python-shell-completion--do-completion-at-point' when calls to it happened from outside the process buffer.
* | python-end-of-defun-function now works correctly when comments are not ↵Fabián Ezequiel Gallina2012-05-171-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | indented properly. Calling `end-of-defun' on a python file will now do the correct thing, even for cases like this: def fib(n): if n < 2: # base cases return n else: return fib(n - 2) + fib(n - 1)
* | Enhancements on indentation for lines after a backslash continuation.Fabián Ezequiel Gallina2012-05-171-4/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Backslashed continuations with parens in the middle are now handled correctly. Things like this are now indented properly: objects = Thing.objects.all() \ .filter( type="toy", status="bought" subtype="car" ) \ .aggregate( Sum('amount') ) \ .values_list() New Functions: * `python-info-beginning-of-backlash' returns the point where a backslashed line start.
* | Added self to the list of font-lock-keywordsFabián Ezequiel Gallina2012-05-171-1/+3
| |
* | Updated `python-font-lock-keywords' to match latest Python 2.7 and 3.2 ↵Fabián Ezequiel Gallina2012-05-171-34/+54
| | | | | | | | documentation.