Commit graph

105102 commits

Author SHA1 Message Date
Stefan Monnier
e95a67dc75 Replace lexical-let by lexical-binding (except Gnus, CEDET, ERT).
* lisp/term/ns-win.el (ns-define-service):
* lisp/progmodes/pascal.el (pascal-goto-defun):
* lisp/progmodes/js.el (js--read-tab):
* lisp/progmodes/etags.el (tags-lazy-completion-table):
* lisp/emacs-lisp/syntax.el (syntax-propertize-via-font-lock):
* lisp/emacs-lisp/ewoc.el (ewoc--wrap):
* lisp/emacs-lisp/assoc.el (aput, adelete, amake):
* lisp/doc-view.el (doc-view-convert-current-doc):
* lisp/url/url.el (url-retrieve-synchronously):
* lisp/vc/diff.el (diff-no-select): Replace lexical-let by lexical-binding.
2012-04-26 08:43:28 -04:00
Eli Zaretskii
4c3fa1d9ad Allow word wrap together with whitespace-mode (bug #11341)
src/xdisp.c (IT_DISPLAYING_WHITESPACE): In addition to the loaded
 display element, check also the underlying string or buffer
 character.
2012-04-26 13:49:29 +03:00
Eli Zaretskii
1c6900d923 Don't disable Unicode menus on Windows NT and later due to random errors.
src/w32menu.c: Include w32heap.h.
 (add_menu_item): If the call to AppendMenuW (via
 unicode_append_menu) fails, disable Unicode menus only if we are
 running on Windows 9X/Me.
2012-04-26 13:07:35 +03:00
Chong Yidong
dce04f7f90 * image.el (image-type-from-buffer): Only return supported image type.
Fixes: debbugs:9045
2012-04-26 16:43:20 +08:00
Chong Yidong
cb3e7ae07a Fixes for diff-hunk-kill.
* lisp/vc/diff-mode.el (diff-beginning-of-hunk): Return a meaningful
value, for symmetry with diff-end-of-hunk.
(diff-split-hunk, diff-find-source-location)
(diff-ignore-whitespace-hunk, diff-refine-hunk): Use it.
(diff-bounds-of-hunk, diff-bounds-of-file): New functions.
(diff-restrict-view, diff-hunk-kill, diff-file-kill): Use them to
compute the relevant hunk or file properly.
(diff-file-junk-re): Add bzr's "modified file" tag.

Fixes: debbugs:6041 debbugs:6005
2012-04-26 16:00:47 +08:00
Chong Yidong
8b71081d30 Allow undoing in read-only diff-mode buffers.
* lisp/vc/diff-mode.el (diff-undo): New command.
(diff-mode-shared-map): Bind it to / and [remap undo].

Fixes: debbugs:5302
2012-04-26 11:43:32 +08:00
Stefan Monnier
0d42eb3e96 * lisp/vc/vc-mtn.el:
* lisp/vc/vc-hg.el:
* lisp/vc/vc-git.el:
* lisp/vc/vc-dir.el:
* lisp/vc/vc-cvs.el:
* lisp/vc/vc-bzr.el:
* lisp/vc/vc-arch.el:
* lisp/vc/vc.el: Replace lexical-let by lexical-binding.
* lisp/minibuffer.el (lazy-completion-table): Avoid ((λ ...) ...).
* lisp/emacs-lisp/cl-macs.el (lexical-let): Fix use in lexical-binding.
* lisp/emacs-lisp/cconv.el (cconv-analyse-form): Warn use of ((λ ...) ...).
2012-04-25 23:18:47 -04:00
Chong Yidong
f08ae1c9b5 Adapt ediff window handling to multi-tty.
* vc/ediff-init.el: Always define ediff-pixel-width/height.

* vc/ediff-wind.el (ediff-setup-windows-default): New function.
(ediff-window-setup-function): Use it as the default, to set up
windows based on whether the current frame is graphical.
(ediff-choose-window-setup-function-automatically): Make obsolete.

Fixes: debbugs:2138
2012-04-26 11:04:36 +08:00
Daiki Ueno
823ad1d7e8 Revive plstore editing mode previously reverted due to feature freeze. 2012-04-26 11:03:19 +09:00
Glenn Morris
8a4ca8e339 * doc/lispref/elisp-covers.texi: Remove file.
Nothing includes or refers to it, and it has not been updated since Emacs 19.
2012-04-25 18:51:41 -07:00
Glenn Morris
8191c3bda8 * doc/lispref/front-cover-1.texi: Remove file.
Nothing includes or refers to it, and it has not been updated since Emacs 19.
2012-04-25 18:49:03 -07:00
Glenn Morris
562e638f78 Remove doc/lispref/tindex.pl
I think it is not needed any more.

* doc/lispref/tindex.pl: Remove file.
* make-dist: No more doc/lispref/tindex.pl.
2012-04-25 18:47:05 -07:00
Glenn Morris
674ea9c6e4 * doc/lispref/Makefile.in (srcs): Remove back.texi (which is unused).
* doc/lispref/makefile.w32-in (srcs): Same.
2012-04-25 21:08:03 -04:00
Stefan Monnier
dd2ac746d4 Add support for completion of quoted/escaped data. 2012-04-25 15:00:18 -04:00
Stefan Monnier
cc356a5d47 Remove unnecessary use of minibuffer-completing-file-name.
* lisp/ffap.el: Remove old code for obsolete package.
(ffap-complete-as-file-p): Remove.
* lisp/mh-e/mh-utils.el (minibuffer-completing-file-name): Don't declare.
2012-04-25 14:57:09 -04:00
Stefan Monnier
b4ff4f1fcb Use completion-table-with-quoting for comint and pcomplete.
* lisp/comint.el (comint--unquote&requote-argument)
(comint--unquote-argument, comint--requote-argument): New functions.
(comint--unquote&expand-filename, comint-unquote-filename): Obsolete.
(comint-quote-filename): Use regexp-opt-charset.
(comint--common-suffix, comint--common-quoted-suffix)
(comint--table-subvert): Remove.
(comint-unquote-function, comint-requote-function): New vars.
(comint--complete-file-name-data): Use them with
completion-table-with-quoting.
* lisp/pcmpl-unix.el (pcomplete/scp): Use completion-table-subvert.
* lisp/pcomplete.el (pcomplete-arg-quote-list)
(pcomplete-quote-arg-hook, pcomplete-quote-argument): Obsolete.
(pcomplete-unquote-argument-function): Default to non-nil.
(pcomplete-unquote-argument): Simplify.
(pcomplete--common-quoted-suffix): Remove.
(pcomplete-requote-argument-function): New var.
(pcomplete--common-suffix): New function.
(pcomplete-completions-at-point): Use completion-table-with-quoting
and completion-table-subvert.
2012-04-25 14:53:57 -04:00
Stefan Monnier
79c4eeb450 * lisp/minibuffer.el: Use completion-table-with-quoting for read-file-name.
(minibuffer--double-dollars): Preserve properties.
(completion--sifn-requote): New function.
(completion--file-name-table): Rewrite using it and c-t-with-quoting.
2012-04-25 14:42:15 -04:00
Stefan Monnier
ef24141c36 * lisp/minibuffer.el: Add support for completion of quoted/escaped data.
(completion-table-with-quoting, completion-table-subvert): New funs.
(completion--twq-try, completion--twq-all): New functions.
(completion--nth-completion): New function.
(completion-try-completion, completion-all-completions): Use it.
2012-04-25 14:40:42 -04:00
Leo Liu
784e7d6eeb * lisp/progmodes/python.el (python-pdbtrack-get-source-buffer): Use
compilation-message if available to find real filename.
2012-04-26 00:46:01 +08:00
Leo Liu
daf75653c2 * progmodes/python.el (python-send-region): Add suffix .py 2012-04-25 23:23:19 +08:00
Chong Yidong
07875ee72b Fix whitespace highlighting of context diffs.
* lisp/vc/diff-mode.el (diff-setup-whitespace): New function.
(diff-mode): Use it.

* lisp/vc/diff.el (diff-sentinel):
* lisp/vc/vc.el (vc-diff-finish): Call diff-setup-whitespace to assign
Whitespace mode variables based on diff style.

Fixes: debbugs:8612
2012-04-25 23:06:51 +08:00
Leo Liu
5055880d39 * lisp/files.el (auto-mode-alist): Use javascript-mode instead. 2012-04-25 22:47:33 +08:00
Alex Harsanyi
db9b177bcc Sync with soap-client repository. Support SOAP simpleType. (Bug#10331)
* soap-client.el (soap-resolve-references-for-sequence-type)
(soap-resolve-references-for-array-type): hack to prevent self
references, see Bug#9.
(soap-parse-envelope): report the contents of the 'detail' node
when receiving a fault reply.
(soap-parse-envelope): report the contents of the entire 'detail' node.

* soap-inspect.el (soap-sample-value-for-simple-type)
(soap-inspect-simple-type): new function

* soap-client.el (soap-simple-type): new struct
(soap-default-xsd-types, soap-default-soapenc-types)
(soap-decode-basic-type, soap-encode-basic-type): support
unsignedInt and double basic types
(soap-resolve-references-for-simple-type)
(soap-parse-simple-type, soap-encode-simple-type): new function
(soap-parse-schema): parse xsd:simpleType declarations

* soap-client.el (soap-default-xsd-types)
(soap-default-soapenc-types): add integer, byte and anyURI types
(soap-parse-complex-type-complex-content): use `soap-wk2l' to find
the local name of "soapenc:Array"
(soap-decode-basic-type, soap-encode-basic-type): support encoding
decoding integer, byte and anyURI xsd types.
2012-04-25 12:28:29 +02:00
Chong Yidong
1fc6097bfa * cus-edit.el (custom-buffer-create-internal): Update header text. 2012-04-25 16:38:11 +08:00
Eli Zaretskii
afc6df8786 Force interactive-mode in GDB on MS-Windows.
lisp/progmodes/gdb-mi.el (gdb-init-1): Condition Windows-specific
 settings on 'system-type', not on 'window-system'.  On MS-Windows,
 set interactive-mode on in GDB.
2012-04-25 11:07:57 +03:00
Michael Albinus
0268cf45a7 Add `notifications-get-capabilities' of notifications.el. 2012-04-24 23:52:37 +02:00
Michael Albinus
b538063943 * notifications.el (top): Remove unneeded declarations. 2012-04-24 23:47:24 +02:00
Michael Albinus
400386db61 * notifications.el (notifications-get-capabilities): Fix docstring. 2012-04-24 23:44:12 +02:00
Andreas Schwab
42bf82050b * .gdbinit (xpr): Handle USE_2_TAGS_FOR_INTS.
(xgetint): Add missing shift for LSB tags.
2012-04-24 21:05:25 +02:00
Michael Albinus
e43042fe33 * notifications.el (notifications-specification-version): Change to "1.2".
(notifications-notify): Add :action-items, :resident and
:transient hints.  Change "image_data" to "image-data" and
"image_path" to "image-path".
(notifications-get-capabilities): Return a list of keywords.

* os.texi (Notifications): Extend possible notification hints.
2012-04-24 19:56:30 +02:00
Stefan Monnier
1ec00a232a * ruby-mode.el: Handle general delimited literals.
Fixes: debbugs:6286
2012-04-24 13:08:55 -04:00
Stefan Monnier
dfbd787fe6 * lisp/progmodes/ruby-mode.el: Simplify last change, and cleanup code.
(ruby-syntax-propertize-regexp): Remove.
(ruby-syntax-propertize-function): Split regexp into chunks.
Match following code directly.
* test/indent/ruby.rb: New file, to test new syntax-propertize code.
2012-04-24 13:06:12 -04:00
Dmitry Gutov
51a8ea2acf * lisp/progmodes/ruby-mode.el: Handle Cucumber defs (bug#6286).
(ruby-syntax-propertize-regexp): New function.
(ruby-syntax-propertize-function): Use it to handle regexp not preceded
by a special keyword.
2012-04-24 12:00:08 -04:00
Dmitry Gutov
85222d4485 * lisp/progmodes/ruby-mode.el: Handle general delimited literals.
(ruby-syntax-general-delimiters-goto-beg)
(ruby-syntax-propertize-general-delimiters): New functions.
(ruby-syntax-propertize-function): Use them to handle GDL.
(ruby-font-lock-keywords): Move old handling of GDL...
(ruby-font-lock-syntactic-keywords): .. to here.
(ruby-calculate-indent): Adjust indentation for GDL.

Fixes: debbugs:6286
2012-04-24 11:51:14 -04:00
Michael Albinus
b613912bad * notifications.el (notifications-interface)
(notifications-notify-method, notifications-notify)
(notifications-close-notification-method): Fix docstring.
(notifications-get-capabilities-method): New defconst.
(notifications-get-capabilities): New defun.

* os.texi: (Notifications): Add notifications-get-capabilities.
2012-04-24 17:19:07 +02:00
Leo Liu
257440aa1c * lisp/progmodes/python.el: Move hideshow setup to the end. 2012-04-24 22:58:29 +08:00
Martin Rudalics
b1bac16ead Don't clear echo area prematurely when handling select window events (Bug#11304).
* keyboard.c (read_char): Don't wipe echo area for select window
events: These might get delayed via `mouse-autoselect-window'
(Bug#11304).
* window.el (handle-select-window): Clear echo area since this is
no more done by read_char (Bug#11304).
2012-04-24 10:56:31 +02:00
Juanma Barranquero
d69621ccc6 src/gnutls.c: Fix previous change.
(init_gnutls_functions): Protect against (unlikely) manipulation
of :loaded-from data.
2012-04-24 10:35:02 +02:00
Michael Albinus
a59d531e94 Obsoleted argument list of `dbus-register-signal'. 2012-04-24 09:09:27 +02:00
Stefan Monnier
d81bd05990 * lisp/ibuffer.el (ibuffer-mode-map): Bind `/ m' to filter-used-mode
and `/ M' to filter-derived-mode.
* lisp/ibuf-ext.el (ibuffer-list-buffer-modes): Simplify; avoid add-to-list.
(ibuffer-filter-by-mode, ibuffer-filter-by-used-mode)
(ibuffer-mark-by-mode): Use default rather than initial-input.
(ibuffer-filter-by-derived-mode): Autoload and require-match.
2012-04-23 23:40:57 -04:00
Ivan Andrus
c4cf6d91f3 * lisp/ibuf-ext.el (ibuffer-list-buffer-modes): Add `include-parents' arg.
(ibuffer-filter-by-derived-mode): New filter.
* lisp/ibuffer.el (ibuffer-mode-map): Bind to `/ w'.
2012-04-23 22:07:40 -04:00
Juanma Barranquero
02fd101be2 src/gnutls.c (init_gnutls_functions): Fix bug#11311.
The value of :loaded-from is now a cons.
2012-04-24 01:15:08 +02:00
Paul Eggert
89a438bd86 Do not create empty overlays with the evaporate property (Bug#9642).
* buffer.c (Fmove_overlay): Delete an evaporating overlay
if it becomes empty after its bounds are adjusted to fit within
its buffer.  Without this fix, in a nonempty buffer (let ((o
(make-overlay 1 2))) (overlay-put o 'evaporate t) (move-overlay o 0 1))
yields an empty overlay that has the evaporate property, which is
not supposed to happen.
2012-04-23 15:46:35 -07:00
Chong Yidong
7511ded8c9 * subr.el (accept-change-group): Fix arg usage.
Fixes: debbugs:6095
2012-04-23 23:48:22 +08:00
Chong Yidong
46c71e2314 Use proper faces in apropos.el.
* lisp/apropos.el (apropos-symbol, apropos-keybinding, apropos-label)
(apropos-property, apropos-function-button)
(apropos-variable-button, apropos-misc-button): New faces.
(apropos-symbol-face, apropos-keybinding-face)
(apropos-label-face, apropos-property-face, apropos-match-face):
Variables removed.
(apropos-library-button, apropos-format-plist, apropos-print)
(apropos-print-doc, apropos-describe-plist): Callers changed.

Fixes: debbugs:8396
2012-04-23 23:38:48 +08:00
Chong Yidong
922d37d3e8 * apropos.el (apropos-read-pattern): Fix word list splitting.
Fixes: debbugs:11132
2012-04-23 20:44:54 +08:00
Chong Yidong
775c916bd7 Remove non-option variable handling from customize-apropos
and enable use of word lists for customize-apropos-options etc.

* lisp/apropos.el (apropos-read-pattern): Make prompt less cryptic.

* lisp/cus-edit.el (customize-apropos, customize-apropos-options):
Disable matching of non-option variables.
(customize-option, customize-option-other-window)
(customize-changed-options): Doc fix.
(customize-apropos-options, customize-apropos-faces)
(customize-apropos-groups): Use apropos-read-pattern.

Fixes: debbugs:11176
2012-04-23 20:37:55 +08:00
Michael Albinus
2df41f9c6f * net/xesam.el (xesam-mode-map): Use let-bound map in
initialization.  (Bug#11292)
2012-04-23 13:57:06 +02:00
Agustín Martín
da00640ab7 ispell.el,flyspell.el: Preserve session localwords when switching back buffers.
Once a word is declared valid for a session and a buffer it should
stay valid for that buffer regardless buffer switches unless ispell
process is explicitly killed or dictionary changed for that buffer. 

However, it is currently lost when we switch to a different buffer
that triggers a new ispell process and then switch back to the
original buffer (triggering a  new ispell restart). 

These changes try to keep buffer session localwords accepted in above
case.
2012-04-23 12:33:25 +02:00
Glenn Morris
ca0294bbd8 Auto-commit of generated files. 2012-04-23 06:17:30 -04:00