Chong Yidong
257210319f
Merge from emacs-24 branch; up to 2012-05-01T10:20:43Z!rgm@gnu.org
2012-07-21 14:13:23 +08:00
Leo Liu
2c73e345cc
Use match-string-no-properties instead in c-defun-name
...
for consistency.
2012-07-21 09:41:48 +08:00
Leo Liu
3646bcd6b8
* lisp/progmodes/cc-cmds.el (c-defun-name): Handle objc selectors properly.
...
Fixes: debbugs:7879
2012-07-21 05:18:52 +08:00
Jan Djärv
fe1a523fd9
Backport: Recognize Objective-C methods also in c-defun-name
...
Fixes: debbugs:7879
2012-07-21 03:59:49 +08:00
Leo Liu
542dfbde70
* progmodes/cc-langs.el (c-symbol-start): Include char _.
...
Fixes: debbugs:11986
2012-07-20 19:36:41 +08:00
Dmitry Gutov
c28662a8dc
* lisp/progmodes/ruby-mode.el (ruby-parse-partial): No error when end
...
up inside string symbol literal.
* test/automated/ruby-mode-tests.el: New file with one test.
Fixes: debbugs:11923
2012-07-20 07:10:25 -04:00
Fabián Ezequiel Gallina
1d29cc7da7
Enhancements to ppss related code (thanks Stefan).
...
* progmodes/python.el (python-indent-context)
(python-indent-calculate-indentation, python-indent-dedent-line)
(python-indent-electric-colon, python-nav-forward-block)
(python-mode-abbrev-table)
(python-info-assignment-continuation-line-p): Simplified checks
for ppss context.
(python-info-continuation-line-p): Cleanup.
(python-info-ppss-context): Do not catch 'quote.
(python-info-ppss-context-type)
(python-info-ppss-comment-or-string-p): Simplify.
2012-07-18 21:55:55 -03:00
Fabián Ezequiel Gallina
d617c457bd
progmodes/python.el: Set file local vars at end of file and clean tabs.
2012-07-18 16:04:06 -03:00
Fabián Ezequiel Gallina
d583cbe681
* progmodes/python.el: Enhancements to eldoc support.
...
(python-info-current-symbol): New function.
(python-eldoc-at-point): Use python-info-current-symbol.
(python-info-current-defun): Fix cornercase on first defun scan.
(python-eldoc--get-doc-at-point): Use python-info-current-symbol
and signal error when no inferior python process is available.
2012-07-18 15:40:03 -03:00
Masatake YAMATO
7f5331cc80
* lisp/progmodes/sh-script.el (sh-imenu-generic-expression):
...
Capture a function with `function' keyword and without parentheses
like "function FOO".
Fixes: debbugs:11856
2012-07-18 09:40:57 -04:00
Stefan Monnier
d0b822e38a
* lisp/userlock.el, emacs-lisp/map-ynp.el: Declare part of `emacs' package.
...
* lisp/progmodes/bug-reference.el, lisp/misearch.el: Provide themselves.
Fixes: debbugs:11915
2012-07-18 07:44:13 -04:00
Stefan Monnier
95bdccb782
* lisp/progmodes/cperl-mode.el (cperl-unwind-to-safe): Don't inf-loop at end
...
of narrowed buffer.
Fixes: debbugs:11966
2012-07-18 05:33:09 -04:00
Fabián Ezequiel Gallina
0a60bc1071
New utility functions + python-info-ppss-context fix.
...
* progmodes/python.el (python-info-beginning-of-block-statement-p)
(python-info-ppss-comment-or-string-p): New functions.
(python-info-ppss-context): Small fix for string check.
Fixes: debbugs:11910
2012-07-17 17:27:49 -03:00
Fabián Ezequiel Gallina
bcdc27d7d4
Final renames and doc fixes for movement commands.
...
* progmodes/python.el (python-nav-beginning-of-statement): Rename
from python-nav-statement-start.
(python-nav-end-of-statement): Rename from
python-nav-statement-end.
(python-nav-beginning-of-block): Rename from
python-nav-block-start.
(python-nav-end-of-block): Rename from python-nav-block-end.
Fixes: debbugs:11899
2012-07-17 15:02:53 -03:00
Fabián Ezequiel Gallina
191da00ee2
* progmodes/python.el (python-shell-send-string-no-output): Allow
...
accept-process-output to quit, keeping shell process ready for
future interactions.
Fixes: debbugs:11868
2012-07-17 13:47:58 -03:00
Stefan Monnier
4dc7c8d579
Merge from emacs-24
2012-07-17 07:52:00 -04:00
Stefan Monnier
2143fa3267
* lisp/progmodes/cc-engine.el (c-forward-sws, c-backward-sws):
...
Avoid spuriously marking the buffer as modified because of c-is-sws.
2012-07-17 07:40:23 -04:00
Stefan Monnier
efc26dbecd
* lisp/progmodes/sh-script.el (sh-syntax-propertize-function): Mark "${#VAR"
...
as not-a-comment.
* test/indent/shell.sh: Add test case for ${#VAR}.
Fixes: debbugs:11946
2012-07-17 04:38:12 -04:00
Fabián Ezequiel Gallina
758e556a7a
* progmodes/python.el: Simplified imenu implementation.
...
(python-nav-jump-to-defun): Remove command.
(python-mode-map): Use `imenu' instead.
(python-nav-list-defun-positions-cache)
(python-imenu-include-defun-type, python-imenu-make-tree)
(python-imenu-subtree-root-label, python-imenu-index-alist):
Remove vars.
(python-nav-list-defun-positions, python-nav-read-defun)
(python-imenu-tree-assoc, python-imenu-make-element-tree)
(python-imenu-make-tree, python-imenu-create-index): Remove
functions.
(python-mode): Update to interact with imenu by setting
`imenu-extract-index-name-function' only.
2012-07-16 14:18:39 -03:00
Fabián Ezequiel Gallina
032d23ab66
* progmodes/python.el: Enhancements to navigation commands.
...
(python-nav-backward-sentence)
(python-nav-forward-sentence): Remove.
(python-nav-backward-statement, python-nav-forward-statement)
(python-nav-statement-start, python-nav-statement-end)
(python-nav-backward-block, python-nav-forward-block)
(python-nav-block-start, python-nav-block-end)
(python-nav-forward-sexp-function)
(python-info-current-line-comment-p)
(python-info-current-line-empty-p): New functions.
(python-indent-context): Use `python-nav-statement-start'.
2012-07-16 10:13:01 -03:00
Leo Liu
28ca98ac52
Add fringe bitmap indicators for flymake
...
Fixes: debbugs:11253
2012-07-14 20:02:22 +08:00
Jan Djärv
044080727c
*** empty log message ***
2012-07-14 11:08:36 +02:00
Michael Albinus
2bb1ae5553
* progmodes/sql.el (sql-comint): Suppress the check for program on
...
remote hosts. Reported by Francis Devereux <francis@devrx.org>.
(Bug#11908)
2012-07-13 16:58:12 +02:00
Stefan Monnier
a464a6c73a
More CL cleanups and reduction of use of cl.el.
...
* woman.el, winner.el, vc/vc-rcs.el, vc/vc-hooks.el, vc/vc-hg.el:
* vc/vc-git.el, vc/vc-dir.el, vc/vc-bzr.el, vc/vc-annotate.el:
* textmodes/tex-mode.el, textmodes/sgml-mode.el, tar-mode.el:
* strokes.el, ses.el, server.el, progmodes/js.el, progmodes/gdb-mi.el:
* progmodes/flymake.el, progmodes/ebrowse.el, progmodes/compile.el:
* play/tetris.el, play/snake.el, play/pong.el, play/landmark.el:
* play/hanoi.el, play/decipher.el, play/5x5.el, nxml/nxml-mode.el:
* net/secrets.el, net/quickurl.el, midnight.el, mail/footnote.el:
* image-dired.el, ibuffer.el, ibuf-macs.el, ibuf-ext.el, hexl.el:
* eshell/eshell.el, eshell/esh-io.el, eshell/esh-ext.el:
* eshell/esh-cmd.el, eshell/em-ls.el, eshell/em-hist.el:
* eshell/em-cmpl.el, eshell/em-banner.el:
* url/url.el, url/url-queue.el, url/url-parse.el, url/url-http.el:
* url/url-future.el, url/url-dav.el, url/url-cookie.el:
* calendar/parse-time.el, test/eshell.el: Use cl-lib.
* wid-browse.el, wdired.el, vc/vc.el, vc/vc-mtn.el, vc/vc-cvs.el:
* vc/vc-arch.el, tree-widget.el, textmodes/texinfo.el:
* textmodes/refill.el, textmodes/css-mode.el, term/tvi970.el:
* term/ns-win.el, term.el, shell.el, ps-samp.el:
* progmodes/perl-mode.el, progmodes/pascal.el, progmodes/gud.el:
* progmodes/glasses.el, progmodes/etags.el, progmodes/cwarn.el:
* play/gamegrid.el, play/bubbles.el, novice.el, notifications.el:
* net/zeroconf.el, net/xesam.el, net/snmp-mode.el, net/mairix.el:
* net/ldap.el, net/eudc.el, net/browse-url.el, man.el:
* mail/mailheader.el, mail/feedmail.el:
* url/url-util.el, url/url-privacy.el, url/url-nfs.el, url/url-misc.el:
* url/url-methods.el, url/url-gw.el, url/url-file.el, url/url-expand.el:
Dont use CL.
* ibuf-ext.el (ibuffer-mark-old-buffers): Use float-time.
* eshell/esh-opt.el (eshell-eval-using-options): Quote code with
`lambda' rather than with `quote'.
(eshell-do-opt): Adjust accordingly.
(eshell-process-option): Simplify.
* eshell/esh-var.el:
* eshell/em-script.el: Require `esh-opt' for eshell-eval-using-options.
* emacs-pcase.el (pcase--dontcare-upats, pcase--let*)
(pcase--expand, pcase--u1): Rename pcase's internal `dontcare' pattern
to `pcase--dontcare'.
* emacs-cl.el (labels): Mark obsolete.
(cl--letf, letf): Move to cl-lib.
(cl--letf*, letf*): Remove.
* emacs-cl-lib.el (cl-nth-value): Use defalias.
* emacs-cl-macs.el (cl-dolist, cl-dotimes): Add indent rule.
(cl-progv): Rewrite.
(cl--letf, cl-letf): Move from cl.el.
(cl-letf*): New macro.
* emacs-cl-extra.el (cl--progv-before, cl--progv-after): Remove.
2012-07-11 19:13:41 -04:00
Stefan Monnier
f58e0fd503
Reduce use of (require 'cl).
...
* admin/bzrmerge.el: Use cl-lib.
* leim/quail/hangul.el: Don't require CL.
* leim/quail/ipa.el: Use cl-lib.
* vc/smerge-mode.el, vc/pcvs.el, vc/pcvs-util.el, vc/pcvs-info.el:
* vc/diff-mode.el, vc/cvs-status.el, uniquify.el, scroll-bar.el:
* register.el, progmodes/sh-script.el, net/gnutls.el, net/dbus.el:
* msb.el, mpc.el, minibuffer.el, international/ucs-normalize.el:
* international/quail.el, info-xref.el, imenu.el, image-mode.el:
* font-lock.el, filesets.el, edmacro.el, doc-view.el, bookmark.el:
* battery.el, avoid.el, abbrev.el: Use cl-lib.
* vc/pcvs-parse.el, vc/pcvs-defs.el, vc/log-view.el, vc/log-edit.el:
* vc/diff.el, simple.el, pcomplete.el, lpr.el, comint.el, loadhist.el:
* jit-lock.el, international/iso-ascii.el, info.el, frame.el, bs.el:
* emulation/crisp.el, electric.el, dired.el, cus-dep.el, composite.el:
* calculator.el, autorevert.el, apropos.el: Don't require CL.
* emacs-bytecomp.el (byte-recompile-directory, display-call-tree)
(byte-compile-unfold-bcf, byte-compile-check-variable):
* emacs-byte-opt.el (byte-compile-trueconstp)
(byte-compile-nilconstp):
* emacs-autoload.el (make-autoload): Use pcase.
* face-remap.el (text-scale-adjust): Simplify pcase patterns.
2012-07-10 07:51:54 -04:00
Stefan Monnier
aa7aaf8f0b
* lisp/progmodes/sh-script.el (sh-syntax-propertize-function): Fix last
...
change.
Fixes: debbugs:11826
2012-07-09 09:54:50 -04:00
Paul Eggert
c4444d16dc
Rename configure.in to configure.ac.
...
Fixes: debbugs:11603
2012-07-08 21:52:49 -07:00
Glenn Morris
b544fef2ac
Tweak bug-reference-bug-regexp setting
...
* lisp/progmodes/bug-reference.el (bug-reference-bug-regexp):
Allow linking to specific messages in debbugs reports (eg 123#5).
2012-07-02 22:16:11 -04:00
Glenn Morris
c8d3a25c09
Merge from emacs-24; up to 2012-04-30T11:57:47Z!sdl.web@gmail.com
2012-06-28 23:28:37 -07:00
Stefan Monnier
d5c6faf921
* lisp/emacs-lisp/cl.el (flet): Mark obsolete.
...
* lisp/emacs-lisp/cl-macs.el (cl-flet*): New macro.
* lisp/vc/vc-rcs.el (vc-rcs-annotate-command, vc-rcs-parse):
* lisp/progmodes/js.el (js-c-fill-paragraph):
* lisp/progmodes/ebrowse.el (ebrowse-switch-member-buffer-to-sibling-class)
(ebrowse-switch-member-buffer-to-derived-class):
* test/automated/ert-x-tests.el (ert-test-run-tests-interactively-2):
* lisp/play/5x5.el (5x5-solver): Use cl-flet.
Fixes: debbugs:11780
2012-06-27 11:11:28 -04:00
Sam Steingold
d2c32364fd
* lisp/files.el (file-name-base): New convenience function.
...
* lisp/autoinsert.el, lisp/cus-dep.el, lisp/doc-view.el, lisp/image-dired.el,
* lisp/woman.el, lisp/eshell/esh-cmd.el, lisp/progmodes/ada-xref.el,
* lisp/progmodes/cc-defs.el, lisp/progmodes/cperl-mode.el,
* lisp/progmodes/flymake.el, lisp/progmodes/gud.el, lisp/progmodes/idlwave.el,
* lisp/textmodes/ispell.el, lisp/textmodes/reftex-ref.el,
* lisp/textmodes/tex-mode.el: Use it.
Did not touch cedet and org because they are maintained elsewhere.
2012-06-26 12:23:01 -04:00
Glenn Morris
8c3a19aba0
* lisp/progmodes/which-func.el (which-func-format): Bump :version.
2012-06-25 00:11:53 -07:00
Masatake YAMATO
26e8548ea1
* lisp/progmodes/which-func.el (which-func-format): Add mouse-face.
...
Fixes: debbugs:11698
2012-06-25 00:11:03 -07:00
Chong Yidong
0e9e6c6abc
Mark python-mode abbrevs as system abbrevs.
...
* progmodes/python.el (python-skeleton-define): Mark abbrevs as
system abbrevs.
* ansi-color.el (ansi-color-apply-on-region): Doc fix.
2012-06-23 17:28:10 +08:00
Glenn Morris
9e29ca4f48
Add some f90 preprocessor font-lock (bug#10499)
...
* lisp/progmodes/f90.el (f90-font-lock-keywords-2):
Add some preprocessor elements.
2012-06-21 15:31:49 -04:00
Stefan Monnier
bde2ab6f5b
* lisp/progmodes/cperl-mode.el (cperl-update-syntaxification):
...
Use syntax-propertize.
Fixes: debbugs:11739
2012-06-21 12:49:21 -04:00
Glenn Morris
68f1241189
* lisp/progmodes/python.el (python-mode): Derive from prog-mode.
2012-06-19 09:04:47 -07:00
Stefan Monnier
25f09295fa
* lisp/progmodes/python.el (python-rx-constituents): Move backquote.
...
(python-skeleton-define, python-define-auxiliary-skeleton): Use `declare'.
2012-06-18 16:41:23 -04:00
Glenn Morris
35647f79fd
Fix python.el obsolescence versions
...
* lisp/progmodes/python.el (python-proc, python-buffer)
(python-send-receive, python-send-string): Fix obsolete versions.
2012-06-18 14:23:59 -04:00
Glenn Morris
a633e6a2b4
Add coding cookie
2012-06-18 14:04:21 -04:00
Paul Eggert
48d1354eb8
Spelling fixes.
2012-06-17 01:53:31 -07:00
Fabián Ezequiel Gallina
2d7b84eab6
lisp/progmodes/python.el: Updated Copyright years.
2012-06-14 23:22:19 -03:00
Fabián Ezequiel Gallina
315f675857
Merge from trunk
2012-06-14 23:05:43 -03:00
Fabián Ezequiel Gallina
9ddf3c74c8
* lisp/progmodes/python.el: (python-indent, python-guess-indent,
...
python-use-skeletons): New obsolete variable aliases.
(python-indent-guess-indent-offset): Make interactive.
2012-06-14 22:33:57 -03:00
Chong Yidong
f1a4e679f3
Various minor variable/hook cleanups.
...
* 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.
2012-06-12 13:47:14 +08:00
Glenn Morris
09e06855ca
Change face used for fortran.el directives
...
* lisp/progmodes/fortran.el (fortran-font-lock-keywords-3):
Use preprocessor face for directives.
(fortran-directive-re): Doc fix.
2012-06-11 17:07:58 -04:00
Chong Yidong
4b56d0fe74
Face cleanups. Remove some uses of old-style face spec and :bold/:italic.
...
* 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.
2012-06-09 00:39:49 +08:00
Michael Albinus
eed0bb9190
* progmodes/python.el (python-send-region): Ensure, that the
...
temporary file is created also in the remote case.
2012-06-06 15:05:11 +02:00
Chong Yidong
5205d6f6a8
Fix legibility of compilation mode-line messages.
...
* 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
2012-06-03 22:37:13 +08:00
Jack Duthen
757ee65741
Improve ediff and which-func integration.
...
* lisp/progmodes/which-func.el (which-func-update-ediff-windows): New
function. Use it in ediff-select-hook.
Fixes: debbugs:11478
2012-06-03 19:10:44 +08:00