summaryrefslogtreecommitdiff
path: root/lisp/progmodes
Commit message (Collapse)AuthorAgeFilesLines
* * lisp/progmodes/gdb-mi.el (gdb): Fix typo in previous change.Glenn Morris2011-03-221-1/+1
|
* lisp/progmodes/delphi.el: Fix typos.Juanma Barranquero2011-03-161-37/+38
|
* Fix misuse of quote in `case'.Stefan Monnier2011-03-152-7/+7
| | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/ruby-mode.el (ruby-backward-sexp): * lisp/progmodes/ebrowse.el (ebrowse-draw-file-member-info): * lisp/play/gamegrid.el (gamegrid-make-face): * lisp/play/bubbles.el (bubbles--grid-width, bubbles--grid-height) (bubbles--colors, bubbles--shift-mode, bubbles--initialize-images): * lisp/notifications.el (notifications-notify): * lisp/net/xesam.el (xesam-search-engines): * lisp/net/quickurl.el (quickurl-list-insert): * lisp/vc/vc-hg.el (vc-hg-dir-printer): Fix use of case. * lisp/gnus/auth-source.el (auth-source-netrc-create): * lisp/gnus/message.el (message-yank-original): Fix use of `case'. * lisp/org/org-src.el (org-src-switch-to-buffer): * lisp/org/org-plot.el (org-plot/gnuplot-script, org-plot/gnuplot): * lisp/org/org-mouse.el (org-mouse-agenda-type): * lisp/org/org-freemind.el (org-freemind-node-to-org): * lisp/org/ob-sql.el (org-babel-execute:sql): * lisp/org/ob-exp.el (org-babel-exp-do-export, org-babel-exp-code): * lisp/org/ob-ref.el (org-babel-ref-resolve): Fix use of case.
* * lisp/progmodes/compile.el (compilation--previous-directory): Fix upStefan Monnier2011-03-111-23/+26
| | | | | | | | various nil/dead-marker mismatches. (compilation-directory-properties, compilation-error-properties): Don't call it at a position past the one we're about to change. Fixes: debbugs:8014
* Fix previous gdb-mi fix...Glenn Morris2011-03-091-1/+1
|
* Fix previous gdb-mi change.Glenn Morris2011-03-091-2/+4
|
* gdb-mi addition for bug#7889.Glenn Morris2011-03-091-15/+28
| | | | | * lisp/progmodes/gdb-mi.el (gdb): Improve 2010-12-08 change. Check for GDBHISTFILE, HISTSIZE, etc.
* Fix a cc-cmds.el patch from acm that I applied incorrectly (Bug#7595).Chong Yidong2011-03-071-13/+6
| | | | | * lisp/progmodes/cc-cmds.el (c-beginning-of-statement): Fix incorrect application of patch from Alan Mackenzie (Bug#7595).
* * lisp/progmodes/gud.el (gdb-script-syntax-propertize-function):Stefan Monnier2011-03-061-1/+3
| | | | | | Don't change the syntax of a \n that closes a comment. Fixes: debbugs:8169
* (c-guess-basic-syntax): Move CASE 19 to a different place, correctly toAlan Mackenzie2011-03-061-22/+22
| | | | process template-args-cont lines.
* progmodes/cc-engine.el (c-guess-basic-syntax): Reindent.Alan Mackenzie2011-03-061-1360/+1360
|
* Fix typos.Juanma Barranquero2011-03-061-2/+2
| | | | | | | | | | | | | | | | * etc/srecode/el.srt: Fix typo. * lisp/allout.el (allout-init, allout-prefixed-keybindings) (allout-unprefixed-keybindings): * lisp/progmodes/prolog.el (prolog-find-term): Fix typos in docstrings. * lisp/org/org.el (org-blank-before-new-entry, org-context-in-file-links) (org-refile-targets, org-log-repeat, org-insert-link) (org-speed-command-default-hook, org-speed-command-hook) (org-in-regexps-block-p, org-yank-generic, org-goto-first-child): Fix typos in docstrings. (org-toggle-pretty-entities): Fix typo in message.
* Replace many instances of read-file-name with read-directory-name.Antoine Levitt2011-03-052-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/files.el (delete-directory, copy-directory, list-directory): Use read-directory-name. * lisp/find-file.el (ff-find-the-other-file): * lisp/net/ange-ftp.el (ange-ftp-make-directory): * lisp/printing.el (pr-interactive-dir): * lisp/progmodes/ada-prj.el (ada-prj-load-directory): * lisp/progmodes/ebnf2ps.el (ebnf-print-directory) (ebnf-spool-directory, ebnf-eps-directory) (ebnf-syntax-directory): * lisp/shell.el (shell): * lisp/speedbar.el (speedbar-create-directory): * lisp/vc/emerge.el (emerge-merge-directories): * lisp/vc/vc-dir.el (vc-dir): * lisp/vc/vc.el (vc-create-tag, vc-retrieve-tag): Likewise. * lisp/gnus.el (gnus-interactive): Use read-directory-name. * lisp/gnus-uu.el (gnus-uu-decode-uu-and-save) (gnus-uu-decode-unshar-and-save, gnus-uu-decode-save) (gnus-uu-decode-binhex, gnus-uu-decode-yenc) (gnus-uu-decode-save-view, gnus-uu-decode-postscript-and-save): Likewise. * lisp/mh-funcs.el (mh-store-msg, mh-store-buffer): * lisp/mh-mime.el (mh-mime-save-parts): Use read-directory-name. * lisp/dired.el: Clarify comment.
* * progmodes/gud.el (gdb-script-mode): Derive from prog-mode.Tom Tromey2011-03-041-1/+1
|
* grep.el fix for bug#8084.Glenn Morris2011-03-021-1/+5
| | | | | * lisp/progmodes/grep.el (grep-highlight-matches): Doc fix. (grep-process-setup): No highlighting without font-lock.
* Merge from emacs-23; up to 2010-06-03T05:41:49Z!rgm@gnu.org.Glenn Morris2011-02-273-14/+14
|\
| * Fix spelling of "precede".Glenn Morris2011-02-223-14/+14
| |
* | Fix some mis-spellings of "precede" that are not in emacs-23 branch.Glenn Morris2011-02-221-3/+2
| |
* | (c-state-literal-at): Prevent positions in macros finding their way intoAlan Mackenzie2011-02-211-4/+38
| | | | | | | | | | | | c-state-nonlit-pos-cache. Strengthen the comments. (c-state-dump): New commented out diagnostic routine.
* | (c-end-of-statement): Set macro-end correctly at the end of a loop.Alan Mackenzie2011-02-201-8/+13
| |
* | Prevent hideshow from parsing braces inside comments (Bug#8036).Dmitry Bolshakov2011-02-191-4/+8
| | | | | | | | | | * progmodes/hideshow.el (hs-find-block-beginning) (hs-hide-level-recursive): Ignore comments when parsing braces.
* | Improvements to vc-bzr conffile handling and pull/merge support.Chong Yidong2011-02-191-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * vc/vc-bzr.el (vc-bzr--branch-conf): Function deleted. (vc-bzr-branch-conf): New function, similar to vc-bzr--branch-conf but returning an alist. Ignore comments in bzr conffile. (vc-bzr-pull, vc-bzr-merge-branch): Use vc-bzr-branch-conf. (vc-bzr-error-regex-alist): New var. (vc-bzr-merge-branch): Use it to highlight the pull/merge buffer. * progmodes/compile.el (compilation--flush-directory-cache): Handle the case where cdr of compilation--flush-directory-cache points to no buffer, which can occur if we previously switched to compilation-mode in a pregenerated buffer. * vc/vc-dispatcher.el (vc-do-async-command): Bind inhibit-read-only to t.
* | * lisp/progmodes/sh-script.el (sh-syntax-propertize-here-doc):Lawrence Mitchell2011-02-181-1/+2
| | | | | | | | | | | | Bind case-fold-search to nil when looking for end of here-doc. Fixes: debbugs:8053
* | Silence prolog.el compilation.Glenn Morris2011-02-181-1/+11
| | | | | | | | | | | | | | | | | | | | * lisp/progmodes/prolog.el: Don't require compile when compiling. -- not using any macros from it, it's just a cheap way to silence the compiler that actually produces one warning. (compilation-shell-minor-mode, compilation-error-regexp-alist) (compilation-forget-errors, compilation-fake-loc) (compilation-parse-errors-function, compilation-error-list): Declare. (prolog-inferior-mode): Require 'compile.
* | * lisp/progmodes/prolog.el: Header comment fix.Glenn Morris2011-02-161-1/+2
| |
* | Proper fix for CC mode Bug#7722.Alan Mackenzie2011-02-132-53/+46
| | | | | | | | | | | | | | | | | | * lisp/progmodes/cc-fonts.el (c-font-lock-declarations): Remove a narrow-to-region call that cuts context off the end (Bug#7722). * lisp/progmodes/cc-engine.el (c-forward-<>-arglist-recur): Refactor nested if-forms with a simple cond. (c-forward-<>-arglist): Revert 2011-01-31 change.
* | * lisp/progmodes/grep.el (grep-mode-font-lock-keywords): Adjust toStefan Monnier2011-02-101-3/+3
| | | | | | | | | | | | `message' -> `compilation-message' rename. Fixes: debbugs:8004
* | Move keymap initialization into declaration.Stefan Monnier2011-02-103-60/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/textmodes/enriched.el (enriched-mode-map): * lisp/textmodes/bib-mode.el (bib-mode-map): * lisp/term/lk201.el (lk201-function-map): * lisp/tar-mode.el (tar-mode-map): * lisp/replace.el (occur-mode-map): * lisp/progmodes/idlwave.el (idlwave-rinfo-mouse-map, idlwave-rinfo-map): * lisp/progmodes/idlw-help.el (idlwave-help-mode-map): * lisp/progmodes/gdb-mi.el (gdb-memory-format-menu, gdb-memory-unit-menu): * lisp/play/solitaire.el (solitaire-mode-map): * lisp/play/snake.el (snake-mode-map, snake-null-map): * lisp/play/pong.el (pong-mode-map): * lisp/play/handwrite.el (menu-bar-handwrite-map): * lisp/play/gametree.el (gametree-mode-map): * lisp/net/rcirc.el (rcirc-mode-map, rcirc-browse-url-map (rcirc-multiline-minor-mode-map, rcirc-track-minor-mode-map): * lisp/net/newst-plainview.el (newsticker-menu, newsticker-mode-map) (newsticker--url-keymap): * lisp/net/net-utils.el (nslookup-mode-map, ftp-mode-map): * lisp/menu-bar.el (menu-bar-file-menu, menu-bar-i-search-menu) (menu-bar-search-menu, menu-bar-replace-menu, menu-bar-goto-menu) (menu-bar-edit-menu, menu-bar-custom-menu) (menu-bar-showhide-fringe-ind-menu, menu-bar-showhide-fringe-menu) (menu-bar-showhide-scroll-bar-menu, menu-bar-showhide-menu) (menu-bar-line-wrapping-menu, menu-bar-options-menu) (menu-bar-games-menu, menu-bar-encryption-decryption-menu) (menu-bar-tools-menu, menu-bar-describe-menu) (menu-bar-search-documentation-menu, menu-bar-manuals-menu) (menu-bar-help-menu): * lisp/mail/rmailsum.el (rmail-summary-mode-map): * lisp/kmacro.el (kmacro-step-edit-map): * lisp/ibuffer.el (ibuffer-mode-groups-popup, ibuffer-mode-map) (ibuffer-mode-operate-map): * lisp/hi-lock.el (hi-lock-menu, hi-lock-map): * lisp/emulation/vip.el (vip-mode-map): * lisp/emacs-lisp/re-builder.el (reb-lisp-mode-map): * lisp/bookmark.el (bookmark-bmenu-mode-map): * lisp/help-mode.el (help-mode-map): * lisp/erc/erc-list.el (erc-list-menu-mode-map): * lisp/org/org-remember.el (org-remember-mode-map): * lisp/org/org-src.el (org-src-mode-map): Move initialization into declaration.
* | * lisp/progmodes/sh-script.el (sh-font-lock-open-heredoc): Fix caseStefan Monnier2011-02-091-24/+24
| | | | | | | | | | | | | | of here-doc that immediately follows a comment. * .bzrignore: Ignore globals.h and related stamp. * test/indent/shell.sh: * test/indent/shell.rc: New files.
* | Merge from emacs-23; up to 2010-05-26T14:19:15Z!monnier@iro.umontreal.ca.Glenn Morris2011-02-051-0/+10
|\ \ | |/
| * f90.el fix for bug#7919.Glenn Morris2011-02-031-0/+10
| | | | | | | | | | * lisp/progmodes/f90.el (f90-find-tag-default): New function. (f90-mode): Use it for mode's `find-tag-default-function' property.
* | * lisp/progmodes/sh-script.el (sh-here-doc-open-re): Don't rely on theStefan Monnier2011-02-051-92/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | font-lock-syntax-table remappings. (sh-here-doc-markers, sh-here-doc-re): Remove. (sh-font-lock-close-heredoc): Remove. (sh-syntax-propertize-here-doc): New function. (sh-font-lock-open-heredoc): Set the sh-here-doc-marker property instead of the sh-here-doc-re. (sh-font-lock-paren): Don't do anything in comments or strings. Handle line continuations. Accept a few more chars. Don't rely on the font-lock-syntax-table remappings. `esac' is not a valid pattern. (sh-syntax-propertize-function): Handle here-docs differently, so we don't bother syntax-propertizing the insides. Fixes: debbugs:7947
* | * lisp/progmodes/sh-script.el (sh-font-lock-paren, sh-kw, sh-prev-thing):Stefan Monnier2011-02-051-2/+4
| | | | | | | | | | | | Handle new bashisms ";&" and ";;&". Fixes: debbugs:7947
* | * lisp/progmodes/gdb-mi.el (gdb-breakpoints-list-handler-custom):Sam Steingold2011-02-031-1/+2
| | | | | | | | Do not error out when `func' is nil.
* | * progmodes/compile.el: Make all faces inherit from font-lock faces.Chong Yidong2011-02-021-14/+5
| | | | | | | | | | | | | | | | (compilation-warning): Inherit from font-lock-variable-name-face. (compilation-info): Inherit from font-lock-type-face. (compilation-line-number): Reassign to font-lock-keyword-face. (compilation-column-number): Reassign to font-lock-doc-face. (compilation-leave-directory-face): Reassign to font-lock-builtin-face.
* | * lisp/simple.el (special-mode-map): Bind "h" to `describe-mode';Sam Steingold2011-02-011-5/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bind "z" to `kill-this-buffer'. (completion-list-mode-map): Bind "z" to `kill-this-buffer'. * lisp/apropos.el (apropos-mode-map): Inherit from `special-mode-map'. (apropos-mode): Inherit from `special-mode'. * lisp/arc-mode.el (archive-mode-map): Inherit from `special-mode-map'. * lisp/bookmark.el (bookmark-bmenu-mode): Define using `define-derived-mode' inheriting from `special-mode'. * lisp/dired.el (dired-mode-map): Inherit from `special-mode-map'. * lisp/image-mode.el (image-mode-map): Ditto. * lisp/replace.el (occur-mode): Define using `define-derived-mode' inheriting from `special-mode'. * lisp/tar-mode.el (tar-mode): Inherit from `special-mode'. * lisp/calendar/diary-lib.el (diary-fancy-display-mode): Inherit from `special-mode-map'. * lisp/emacs-lisp/ert.el (ert-simple-view-mode, ert-results-mode): Inherit from `special-mode'. * lisp/emacs-lisp/package.el (package-menu-mode-map): Copy from `special-mode-map'. (package-menu-mode): Define using `define-derived-mode' inheriting from `special-mode'. * erc/erc-list.el (erc-list-menu-mode): Inherit from `special-mode'. * lisp/net/xesam.el (xesam-mode): Inherit from `special-mode'. (xesam-mode-map): Define separately. * lisp/play/solitaire.el (solitaire-mode): Inherit from `special-mode'. * lisp/progmodes/compile.el (compilation-minor-mode-map) (compilation-mode-map): Inherit from `special-mode-map'. * lisp/vc/diff-mode.el (diff-mode-shared-map): Inherit from `special-mode-map'. * lisp/vc/log-view.el (log-view-mode-map): Add a comment.
* | * lisp/progmodes/compile.el (compilation-next-error): Check there'sStefan Monnier2011-02-011-3/+2
| | | | | | | | | | | | a message before using it. Fixes: debbugs:7941
* | Merge changes from emacs-23 branchChong Yidong2011-01-312-13/+33
|\ \ | |/
| * Fix an infloop in CC-mode (Bug#7595).Alan Mackenzie2011-01-311-12/+21
| | | | | | | | | | | | | | * progmodes/cc-cmds.el (c-forward-over-illiterals): Continue parsing if we encounter a naked # (Bug#7595). (c-beginning-of-statement): Avoid loop in locating the beginning of a macro.
| * Limit recursion depth of c-forward-<>-arglist-recur (Bug#7722).Chong Yidong2011-01-261-1/+12
| | | | | | | | | | * progmodes/cc-engine.el (c-forward-<>-arglist-recur): Set a limit to the recursion depth.
* | Fix last-minute typo in last change.Stefan Monnier2011-01-311-2/+2
| |
* | * lisp/progmodes/compile.el (compilation--flush-directory-cache):Stefan Monnier2011-01-311-39/+49
| | | | | | | | | | | | | | | | | | New function, extracted from compilation--remove-properties. (compilation--remove-properties, compilation--parse-region): Use it. (compilation--previous-directory): Handle one more case. (compilation-enable-debug-messages): Remove. (compilation-parse-errors, compilation--flush-parse): Just remove the left over debug messages.
* | * lisp/progmodes/compile.el (compilation-enable-debug-messages):Sam Steingold2011-01-311-3/+7
| | | | | | | | | | | | Add a variable to make the parsing messages introduced in 2011-01-28T22:12:05Z!monnier@iro.umontreal.ca optional. (compilation-parse-errors, compilation--flush-parse): Use it.
* | * lisp/progmodes/compile.el: Avoid an N² behavior in grep.Stefan Monnier2011-01-291-3/+43
| | | | | | | | | | | | | | | | (compilation--previous-directory): New fun. (compilation--previous-directory-cache): New var. (compilation--remove-properties): Flush it. (compilation-directory-properties, compilation-error-properties): Use the new fun to speed up looking for the current directory.
* | * lisp/progmodes/compile.el: Don't use font-lock any more.Stefan Monnier2011-01-281-147/+270
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (compilation-error-regexp-alist-alist): Change handling of makepp so it preserves the warning/error distinction on subsequent files. Simplify various rules. (compilation-directory-properties): Use font-lock-face. Add a compilation-message property. (compilation-internal-error-properties): Use font-lock-face. Don't set the compilation-debug property here. (compilation--put-prop, compilation--remove-properties) (compilation--parse-region, compilation--ensure-parse) (compilation--ensure-parse): New functions. (compilation-parse-errors): New function, largely inspired of compilation-mode-font-lock-keywords. Set compilation-debug here. (compilation--parsed): New var. (compilation--flush-parse): Use compilation--ensure-parse. (compilation-start): Don't call font-lock. (compilation-turn-on-font-lock): Remove. (compilation-setup): Don't set font-lock-extra-managed-props not change other font-lock settings, other than keywords. Don't activate font-lock-mode. Set change-major-mode-hook and before-change-functions. (compilation--unsetup): Remove properties and hooks. (compilation-next-single-property-change): New function. (compilation-next-error): Use it to parse when needed. (compile-goto-error): Parse buffer as needed. (compilation--compat-error-properties): Don't need a dummy `face' property any more.
* | * lisp/progmodes/compile.el: Use accessors for clarity and fix omake hack.Stefan Monnier2011-01-281-101/+184
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (compilation-process-setup-function): Fix docstring's false promises. (compilation-error-regexp-alist-alist): Catch omake's continuous recompilation message and avoid reuse of old markers. (compilation-parse-errors-function): Declare obsolete. (compilation-buffer-modtime): Remove. (compilation--make-cdrloc, compilation--loc->col) (compilation--loc->line, compilation--loc->file-struct) (compilation--loc->marker, compilation--loc->visited) (compilation--make-file-struct, compilation--file-struct->file-spec) (compilation--file-struct->formats) (compilation--file-struct->loc-tree): New macros. Use them. (compilation--message): New defstruct. Use them. (compilation-next-error-function): Don't mess with timestamps to try and guess when to reparse.
* | Minor cleanup for compile.el and grep.el.Stefan Monnier2011-01-282-106/+143
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/compile.el: Cleanup text-properties namespace by using `compilation-message' instead of `message', `compilation-directory' instead of `directory', and `compilation-debug' instead of `debug'. (compilation-last-buffer, compilation-parsing-end) (compilation-error-list, compilation-old-error-list): Move to the compatibility part of the code. (compilation-error-properties): If `file' is a function, let it return a file name. (compilation-mode-font-lock-keywords): Be more conservative with the omake "^ *" pattern prefix, to try and minimize the risk of pathologically slow regexp matching. (compilation-start): Use inhibit-read-only. (compilation--unsetup): New function. (compilation-shell-minor-mode, compilation-minor-mode): Use it. (compilation-filter): Minor tweaks. (compilation-next-error-function): Try and avoid abusing variable names. (compilation--flush-file-structure): New fun. (compilation-fake-loc): Use it for cleaner behavior when file is reused. (debug-ignored-errors): Add "Moved past last ...". (compilation--compat-error-properties) (compilation--compat-parse-errors): Rename by doubling the "-". * lisp/progmodes/grep.el (grep-regexp-alist): Tighten regexp. (grep-mode-font-lock-keywords): Remove regexp that seems like a left-over from before we used compile.el. (grep-mode-font-lock-keywords): Call syntax-ppss-flush-cache when modifying the buffer within with-silent-modifications.
* | Port features from the previous prolog.el to the new one.Stefan Monnier2011-01-281-62/+186
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/prolog.el (prolog-system): Add GNU and ECLiPSe options. (prolog-program-name, prolog-program-switches, prolog-consult-string) (prolog-compile-string, prolog-prompt-regexp): Get rid of the <foo>-i variable and use a function to compute the value dynamically. (prolog-prompt-regexp): Add regexp for GNU Prolog. (prolog-continued-prompt-regexp): Remove, unused. (prolog-find-value-by-system): Try and use the value of prolog-system in the *prolog* buffer if it helps. (prolog-mode-keybindings-common): Bind C-c C-z unconditionally... (prolog-zip-on): ..and check prolog-system and version here instead. (prolog-inferior-self-insert-command): New command. (prolog-inferior-mode-map): Use it. (prolog-inferior-error-regexp-alist): New var. (prolog-inferior-mode): Use it, along with compilation-shell-minor-mode. (prolog-input-filter): Use derived-mode-p. (prolog-inferior-guess-flavor): New function. (prolog-ensure-process): Use it. Use make-comint-in-buffer rather than make-comint to avoid running comint-mode twice. (prolog-inferior-buffer): New fun. (prolog-old-process-region, prolog-old-process-file): Don't call prolog-bsts here... (prolog-build-prolog-command): ...do it here instead. (prolog-old-process-region, prolog-old-process-file): Use compilation-fake-loc and compilation-forget-errors. (prolog-consult-compile-region): Use bolp.
* | * lisp/progmodes/ruby-mode.el (ruby-syntax-propertize-function):Stefan Monnier2011-01-271-1/+1
| | | | | | | | Copy change made to ruby-font-lock-syntactic-keywords.
* | Refill some long/short copyright headers.Glenn Morris2011-01-2644-85/+47
| |