Sam Steingold
6e50e9836a
Add rudimentary inferior shell interaction
...
* lisp/progmodes/sh-script.el (sh-shell-process): New buffer-local variable.
(sh-set-shell): Reset it.
(sh-show-shell, sh-cd-here, sh-send-line-or-region-and-step): New
commands (bound to C-c C-z, C-c C-d, and C-c C-n).
2013-08-20 21:16:27 -04:00
Paul Eggert
526e5233cc
Spelling fixes.
2013-08-15 22:15:51 -07:00
Fabián Ezequiel Gallina
ad75644970
* lisp/progmodes/python.el (python-imenu--build-tree)
...
(python-imenu--put-parent): Simplify and Fix (GH bug 146).
* test/automated/python-tests.el (python-imenu-create-index-4)
(python-imenu-create-flat-index-2): New tests.
2013-08-13 13:36:32 -03:00
Glenn Morris
55e47f950d
Tweak some settings of compile-command
...
* progmodes/compile.el (compile-command): Tweak example in doc.
* obsolete/scribe.el (scribe-mode):
* progmodes/mixal-mode.el (mixal-mode): Quote buffer name.
Fixes: debbugs:15053
2013-08-13 00:56:43 -07:00
Stefan Monnier
54bd972f15
* lisp/subr.el (define-error): New function.
...
* doc/lispref/control.texi (Signaling Errors): Refer to define-error.
(Error Symbols): Add `define-error'.
* doc/lispref/errors.texi (Standard Errors): Don't refer to `error-conditions'.
* lisp/progmodes/ada-xref.el (ada-error-file-not-found): Rename from
error-file-not-found and define with define-error.
* lisp/emacs-lisp/cl-lib.el (cl-assertion-failed): Move here from subr.el
and define with define-error.
* lisp/userlock.el (file-locked, file-supersession):
* lisp/simple.el (mark-inactive):
* lisp/progmodes/js.el (js-moz-bad-rpc, js-js-error):
* lisp/progmodes/ada-mode.el (ada-mode-errors):
* lisp/play/life.el (life-extinct):
* lisp/nxml/xsd-regexp.el (xsdre-invalid-regexp, xsdre-parse-error):
* lisp/nxml/xmltok.el (xmltok-markup-declaration-parse-error):
* lisp/nxml/rng-util.el (rng-error):
* lisp/nxml/rng-uri.el (rng-uri-error):
* lisp/nxml/rng-match.el (rng-compile-error):
* lisp/nxml/rng-cmpct.el (rng-c-incorrect-schema):
* lisp/nxml/nxml-util.el (nxml-error, nxml-file-parse-error):
* lisp/nxml/nxml-rap.el (nxml-scan-error):
* lisp/nxml/nxml-outln.el (nxml-outline-error):
* lisp/net/soap-client.el (soap-error):
* lisp/net/gnutls.el (gnutls-error):
* lisp/net/ange-ftp.el (ftp-error):
* lisp/mpc.el (mpc-proc-error):
* lisp/json.el (json-error, json-readtable-error, json-unknown-keyword)
(json-number-format, json-string-escape, json-string-format)
(json-key-format, json-object-format):
* lisp/jka-compr.el (compression-error):
* lisp/international/quail.el (quail-error):
* lisp/international/kkc.el (kkc-error):
* lisp/emacs-lisp/ert.el (ert-test-failed):
* lisp/calc/calc.el (calc-error, inexact-result, math-overflow)
(math-underflow):
* lisp/bookmark.el (bookmark-error-no-filename):
* lisp/epg.el (epg-error): Define with define-error.
2013-08-09 17:22:44 -04:00
Stefan Monnier
f001e98ec5
* lisp/progmodes/bat-mode.el (bat--syntax-propertize): New var.
...
(bat-mode): Use it.
(bat-mode-syntax-table): Mark \n as end-of-comment.
(bat-font-lock-keywords): Remove comment rule.
2013-08-07 18:53:18 -04:00
Stefan Monnier
7679edb1e0
* lisp/progmodes/bat-mode.el: Rename from dos.el. Use "bat-" prefix.
...
(dos-mode-help): Remove. Use describe-mode (C-h m) instead.
2013-08-07 18:42:44 -04:00
Eli Zaretskii
cdc1ebb941
Minor fixes in lisp/progmodes/dos.el.
...
lisp/progmodes/dos.el (dos-font-lock-keywords): Rename LINUX to UNIX
and add a few popular commands found in batch files.
(dos, dos-label-face, dos-cmd-help, dos-run, dos-run-args)
(dos-mode): Doc fixes.
2013-08-07 19:37:04 +03:00
Stefan Monnier
312b1740c2
* lisp/progmodes/dos.el (auto-mode-alist): Add entries for dos-mode.
...
(dos-mode): Use setq-local. Add space after "rem".
(dos-mode-syntax-table): Don't use "w" for symbol chars.
(dos-font-lock-keywords): Try to adjust font-lock rules accordingly.
2013-08-07 11:50:16 -04:00
Arni Magnusson
400a3178cb
* lisp/progmodes/dos.el: New file.
...
* lisp/generic-x.el (bat-generic-mode): Redefine as an obsolete alias to
dos-mode.
2013-08-07 11:43:57 -04:00
Dmitry Antipov
290d5b5890
Do not call to `selected-window' where it is assumed by default.
...
Affected functions are `window-minibuffer-p', `window-dedicated-p',
`window-hscroll', `window-width', `window-height', `window-buffer',
`window-frame', `window-start', `window-point', `next-window'
and `window-display-table'.
* abbrev.el (abbrev--default-expand):
* bs.el (bs--show-with-configuration):
* buff-menu.el (Buffer-menu-mouse-select):
* calc/calc.el (calc):
* calendar/calendar.el (calendar-generate-window):
* calendar/diary-lib.el (diary-simple-display, diary-show-all-entries)
(diary-make-entry):
* comint.el (send-invisible, comint-dynamic-complete-filename)
(comint-dynamic-simple-complete, comint-dynamic-list-completions):
* completion.el (complete):
* dabbrev.el (dabbrev-expand, dabbrev--make-friend-buffer-list):
* disp-table.el (describe-current-display-table):
* doc-view.el (doc-view-insert-image):
* ebuff-menu.el (Electric-buffer-menu-mouse-select):
* ehelp.el (with-electric-help):
* emacs-lisp/easy-mmode.el (easy-mmode-define-navigation):
* emacs-lisp/edebug.el (edebug-two-window-p, edebug-pop-to-buffer):
* emacs-lisp/helper.el (Helper-help-scroller):
* emulation/cua-base.el (cua--post-command-handler-1):
* eshell/esh-mode.el (eshell-output-filter):
* ffap.el (ffap-gnus-wrapper):
* help-macro.el (make-help-screen):
* hilit-chg.el (highlight-compare-buffers):
* hippie-exp.el (hippie-expand, try-expand-dabbrev-visible):
* hl-line.el (global-hl-line-highlight):
* icomplete.el (icomplete-simple-completing-p):
* isearch.el (isearch-done):
* jit-lock.el (jit-lock-stealth-fontify):
* mail/rmailsum.el (rmail-summary-scroll-msg-up):
* lisp/mouse-drag.el (mouse-drag-should-do-col-scrolling):
* mpc.el (mpc-tagbrowser, mpc):
* net/rcirc.el (rcirc-any-buffer):
* play/gomoku.el (gomoku-max-width, gomoku-max-height):
* play/landmark.el (landmark-max-width, landmark-max-height):
* play/zone.el (zone):
* progmodes/compile.el (compilation-goto-locus):
* progmodes/ebrowse.el (ebrowse-view/find-file-and-search-pattern):
* progmodes/etags.el (find-tag-other-window):
* progmodes/fortran.el (fortran-column-ruler):
* progmodes/gdb-mi.el (gdb-mouse-toggle-breakpoint-fringe):
* progmodes/verilog-mode.el (verilog-point-text):
* reposition.el (reposition-window):
* rot13.el (toggle-rot13-mode):
* server.el (server-switch-buffer):
* shell.el (shell-dynamic-complete-command)
(shell-dynamic-complete-environment-variable):
* simple.el (insert-buffer, set-selective-display)
(delete-completion-window):
* speedbar.el (speedbar-timer-fn, speedbar-center-buffer-smartly)
(speedbar-recenter):
* startup.el (fancy-splash-head):
* textmodes/ispell.el (ispell-command-loop):
* textmodes/makeinfo.el (makeinfo-compilation-sentinel-region):
* tutorial.el (help-with-tutorial):
* vc/add-log.el (add-change-log-entry):
* vc/compare-w.el (compare-windows):
* vc/ediff-help.el (ediff-indent-help-message):
* vc/ediff-util.el (ediff-setup-control-buffer, ediff-position-region):
* vc/ediff-wind.el (ediff-skip-unsuitable-frames)
(ediff-setup-control-frame):
* vc/emerge.el (emerge-position-region):
* vc/pcvs-util.el (cvs-bury-buffer):
* window.el (walk-windows, mouse-autoselect-window-select):
* winner.el (winner-set-conf, winner-undo): Related users changed.
2013-08-05 18:26:57 +04:00
Dmitry Antipov
12b4c0ea03
Do not call to `selected-frame' where it is assumed by default.
...
Affected functions are `raise-frame', `redraw-frame',
`frame-first-window', `frame-terminal' and `delete-frame'.
* lisp/calendar/appt.el (appt-disp-window):
* lisp/epg.el (epg-wait-for-completion):
* lisp/follow.el (follow-delete-other-windows-and-split)
(follow-avoid-tail-recenter):
* lisp/international/mule.el (set-terminal-coding-system):
* lisp/mail/rmail.el (rmail-mail-return):
* lisp/net/newst-plainview.el (newsticker--buffer-set-uptodate):
* lisp/progmodes/f90.el (f90-add-imenu-menu):
* lisp/progmodes/idlw-toolbar.el (idlwave-toolbar-toggle):
* lisp/server.el (server-switch-buffer):
* lisp/simple.el (delete-completion-window):
* lisp/talk.el (talk):
* lisp/term/xterm.el (terminal-init-xterm-modify-other-keys)
(xterm-turn-on-modify-other-keys, xterm-remove-modify-other-keys):
* lisp/vc/ediff-util.el (ediff-status-info, ediff-show-diff-output):
* lisp/vc/ediff.el (ediff-documentation): Related users changed.
* lisp/frame.el (selected-terminal): Remove the leftover.
2013-08-05 14:35:55 +04:00
Alan Mackenzie
f5950f7afe
Fontify a Java generic method as a function.
...
* progmodes/cc-langs.el (c-recognize-<>-arglists): Set the Java
value to t.
2013-07-27 17:35:04 +00:00
Alan Mackenzie
5ab78d3d6a
Make Java try-with-resources statement parse properly.
...
progmodes/cc-langs.el (c-block-stmt-1-2-kwds, c-block-stmt-1-2-key): New
language constants/variables.
progmodes/cc-engine.el (c-beginning-of-statement-1, c-after-conditional): Adapt
to deal with c-block-stmt-1-2-key.
progmodes/cc-fonts.el (c-font-lock-declarations): Adapt to deal with
c-block-stmt-1-2-key.
2013-07-27 12:07:43 +00:00
Michael Mauger
3d012865be
* progmodes/sql.el Version 3.3
...
(sql-product-alist): Improve oracle :prompt-cont-regexp.
(sql-starts-with-prompt-re, sql-ends-with-prompt-re): New functions.
(sql-interactive-remove-continuation-prompt): Rewrite, use
functions above. Fix continuation prompt and complete output line
handling.
(sql-redirect-one, sql-execute): Use `read-only-mode' on
redirected output buffer.
(sql-mode): Restore deleted code (Bug#13591).
2013-07-23 20:25:53 -04:00
Stefan Monnier
0ac26976f1
* lisp/progmodes/subword.el: Fix boundary case.
...
(subword-forward-regexp): Make it a constant. Wrap optional \\W in its
own group.
(subword-backward-regexp): Make it a constant.
(subword-forward-internal): Don't treat a trailing capital as the
beginning of a word.
* test/automated/subword-tests.el: New file.
Fixes: debbugs:13758
2013-07-22 12:25:32 -04:00
Glenn Morris
c4074c9f63
Tweak some message calls in gdb-mi.el
...
* lisp/progmodes/gdb-mi.el (gdb-delete-handler, gdb-stopped):
Let `message' do the formatting.
(def-gdb-preempt-display-buffer): Add explicit format.
2013-07-20 12:25:05 -07:00
Glenn Morris
f0398ec17f
Merge from emacs-24; up to 2012-12-31T11:35:13Z!rudalics@gmx.at
2013-07-20 12:20:33 -07:00
Richard Copley
188c1ae603
* gdb-mi.el (gdb-done-or-error): Guard against "%" in gdb output (tiny change)
...
Fixes: debbugs:14127
2013-07-18 12:56:08 -04:00
Dmitry Gutov
ac72c08d12
* lisp/progmodes/ruby-mode.el (ruby-block-beg-keywords): Inline.
...
(ruby-font-lock-keyword-beg-re): Extract from
`ruby-font-lock-keywords'.
2013-07-16 23:16:51 +04:00
Dmitry Gutov
77aea2fbb3
* lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): Do not
...
highlight question marks in the method names as strings.
2013-07-16 18:47:23 +04:00
Paul Eggert
3af1c8684e
Spelling fixes.
2013-07-13 22:18:48 -07:00
Dmitry Gutov
2ce3c56586
* lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): Highlight
...
conversion methods on Kernel.
2013-07-13 23:10:19 +04:00
Alan Mackenzie
2cdb769811
progmodes/cc-engine.el (c-forward-decl-or-cast-1): Label CASE 13
...
and comment it out. This out-commenting enables certain C++
declarations to be parsed correctly.
2013-07-13 17:45:07 +00:00
Fabián Ezequiel Gallina
1f0480d4cd
* lisp/progmodes/python.el (python-imenu--build-tree): Fix corner case
...
in nested defuns.
* test/automated/python-tests.el (python-imenu-create-index-2)
(python-imenu-create-index-3): New tests.
2013-07-12 22:55:58 -03:00
Dmitry Gutov
481861772a
* progmodes/ruby-mode.el (ruby-font-lock-keywords): Simplify the last
...
change.
2013-07-13 03:36:14 +04:00
Dmitry Gutov
0880a9520e
* lisp/progmodes/ruby-mode.el (ruby-percent-literals-beg-re):
...
(ruby-syntax-expansion-allowed-p): Support array of symbols, for
Ruby 2.0.
(ruby-font-lock-keywords): Distinguish calls to functions with
module-like names from module references. Highlight character
literals.
2013-07-13 00:28:53 +04:00
Sergio Durigan Junior
a7d8babb09
Fix bug #14847 with continued GDB command lines in gdb-mi.el.
...
lisp/progmodes/gdb-mi.el (gdb-strip-string-backslash): New function.
(gdb-send): Handle continued commands.
2013-07-12 21:17:17 +03:00
Glenn Morris
539a920cda
Remove some more reimplementations of cl-lib functions
...
* lisp/doc-view.el: Require cl-lib at runtime too.
(doc-view-remove-if): Remove.
(doc-view-search-next-match, doc-view-search-previous-match):
Use cl-remove-if.
* lisp/edmacro.el: Require cl-lib at runtime too.
(edmacro-format-keys, edmacro-parse-keys): Use cl-mismatch, cl-subseq.
(edmacro-mismatch, edmacro-subseq): Remove.
* lisp/filesets.el: Comments.
* lisp/shadowfile.el: Require cl-lib.
(shadow-remove-if): Remove.
(shadow-set-cluster, shadow-shadows-of-1, shadow-remove-from-todo):
Use cl-remove-if.
* lisp/wid-edit.el: Require cl-lib.
(widget-choose): Use cl-remove-if.
(widget-remove-if): Remove.
* lisp/progmodes/ebrowse.el: Require cl-lib at runtime too.
(ebrowse-delete-if-not): Remove.
(ebrowse-browser-buffer-list, ebrowse-member-buffer-list)
(ebrowse-tree-buffer-list, ebrowse-same-tree-member-buffer-list):
Use cl-delete-if-not.
2013-07-11 20:54:57 -07:00
Ted Zlatanov
c7a4d3688e
* progmodes/cfengine.el: Do not indent inside continued strings.
2013-07-10 10:34:13 -04:00
Dmitry Gutov
70c46b2816
* lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): Remove extra
...
"autoload". Remove "warn lower camel case" section, previously
commented out. Highlight negation char. Do not highlight the
target in singleton method definitions.
2013-07-09 05:17:48 +04:00
Andreas Schwab
f7a0389779
Fixes: debbugs:14826
...
* progmodes/sh-script.el (sh-read-variable): Remove interactive
spec.
2013-07-08 20:49:53 +02:00
Dmitry Gutov
56f75efcbc
* lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): Highlight more
...
keywords and built-ins.
2013-07-03 19:46:45 +04:00
Dmitry Gutov
3086ca2e2c
* lisp/progmodes/ruby-mode.el (ruby-move-to-block): When we're at a
...
middle of block statement initially, lower the depth. Remove
FIXME comment, not longer valid. Remove middle of block statement
detection, no need to do that anymore since we've been using
`ruby-parse-region' here.
2013-07-03 05:02:18 +04:00
Dmitry Gutov
6dbafa3000
* lisp/progmodes/ruby-mode.el (ruby-syntax-propertize-function): Don't
...
start heredoc inside a string or comment.
2013-06-30 06:23:10 +04:00
Stefan Monnier
120597093d
* lisp/emacs-lisp/package.el: Include obsolete packages from archives.
...
Use lexical-binding.
(package-archive-contents): Change format; include obsolete packages.
(package-desc): Use `dir' to mark builtin packages.
(package--from-builtin): Set the `dir' field to `builtin'.
(generated-autoload-file, version-control): Declare.
(package-compute-transaction): Change first arg and return value to be
lists of package-descs. Adjust to new package-archive-contents format.
(package--add-to-archive-contents): Adjust to new
package-archive-contents format.
(package-download-transaction): Arg is now a list of package-descs.
(package-install): If `pkg' is a package name, pass it as
a requirement, so it is subject to the usual (e.g. disabled) checks.
(describe-package): Accept package-desc as well.
(describe-package-1): Describe a specific package-desc. Add links to
other package-descs for the same package name.
(package-menu-describe-package): Pass the actual package-desc.
(package-menu-mode): Add to tabulated-list-revert-hook so revert-buffer
works correctly.
(package-desc-status): New function.
(package-menu--refresh): New function, extracted
from package-menu--generate.
(package-menu--generate): Use it.
(package-delete): Update package-alist.
(package-menu-execute): Don't call package-initialize.
* lisp/progmodes/idlw-toolbar.el, lisp/progmodes/idlw-shell.el,
lisp/progmodes/idlw-help.el, lisp/progmodes/idlw-complete-structtag.el,
lisp/progmodes/ebnf-yac.el, lisp/progmodes/ebnf-otz.el,
lisp/progmodes/ebnf-iso.el, lisp/progmodes/ebnf-ebx.el,
lisp/progmodes/ebnf-dtd.el, lisp/progmodes/ebnf-bnf.el,
lisp/progmodes/ebnf-abn.el, lisp/emacs-lisp/package-x.el,
lisp/emacs-lisp/cl-seq.el, lisp/emacs-lisp/cl-macs.el
lisp/cedet/data-debug.el, lisp/cedet/cedet-idutils.el:
Neuter the "Version:" header.
2013-06-25 12:13:49 -04:00
Dmitry Gutov
12adebe94e
* lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): Move `catch',
...
add some more keyword-like methods.
http://lists.gnu.org/archive/html/emacs-devel/2013-06/msg00911.html
2013-06-22 17:25:43 +04:00
Glenn Morris
3d94f3ad81
* lisp/progmodes/gdb-mi.el (gdb-mapcar*): Remove, replace with cl-mapcar.
2013-06-21 20:35:51 -04:00
Dmitry Gutov
f72e2fdb68
* lisp/progmodes/ruby-mode.el (auto-mode-alist): Do not use
...
`regexp-opt', it breaks the build during dumping.
2013-06-22 04:11:24 +04:00
Dmitry Gutov
7bcf66280c
* progmodes/ruby-mode.el (auto-mode-alist): Forgot "Guardfile".
2013-06-22 03:20:54 +04:00
Dmitry Gutov
5cf8176d55
* lisp/progmodes/ruby-mode.el (auto-mode-alist): Consolidate different
...
entries into one regexp and add more *file-s.
2013-06-22 03:14:38 +04:00
Dmitry Gutov
73eab938a0
* lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): Highlight
...
keyword-like methods on Kernel and Module with
font-lock-builtin-face.
2013-06-22 03:07:49 +04:00
Eduard Wiebe
c5b0993e5f
Extend flymake's warning predicate to be a function. Test suite for flymake.
...
* lisp/progmodes/flymake.el (flymake-warning-predicate): New.
(flymake-parse-line): Use it.
(flymake-warning-re): Make obsolete alias to
`flymake-warning-predicate'.
* doc/misc/flymake.texi (Parsing the output, Customizable variables):
Add reference to `flymake-warning-predicate'.
* test/automated/flymake-tests.el:
* test/automated/flymake/warnpred/Makefile
* test/automated/flymake/warnpred/test.c
* test/automated/flymake/warnpred/test.pl: New files.
Fixes: debbugs:14217
2013-06-21 10:36:13 -04:00
Leo Liu
62efb35e42
* progmodes/octave.el (octave-mode): Backward compatibility fix.
2013-06-21 14:45:37 +08:00
Juanma Barranquero
01a439012b
Revert 2013-06-20T00:39:59Z!lekktu@gmail.com.
2013-06-20 12:28:23 +02:00
Juanma Barranquero
5fc0acc0f5
lisp/progmodes/prog-mode.el: Remove autoload cookies.
2013-06-20 02:39:59 +02:00
Glenn Morris
1d653303fc
Quieten cperl-mode compilation
...
* lisp/progmodes/cperl-mode.el (ps-bold-faces, ps-italic-faces)
(ps-underlined-faces): Declare.
2013-06-19 00:24:44 -07:00
Glenn Morris
bdd779ec7d
Silence idlwave compilation
...
* lisp/progmodes/idlwave.el (func-menu): Only set it up on XEmacs.
(speedbar-add-supported-extension): Declare.
2013-06-19 00:21:59 -07:00
Leo Liu
ad5281251b
* progmodes/octave.el (octave-help): Fix regexp.
2013-06-19 10:02:30 +08:00
Dmitry Gutov
d1bbba4fa5
* lisp/progmodes/ruby-mode.el (ruby-syntax-before-regexp-re):
...
Distinguish ternary operator tokens from slash symbol and slash
char literal.
2013-06-19 02:17:56 +04:00