Dima Kogan
5012f24c2a
More fixes to prevent hide-show from being confused by commented-out braces (Bug#8279).
...
* progmodes/hideshow.el (hs-looking-at-block-start-p): New fun.
(hs-hide-block-at-point, hs-find-block-beginning)
(hs-already-hidden-p, hs-hide-block, hs-show-block): Use it.
2011-05-28 14:35:29 -04:00
Chong Yidong
d43eaf2c3c
Make CC modes inherit from prog-mode.
...
* lisp/progmodes/cc-mode.el (c-mode, c++-mode, objc-mode, java-mode)
(idl-mode, pike-mode, awk-mode): Inherit from prog-mode.
2011-05-28 13:16:54 -04:00
Stefan Monnier
0ff8e1ba6b
* lisp/minibuffer.el (completion--capf-wrapper): Check applicability before
...
retuning non-nil for non-exclusive completion data.
* lisp/progmodes/etags.el (tags-completion-at-point-function):
* lisp/info-look.el (info-lookup-completions-at-point): Mark as non-exclusive.
(info-complete): Adjust accordingly.
* lisp/erc/erc-pcomplete.el (erc-pcompletions-at-point): Mark the completion
data as non-exclusive if it's using the default-completion-function.
(pcomplete-erc-parse-arguments): Rename pcomplete-parse-erc-arguments.
(pcomplete-erc-setup): Use new name.
2011-05-27 23:10:32 -03:00
Glenn Morris
f86307039d
* lisp/progmodes/python.el (brm-menu): Declare.
2011-05-23 20:38:35 -07:00
Stefan Monnier
4f91a8160f
Don't quote lambda expressions with `quote'.
2011-05-23 14:57:17 -03:00
Stefan Monnier
79106a44d3
* lisp/progmodes/grep.el (grep-mode): Fix it for good!
...
Fixes: debbugs:8684
2011-05-22 14:19:24 -03:00
Stefan Monnier
b7cf2c79c7
* lisp/progmodes/grep.el (grep-mode): Fix last change.
...
Fixes: debbugs:8684
2011-05-21 20:18:22 -03:00
Glenn Morris
d1f21341e1
* lisp/progmodes/f90.el (f90-type-def-re): Handle "type, bind(c)". (Bug#8691)
2011-05-18 23:18:58 -07:00
Stefan Monnier
1d99a745e2
* lisp/progmodes/grep.el (grep-mode): Disable default
...
compilation-directory-matcher setting.
Fixes: debbugs:8684
2011-05-17 15:14:30 -03:00
Glenn Morris
b6d3ee5f4e
* lisp/progmodes/cc-defs.el: Comment change.
2011-05-16 19:42:23 -07:00
Glenn Morris
e4157b9c92
* idlw-shell.el (idlwave-shell-complete-filename): Replace obsolete function.
2011-05-16 19:39:23 -07:00
Glenn Morris
c71a0d48f3
Merge from emacs-23; up to 2010-06-11T14:39:54Z!cyd@stupidchicken.com.
2011-05-16 19:26:56 -07:00
Juanma Barranquero
ce1539b46d
lisp/progmodes/python.el: Highlight keyword "nonlocal" (bug#8639).
2011-05-13 14:44:48 +02:00
Andreas Schwab
92d1079638
* lisp/progmodes/ld-script.el (ld-script-keywords)
...
(ld-script-builtins): Update keywords list.
2011-05-12 18:46:53 +02:00
Stefan Monnier
c89be45f2e
* lisp/progmodes/grep.el (grep-filter): Don't trip on partial lines.
2011-05-12 12:10:17 -03:00
Glenn Morris
d2fc7e3d0f
Merge from emacs-23; up to 2010-06-10T12:56:11Z!michael.albinus@gmx.de.
2011-05-12 00:07:06 -07:00
U. Ser
9b053e766d
fix many doubled-word typos
2011-05-10 15:57:12 +02:00
Chong Yidong
9bedd73a50
Call compilation-filter-hook in the no-async case too.
...
* progmodes/compile.el (compilation-start): Run
compilation-filter-hook for the async case too.
(compilation-filter-hook): Doc fix.
2011-05-09 15:42:45 -04:00
Chong Yidong
4c44026c14
Various fixes to compilation-error-regexp-alist-alist.
...
* lisp/progmodes/compile.el (compilation-error-regexp-alist-alist): Fix
the ant regexp to handle end-line and end-column info from jikes.
Re-introduce maven regexp. Give the ruby-Test::Unit regexp a
higher priority to avoid clobbering by gnu.
2011-05-08 21:24:00 -04:00
Ralph Schleicher
6eea50c73b
Handle missing add-log-current-defun-function in Which Func mode (Bug#8260)
...
* lisp/progmodes/which-func.el (which-function): Use
add-log-current-defun instead of add-log-current-defun-function,
which might not be defined.
2011-05-08 14:29:35 -04:00
Chong Yidong
085f5d7dca
Handle "my" and "our" keywords in Perl imenu (Bug#8261).
...
* progmodes/perl-mode.el (perl-imenu-generic-expression): Only match
variables declared via `my' or `our'.
2011-05-08 14:23:11 -04:00
Chong Yidong
d9c54a06a0
Perform grep-mode's buffer modifications in a process filter (Bug#7952)
...
* progmodes/grep.el (grep-mode-font-lock-keywords): Remove
buffer-changing entries.
(grep-filter): New function.
(grep-mode): Add it to compilation-filter-hook.
* progmodes/compile.el (compilation-filter-hook)
(compilation-filter-start): New defvars.
(compilation-filter): Call compilation-filter-hook prior to
updating the process mark.
2011-05-08 01:17:17 -04:00
Glenn Morris
cf5bee67f9
Declaration fixes.
...
* lisp/net/network-stream.el (gnutls-negotiate): Fix declaration.
* lisp/simple.el (tabulated-list-print): Fix declaration.
* lisp/progmodes/gud.el (syntax-symbol, syntax-point):
Remove unnecessary and incorrect declarations.
2011-05-04 23:35:41 -07:00
Milan Zamazal
9c1d5ac586
Small addition to glasses.el (bug#8524)
...
* lisp/progmodes/glasses.el (glasses-separate-capital-groups): New option.
(glasses-make-readable): Use glasses-separate-capital-groups.
2011-05-04 20:26:55 -07:00
Glenn Morris
dd19b5fb3e
Comment fix.
2011-05-03 19:01:27 -07:00
Stefan Monnier
7eabc1bec8
* lisp/progmodes/pascal.el: Use lexical binding.
...
(pascal-mode-map): Remove author preferences.
2011-04-29 14:34:28 -03:00
Stefan Monnier
e92f3bd31b
Fix octave-inf completion problems reported by Alexander Klimov.
...
* lisp/progmodes/octave-inf.el (inferior-octave-mode-syntax-table):
Inherit from octave-mode-syntax-table.
(inferior-octave-mode): Set info-lookup-mode.
(inferior-octave-completion-at-point): New function.
(inferior-octave-complete): Use it and completion-in-region.
(inferior-octave-dynamic-complete-functions): Use it as well, and use
comint-filename-completion.
* lisp/progmodes/octave-mod.el (octave-mode-syntax-table): Use _ syntax for
symbol elements which shouldn't be word elements.
(octave-font-lock-keywords, octave-beginning-of-defun)
(octave-function-header-regexp): Adjust regexps accordingly.
(octave-mode-map): Also use info-lookup-symbol for C-c C-h.
2011-04-25 13:29:31 -03:00
Daniel Colascione
05842630f9
* progmodes/cc-engine.el (c-forward-decl-or-cast-1): Use
...
correct match group (bug#8438).
2011-04-24 17:31:41 -07:00
Daniel Colascione
320f861c69
Use correct match group (bug#8438).
2011-04-24 17:20:47 -07:00
Uday S Reddy
7031be6d49
Fix next-file command in etags.el.
...
* lisp/progmodes/etags.el (next-file): Don't use set-buffer to change
buffers (Bug#8478).
* doc/lisp/maintaining.texi (List Tags): Document next-file.
2011-04-24 14:47:17 -04:00
Juanma Barranquero
e02f48d76b
lisp/progmodes/*.el: Lexical-binding cleanup.
2011-04-22 20:44:26 +02:00
Stefan Monnier
c79a6f38ab
* lisp/progmodes/flymake.el (flymake-start-syntax-check-process): Obey `dir'.
2011-04-20 15:08:21 -03:00
Stefan Monnier
602ea69dc7
* lisp/progmodes/octave-mod.el (octave-in-comment-p, octave-in-string-p)
...
(octave-not-in-string-or-comment-p): Use syntax-ppss so it works with
multi-line comments as well.
2011-04-19 12:33:34 -03:00
Glenn Morris
239da61d98
Use lexcical-binding in f90.el.
...
* lisp/progmodes/f90.el: Use lexical-binding. Use utf-8 coding.
(f90-get-correct-indent): Remove unnecessary local variable `cont'.
2011-04-16 16:30:15 -07:00
Stefan Monnier
b5b8e7de51
* lisp/progmodes/gud.el (gud-gdb): Use completion-at-point instead of
...
gud-gdb-complete-command.
(gud-gdb-completions): New function, from gud-gdb-complete-command.
(gud-gdb-completion-at-point): New function.
(gud-gdb-completions): Remove.
2011-04-14 22:44:00 -03:00
Glenn Morris
f3ca7378c1
Use find -exec with '+' for grep-find if supported.
...
* lisp/progmodes/grep.el (grep-find-use-xargs): Doc fix.
(grep-compute-defaults): Check for `-exec COMMAND +' support.
Set grep-find-use-xargs, grep-find-command, and grep-find-template
accordingly. Don't add the null-device if not needed.
2011-04-02 11:52:08 -07:00
Juanma Barranquero
26b51db565
lisp/progmodes/idlwave.el: Use dolist' rather than
mapcar'.
2011-04-02 00:33:37 +02:00
Glenn Morris
e040639fd9
* lisp/progmodes/f90.el (f90-find-tag-default): Handle multiple `%'.
2011-03-31 00:20:38 -07:00
Christoph Scholtes
6d0f1c9e55
* progmodes/python.el (python-default-interpreter)
...
(python-python-command-args, python-jython-command-args)
(python-which-shell, python-which-args, python-which-bufname)
(python-file-queue, python-comint-output-filter-function)
(python-toggle-shells, python-shell): Remove obsolete defcustoms,
variables and functions.
2011-03-30 16:44:07 -06:00
Glenn Morris
927c53e762
* lisp/progmodes/gdb-mi.el (gdb): Fix typo in previous change.
2011-03-22 19:50:28 -07:00
Juanma Barranquero
5ba5fb816d
lisp/progmodes/delphi.el: Fix typos.
2011-03-16 02:28:20 +01:00
Stefan Monnier
0adf561883
Fix misuse of quote in `case'.
...
* 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.
2011-03-15 13:39:56 -04:00
Stefan Monnier
946425995f
* lisp/progmodes/compile.el (compilation--previous-directory): Fix up
...
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
2011-03-11 23:29:22 -05:00
Glenn Morris
791cd3860e
Fix previous gdb-mi fix...
2011-03-09 00:57:40 -08:00
Glenn Morris
1289e5d3f5
Fix previous gdb-mi change.
2011-03-09 00:55:08 -08:00
Glenn Morris
13522cb4cd
gdb-mi addition for bug#7889.
...
* lisp/progmodes/gdb-mi.el (gdb): Improve 2010-12-08 change.
Check for GDBHISTFILE, HISTSIZE, etc.
2011-03-09 00:43:27 -08:00
Chong Yidong
7600cf4599
Fix a cc-cmds.el patch from acm that I applied incorrectly (Bug#7595).
...
* lisp/progmodes/cc-cmds.el (c-beginning-of-statement): Fix incorrect
application of patch from Alan Mackenzie (Bug#7595).
2011-03-07 15:29:03 -05:00
Chong Yidong
1df1040bf8
Fix 2011-01-31 change; patch supplied by acm was applied incorrectly.
...
* lisp/progmodes/cc-cmds.el (c-beginning-of-statement): Fix 2011-01-31
change; patch supplied by Alan Mackenzie was applied incorrectly.
2011-03-07 15:05:53 -05:00
Chong Yidong
c6678f2916
Revert 2010-05-25T15:54:53Z!juri@jurta.org; regenerate release logs.
...
* lisp/progmodes/cc-cmds.el (c-beginning-of-statement): Revert
2011-01-31 change.
2011-03-07 00:20:23 -05:00
Stefan Monnier
2b0787b344
* lisp/progmodes/gud.el (gdb-script-syntax-propertize-function):
...
Don't change the syntax of a \n that closes a comment.
Fixes: debbugs:8169
2011-03-06 15:55:52 -05:00