Stefan Monnier [Thu, 26 Apr 2012 03:18:47 +0000 (23:18 -0400)]
* 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 ((λ ...) ...).
Chong Yidong [Thu, 26 Apr 2012 03:04:36 +0000 (11:04 +0800)]
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
Daiki Ueno [Thu, 26 Apr 2012 02:03:19 +0000 (11:03 +0900)]
Revive plstore editing mode previously reverted due to feature freeze.
Glenn Morris [Thu, 26 Apr 2012 01:51:41 +0000 (18:51 -0700)]
* doc/lispref/elisp-covers.texi: Remove file.
Nothing includes or refers to it, and it has not been updated since Emacs 19.
Glenn Morris [Thu, 26 Apr 2012 01:49:03 +0000 (18:49 -0700)]
* doc/lispref/front-cover-1.texi: Remove file.
Nothing includes or refers to it, and it has not been updated since Emacs 19.
Glenn Morris [Thu, 26 Apr 2012 01:47:05 +0000 (18:47 -0700)]
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.
Glenn Morris [Thu, 26 Apr 2012 01:08:03 +0000 (21:08 -0400)]
* doc/lispref/Makefile.in (srcs): Remove back.texi (which is unused).
* doc/lispref/makefile.w32-in (srcs): Same.
Stefan Monnier [Wed, 25 Apr 2012 19:00:18 +0000 (15:00 -0400)]
Add support for completion of quoted/escaped data.
Stefan Monnier [Wed, 25 Apr 2012 18:57:09 +0000 (14:57 -0400)]
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.
Stefan Monnier [Wed, 25 Apr 2012 18:53:57 +0000 (14:53 -0400)]
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.
Stefan Monnier [Wed, 25 Apr 2012 18:42:15 +0000 (14:42 -0400)]
* 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.
Stefan Monnier [Wed, 25 Apr 2012 18:40:42 +0000 (14:40 -0400)]
* 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.
Leo Liu [Wed, 25 Apr 2012 16:46:01 +0000 (00:46 +0800)]
* lisp/progmodes/python.el (python-pdbtrack-get-source-buffer): Use
compilation-message if available to find real filename.
Leo Liu [Wed, 25 Apr 2012 15:23:19 +0000 (23:23 +0800)]
* progmodes/python.el (python-send-region): Add suffix .py
Chong Yidong [Wed, 25 Apr 2012 15:06:51 +0000 (23:06 +0800)]
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
Leo Liu [Wed, 25 Apr 2012 14:47:33 +0000 (22:47 +0800)]
* lisp/files.el (auto-mode-alist): Use javascript-mode instead.
Alex Harsanyi [Wed, 25 Apr 2012 10:28:29 +0000 (12:28 +0200)]
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.
Chong Yidong [Wed, 25 Apr 2012 08:38:11 +0000 (16:38 +0800)]
* cus-edit.el (custom-buffer-create-internal): Update header text.
Eli Zaretskii [Wed, 25 Apr 2012 08:07:57 +0000 (11:07 +0300)]
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.
Michael Albinus [Tue, 24 Apr 2012 21:52:37 +0000 (23:52 +0200)]
Add `notifications-get-capabilities' of notifications.el.
Michael Albinus [Tue, 24 Apr 2012 21:47:24 +0000 (23:47 +0200)]
* notifications.el (top): Remove unneeded declarations.
Michael Albinus [Tue, 24 Apr 2012 21:44:12 +0000 (23:44 +0200)]
* notifications.el (notifications-get-capabilities): Fix docstring.
Andreas Schwab [Tue, 24 Apr 2012 19:05:25 +0000 (21:05 +0200)]
* .gdbinit (xpr): Handle USE_2_TAGS_FOR_INTS.
(xgetint): Add missing shift for LSB tags.
Michael Albinus [Tue, 24 Apr 2012 17:56:30 +0000 (19:56 +0200)]
* 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.
Stefan Monnier [Tue, 24 Apr 2012 17:08:55 +0000 (13:08 -0400)]
* ruby-mode.el: Handle general delimited literals.
Fixes: debbugs:6286
Stefan Monnier [Tue, 24 Apr 2012 17:06:12 +0000 (13:06 -0400)]
* 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.
Dmitry Gutov [Tue, 24 Apr 2012 16:00:08 +0000 (12:00 -0400)]
* 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.
Dmitry Gutov [Tue, 24 Apr 2012 15:51:14 +0000 (11:51 -0400)]
* 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
Michael Albinus [Tue, 24 Apr 2012 15:19:07 +0000 (17:19 +0200)]
* 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.
Leo Liu [Tue, 24 Apr 2012 14:58:29 +0000 (22:58 +0800)]
* lisp/progmodes/python.el: Move hideshow setup to the end.
Martin Rudalics [Tue, 24 Apr 2012 08:56:31 +0000 (10:56 +0200)]
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).
Juanma Barranquero [Tue, 24 Apr 2012 08:35:02 +0000 (10:35 +0200)]
src/gnutls.c: Fix previous change.
(init_gnutls_functions): Protect against (unlikely) manipulation
of :loaded-from data.
Michael Albinus [Tue, 24 Apr 2012 07:09:27 +0000 (09:09 +0200)]
Obsoleted argument list of `dbus-register-signal'.
Stefan Monnier [Tue, 24 Apr 2012 03:40:57 +0000 (23:40 -0400)]
* 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.
Ivan Andrus [Tue, 24 Apr 2012 02:07:40 +0000 (22:07 -0400)]
* 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'.
Juanma Barranquero [Mon, 23 Apr 2012 23:15:08 +0000 (01:15 +0200)]
src/gnutls.c (init_gnutls_functions): Fix bug#11311.
The value of :loaded-from is now a cons.
Paul Eggert [Mon, 23 Apr 2012 22:46:35 +0000 (15:46 -0700)]
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.
Chong Yidong [Mon, 23 Apr 2012 15:48:22 +0000 (23:48 +0800)]
* subr.el (accept-change-group): Fix arg usage.
Fixes: debbugs:6095
Chong Yidong [Mon, 23 Apr 2012 15:38:48 +0000 (23:38 +0800)]
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
Chong Yidong [Mon, 23 Apr 2012 12:44:54 +0000 (20:44 +0800)]
* apropos.el (apropos-read-pattern): Fix word list splitting.
Fixes: debbugs:11132
Chong Yidong [Mon, 23 Apr 2012 12:37:55 +0000 (20:37 +0800)]
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
Michael Albinus [Mon, 23 Apr 2012 11:57:06 +0000 (13:57 +0200)]
* net/xesam.el (xesam-mode-map): Use let-bound map in
initialization. (Bug#11292)
Agustín Martín [Mon, 23 Apr 2012 10:33:25 +0000 (12:33 +0200)]
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.
Glenn Morris [Mon, 23 Apr 2012 10:17:30 +0000 (06:17 -0400)]
Auto-commit of generated files.
Agustín Martín [Mon, 23 Apr 2012 10:03:33 +0000 (12:03 +0200)]
Remove obsolete usage of (ispell-insert-word)
`ispell-insert-word' is a plain `insert' together with word filtering
through `translation-table-for-input' for character code unification.
This was useful in Emacs 22, but is not needed for Emacs 23 and above
since unification is now direct.
Since XEmacs does not have `translation-table-for-input' there is no
need at all to keep this old code, but use (insert) directly.
Paul Eggert [Mon, 23 Apr 2012 07:34:29 +0000 (00:34 -0700)]
Fix minor GTK3 problems found by static checking.
* emacsgtkfixed.c (EMACS_TYPE_FIXED, EMACS_FIXED, EmacsFixed)
(EmacsFixedPrivate, EmacsFixedClass, struct _EmacsFixed)
(struct _EmacsFixedClass, emacs_fixed_get_type):
Move decls here from emacsgtkfixed.h, since they needn't be public.
(emacs_fixed_get_type): Now static.
(emacs_fixed_class_init): Omit unused local.
(emacs_fixed_child_type): Remove; unused.
* emacsgtkfixed.h (EMACS_TYPE_FIXED, EMACS_FIXED, EmacsFixed)
(EmacsFixedPrivate, EmacsFixedClass, struct _EmacsFixed)
(struct _EmacsFixedClass): Move to emacsgtkfixed.c.
(EMACS_FIXED_CLASS, EMACS_IS_FIXED, EMACS_IS_FIXED_CLASS)
(EMACS_FIXED_GET_CLASS): Remove; unused.
* gtkutil.c (xg_create_frame_widgets) [!HAVE_GTK3]: Omit unused local.
Paul Eggert [Mon, 23 Apr 2012 05:44:49 +0000 (22:44 -0700)]
Spelling fixes.
Paul Eggert [Mon, 23 Apr 2012 05:43:08 +0000 (22:43 -0700)]
* configure.in: Remove wrong part of comment.
Paul Eggert [Mon, 23 Apr 2012 04:08:51 +0000 (21:08 -0700)]
* keyboard.c (handle_async_input): Define only if SYNC_INPUT || SIGIO.
Problem reported by Juanma Barranquero for Windows -Wunused-function.
Paul Eggert [Sun, 22 Apr 2012 19:23:51 +0000 (12:23 -0700)]
Modernize and clean up gmalloc.c to assume C89 (Bug#9119).
* gmalloc.c: (_MALLOC_INTERNAL, _MALLOC_H, _PP, __ptr_t)
(__malloc_size_t, __malloc_ptrdiff_t):
Remove. All uses removed, replaced by the definiens if needed,
since we can assume C89 or better now.
Include <stdint.h>, for PTRDIFF_MAX, uintptr_t.
(protect_malloc_state, align, get_contiguous_space)
(malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
(malloc_atfork_handler_child, malloc_enable_thread)
(malloc_initialize_1, __malloc_initialize, morecore_nolock)
(_malloc_internal_nolock, _malloc_internal, malloc, _malloc)
(_free, _realloc, _free_internal_nolock, _free_internal, free, cfree)
(special_realloc, _realloc_internal_nolock, _realloc_internal)
(realloc, calloc, __default_morecore, memalign, valloc, checkhdr)
(freehook, mallochook, reallochook, mabort, mcheck, mprobe):
Define using prototypes, not old style.
(align, _malloc_internal_nolock, _free_internal_nolock, memalign):
Don't assume ptrdiff_t and uintptr_t are no wider than unsigned long.
(align): Don't assume that signed integer overflow wraps around.
Omit unused local var.
(malloc_initialize_1, morecore_nolock, _malloc_internal_nolock)
(_free_internal_nolock, memalign, mallochook, reallochook):
Omit no-longer-needed casts.
(valloc): Use getpagesize, not __getpagesize.
(MAGICWORD, MAGICFREE): Now randomish size_t values, not 32-bit.
(struct hdr): The 'magic' member is now size_t, not unsigned long.
Chong Yidong [Sun, 22 Apr 2012 18:04:54 +0000 (02:04 +0800)]
* faces.el (face-spec-set): Stop supporting deprecated form of third arg.
Chong Yidong [Sun, 22 Apr 2012 17:58:14 +0000 (01:58 +0800)]
Make the "reset-saved" Custom operation reset to default if there is no saved value.
* lisp/cus-edit.el (custom-variable-menu)
(custom-variable-reset-saved, custom-face-menu)
(custom-face-reset-saved): If there is no saved value, make the
"reset-saved" operation bring back the default.
(custom-face-state): Properly detect themed faces.
Fixes: debbugs:9509
Paul Eggert [Sun, 22 Apr 2012 17:46:49 +0000 (10:46 -0700)]
* dbusbind.c (XD_DBUS_VALIDATE_OBJECT): Define only if needed.
Michael Albinus [Sun, 22 Apr 2012 14:11:43 +0000 (16:11 +0200)]
Move functions from C to Lisp. Make non-blocking method calls
the default. Implement further D-Bus standard interfaces.
* configure.in (dbus_validate_bus_name, dbus_validate_path)
(dbus_validate_interface, dbus_validate_member): Check also for
these library functions
* dbusbind.c (DBUS_NUM_MESSAGE_TYPES): Declare.
(QCdbus_request_name_allow_replacement)
(QCdbus_request_name_replace_existing)
(QCdbus_request_name_do_not_queue)
(QCdbus_request_name_reply_primary_owner)
(QCdbus_request_name_reply_in_queue)
(QCdbus_request_name_reply_exists)
(QCdbus_request_name_reply_already_owner): Move to dbus.el.
(QCdbus_registered_serial, QCdbus_registered_method)
(QCdbus_registered_signal): New Lisp objects.
(XD_DEBUG_MESSAGE): Use sizeof.
(XD_MESSAGE_TYPE_TO_STRING, XD_OBJECT_TO_STRING)
(XD_DBUS_VALIDATE_BUS_ADDRESS, XD_DBUS_VALIDATE_OBJECT)
(XD_DBUS_VALIDATE_BUS_NAME, XD_DBUS_VALIDATE_PATH)
(XD_DBUS_VALIDATE_INTERFACE, XD_DBUS_VALIDATE_MEMBER): New macros.
(XD_CHECK_DBUS_SERIAL): Rename from CHECK_DBUS_SERIAL_GET_SERIAL.
(xd_signature, xd_append_arg): Allow float for integer types.
(xd_get_connection_references): New function.
(xd_get_connection_address): Rename from xd_initialize. Return
cached address.
(xd_remove_watch): Do not unset $DBUS_SESSION_BUS_ADDRESS.
(xd_close_bus): Rename from Fdbus_close_bus. Not needed on Lisp
level.
(Fdbus_init_bus): New optional arg PRIVATE. Cache address.
Return number of recounts.
(Fdbus_get_unique_name): Make stronger parameter check.
(Fdbus_message_internal): New defun.
(Fdbus_call_method, Fdbus_call_method_asynchronously)
(Fdbus_method_return_internal, Fdbus_method_error_internal)
(Fdbus_send_signal, Fdbus_register_service)
(Fdbus_register_signal, Fdbus_register_method): Move to dbus.el.
(xd_read_message_1): Obey new structure of Vdbus_registered_objects.
(xd_read_queued_messages): Obey new structure of Vdbus_registered_buses.
(Vdbus_compiled_version, Vdbus_runtime_version)
(Vdbus_message_type_invalid, Vdbus_message_type_method_call)
(Vdbus_message_type_method_return, Vdbus_message_type_error)
(Vdbus_message_type_signal): New defvars.
(Vdbus_registered_buses, Vdbus_registered_objects_table): Adapt
docstring.
* net/dbus.el (dbus-message-internal): Declare function. Remove
unneeded function declarations.
(defvar dbus-message-type-invalid, dbus-message-type-method-call)
(dbus-message-type-method-return, dbus-message-type-error)
(dbus-message-type-signal): Declare variables. Remove local
definitions.
(dbus-interface-dbus, dbus-interface-peer)
(dbus-interface-introspectable, dbus-interface-properties)
(dbus-path-emacs, dbus-interface-emacs, dbus-return-values-table):
Adapt docstring.
(dbus-interface-objectmanager): New defconst.
(dbus-call-method, dbus-call-method-asynchronously)
(dbus-send-signal, dbus-method-return-internal)
(dbus-method-error-internal, dbus-register-service)
(dbus-register-signal, dbus-register-method): New defuns, moved
from dbusbind.c
(dbus-call-method-handler, dbus-setenv)
(dbus-get-all-managed-objects, dbus-managed-objects-handler): New
defuns.
(dbus-call-method-non-blocking): Make it an obsolete function.
(dbus-unregister-object, dbus-unregister-service)
(dbus-handle-event, dbus-register-property)
(dbus-property-handler): Obey the new structure of
`bus-registered-objects'.
(dbus-introspect): Use `dbus-call-method'. Use a timeout.
(dbus-get-property, dbus-set-property, dbus-get-all-properties):
Use `dbus-call-method'.
* dbus.texi (Version): New node.
(Properties and Annotations): Mention the object manager
interface. Describe dbus-get-all-managed-objects.
(Type Conversion): Floating point numbers are allowed, if an
anteger does not fit Emacs's integer range.
(Synchronous Methods): Remove obsolete dbus-call-method-non-blocking.
(Asynchronous Methods): Fix description of
dbus-call-method-asynchronously.
(Receiving Method Calls): Fix some minor errors. Add
dbus-interface-emacs.
(Signals): Describe unicast signals and the new match rules.
(Alternative Buses): Add the PRIVATE optional argument to
dbus-init-bus. Describe its new return value. Add dbus-setenv.
Chong Yidong [Sun, 22 Apr 2012 13:58:00 +0000 (21:58 +0800)]
Tweaks to Customize interface. Set custom-reset-button-menu to t.
* cus-edit.el (custom-commands, custom-reset-menu)
(Custom-reset-standard): Tweak labels.
(custom-reset-button-menu): Change default to t.
(custom-buffer-create-internal): For the custom-reset-button-menu
case, put the revert button first.
(custom-group-subtitle): New face.
(custom-group-value-create): Align docstring to a specific column.
* wid-edit.el (widget-documentation-link-add): Don't handle
indentation in this function.
(widget-documentation-string-indent-to): New function.
(widget-documentation-string-value-create): Use it.
* autorevert.el (auto-revert):
* epg-config.el (epg):
* ibuffer.el (ibuffer):
* mpc.el (mpc):
* ses.el (ses):
* eshell/eshell.el (eshell):
* net/ange-ftp.el (ange-ftp):
* progmodes/ebnf2ps.el (postscript):
* progmodes/flymake.el (flymake):
* progmodes/prolog.el (prolog):
* progmodes/verilog-mode.el (verilog-mode):
* progmodes/which-func.el (which-func):
* textmodes/picture.el (picture):
* textmodes/tildify.el (tildify):
* vc/ediff.el (ediff): Tweak defgroups to improve presentation in
customization buffers.
Alan Mackenzie [Sun, 22 Apr 2012 11:13:09 +0000 (11:13 +0000)]
CC Mode. Adding a ) can hide the resulting (..) from searches. Fix it.
Glenn Morris [Sun, 22 Apr 2012 10:18:54 +0000 (06:18 -0400)]
Auto-commit of generated files.
Paul Eggert [Sun, 22 Apr 2012 07:50:17 +0000 (00:50 -0700)]
Fix GC_MALLOC_CHECK debugging output on 64-bit hosts.
* alloc.c (emacs_blocked_malloc) [GC_MALLOC_CHECK]:
Do not assume ptrdiff_t is the same width as 'int'.
Paul Eggert [Sun, 22 Apr 2012 07:41:30 +0000 (00:41 -0700)]
* alloc.c: Handle unusual debugging option combinations.
(GC_CHECK_MARKED_OBJECTS): Undef if ! GC_MARK_STACK,
since the two debugging options are incompatible.
(GC_MALLOC_CHECK): Similarly, undef if GC_CHECK_MARKED_OBJECTS
is defined.
(mem_init, mem_insert, mem_insert_fixup):
Define if GC_MARK_STACK || GC_MALLOC_CHECK.
(NEED_MEM_INSERT): Remove; no longer needed.
Paul Eggert [Sun, 22 Apr 2012 06:56:42 +0000 (23:56 -0700)]
* configure.in (doug_lea_malloc): Check for __malloc_initialize_hook.
With glibc 2.14 or later, when compiled with GCC 4.7.0's
-Werror=deprecated-declarations flag, use of hooks like
__malloc_initialize_hook causes compilation to fail because these
hooks are deprecated. Modify 'configure' to check for these hooks too.
Simplify the 'configure' code to test for all the hooks at once.
(emacs_cv_var___after_morecore_hook): Remove, replacing with ...
(emacs_cv_var_doug_lea_malloc): ... this new var.
Leo Liu [Sun, 22 Apr 2012 02:58:23 +0000 (10:58 +0800)]
* src/sysdep.c (list_system_processes): Support Darwin.
Fixes: debbugs:5725
Paul Eggert [Sun, 22 Apr 2012 01:27:10 +0000 (18:27 -0700)]
* sysdep.c [__FreeBSD__]: Minor cleanups.
(list_system_processes, system_process_attributes) [__FreeBSD__]:
Use Emacs indenting style more consistently. Avoid some casts.
Use 'double' consistently rather than mixing 'float' and 'double'.
Paul Eggert [Sat, 21 Apr 2012 17:15:03 +0000 (10:15 -0700)]
Sync from gnulib version
4f11d6bebc3098c64ffde27079ab0d0cecfd0cdc
dated 2011-10-07. Regenerating from current gnulib would be a
pervasive change, and currently the trunk isn't open to such changes.
* configure.in (WARN_CFLAGS): Remove; no longer needed now
that gnulib does it.
* lib/gnulib.mk, m4/gl-comp.m4: Regenerate.
Juanma Barranquero [Sat, 21 Apr 2012 16:57:49 +0000 (18:57 +0200)]
Don't add modes to which-func-modes if already set to t.
* lisp/progmodes/verilog-mode.el (verilog-mode): Check whether
which-func-modes is t before adding verilog-mode.
Reported by Andy Moreton <andrewjmoreton@gmail.com>.
* lisp/mh-e/mh-folder.el (top): Check whether which-func-modes
is t before adding mh-folder-mode.
Leo Liu [Sat, 21 Apr 2012 14:12:27 +0000 (22:12 +0800)]
* lisp/net/rcirc.el (rcirc): Avoid error when process-contact returns
t.
Eduard Wiebe [Sat, 21 Apr 2012 10:11:51 +0000 (18:11 +0800)]
Add system processes support for FreeBSD.
* src/sysdep.c (list_system_processes, system_process_attributes): Add
implementation for FreeBSD.
Fixes: debbugs:5243
Eli Zaretskii [Sat, 21 Apr 2012 09:48:42 +0000 (12:48 +0300)]
Fix the build after leim-related changes.
msdos/sedleim.inp (RUN_EMACS): Replace BUILT_EMACS with EMACS.
Remove stale editing of "else make quail".
(.PHONY, compile-targets): Remove targets.
(compile-main): Edit into something that can be done without
requiring a Unixy shell.
(bootstrap-clean): Likewise: edit to not require $(setwins).
msdos/sed1v2.inp: Edit "cd $(leimdir) && $(MAKE) ..." into the
equivalent "$(MAKE) $(MFLAGS) -C $(leimdir) ..." command.
Andreas Schwab [Sat, 21 Apr 2012 08:03:52 +0000 (10:03 +0200)]
* lisp.mk (lisp): Update.
Andreas Schwab [Sat, 21 Apr 2012 08:03:41 +0000 (10:03 +0200)]
Fixes: debbugs:11285
* m4/gl-comp.m4: Update.
Michael Vehrs [Sat, 21 Apr 2012 05:54:39 +0000 (13:54 +0800)]
Improve tbl support in woman.el.
* lisp/woman.el (woman-find-next-control-line): New arg, specifying an
additional regexp component for the control line.
(woman2-roff-buffer): Use it.
(woman-break-table): New function.
(woman2-TS): Use it.
And some cleanups:
* lisp/woman.el (woman-set-buffer-display-table, woman-decode-region)
(woman-horizontal-escapes, woman-negative-vertical-space)
(woman-tab-to-tab-stop, woman2-fc, woman2-TS)
(WoMan-warn-ignored): Use ?\s instead of ?\ .
Fixes: debbugs:5635
Paul Eggert [Fri, 20 Apr 2012 21:26:18 +0000 (14:26 -0700)]
* keyboard.c (process_pending_signals): Define only if SYNC_INPUT.
It is never used otherwise.
Stefan Monnier [Fri, 20 Apr 2012 19:56:59 +0000 (15:56 -0400)]
* lisp/minibuffer.el (completion-file-name-table): Complete user names.
Glenn Morris [Fri, 20 Apr 2012 16:27:52 +0000 (09:27 -0700)]
Fix up merged ChangeLog entries
Stefan Monnier [Fri, 20 Apr 2012 13:02:20 +0000 (09:02 -0400)]
* src/print.c (print_preprocess): Only check print_depth if print-circle
is nil.
(print_object): Check for cycles even when print-circle is nil and
print-gensym is t, but only check print_depth if print-circle is nil.
Leo Liu [Fri, 20 Apr 2012 11:36:21 +0000 (19:36 +0800)]
* lisp/font-lock.el (lisp-font-lock-keywords-2): Add pcase, pcase-let
and pcase-let*.
Chong Yidong [Fri, 20 Apr 2012 10:37:57 +0000 (18:37 +0800)]
Fix emacsclient/server behavior under --without-x.
* lib-src/emacsclient.c (main): Send -tty to Emacs under more circumstanced (Bug#8314).
* lisp/server.el (server-process-filter): Only try to open a window
system frame if compiled with graphical support (Bug#8314).
Fixes: debbugs:11102
Chong Yidong [Fri, 20 Apr 2012 10:04:19 +0000 (18:04 +0800)]
* lisp/server.el (server-execute): Respect initial-buffer-choice
if it is a string and there are no files to open.
(server-create-window-system-frame, server-create-tty-frame):
Don't switch buffers here.
Fixes: debbugs:2825
Chong Yidong [Fri, 20 Apr 2012 08:48:50 +0000 (16:48 +0800)]
Merge from emacs-24 branch
Glenn Morris [Fri, 20 Apr 2012 07:49:19 +0000 (00:49 -0700)]
* etc/CONTRIBUTE: Expand a bit on copyright assignments.
Glenn Morris [Fri, 20 Apr 2012 07:37:20 +0000 (00:37 -0700)]
* MORE.STUFF: General update.
Mention list-packages.
Remove many old/outdated URLs.
Dan Nicolaescu [Fri, 20 Apr 2012 07:32:35 +0000 (15:32 +0800)]
Fix sysfs battery display.
* battery.el (battery-echo-area-format): Display remaining time
for sysfs backend too (Bug#11269).
(battery-linux-sysfs): Fix conditional for the charge.
Chong Yidong [Fri, 20 Apr 2012 07:13:25 +0000 (15:13 +0800)]
Fix last change.
* lisp/progmodes/gdb-mi.el (gdb-inferior-io-sentinel): Don't do
anything if gdb process is killed.
Chong Yidong [Fri, 20 Apr 2012 06:39:29 +0000 (14:39 +0800)]
Fixes for pty handling in gdb-mi.el and process.c.
* lisp/progmodes/gdb-mi.el (gdb): Revert 2012-04-19 change.
(gdb-inferior-io--init-proc): New function.
(gdb-init-1): Use it.
(gdb-inferior-io-sentinel): New sentinel for the gdb-inferior pty,
responsible for allocating a new pty and hooking it to gdb when
the old pty gets an EIO due to process exit.
(gdb-delchar-or-quit): New command. Bind it in gdb-mi buffers.
(gdb-tooltip-print): Don't use obsolete tooltip-use-echo-area.
(gdb-inferior-io--maybe-delete-pty): Move into gdb-reset.
* src/process.c (wait_reading_process_output): If EIO occurs on a pty,
set the status to "failed" and ensure that sentinel is run.
* doc/lispref/processes.texi (Asynchronous Processes): Mention nil
argument to start-process.
Eli Zaretskii [Fri, 20 Apr 2012 06:28:32 +0000 (09:28 +0300)]
ChangeLog updates for last commit.
Eli Zaretskii [Fri, 20 Apr 2012 06:27:11 +0000 (09:27 +0300)]
Doc fixes in window.el functions.
lisp/window.el (window-min-size, window-sizable, window-min-delta)
(window-max-delta, window--resizable, window-resizable)
(window-total-size, window-full-height-p, window-full-width-p)
(window-in-direction, window--resize-mini-window, window-resize)
(window--resize-child-windows-normal)
(window--resize-child-windows, window--resize-siblings)
(window--resize-this-window, adjust-window-trailing-edge)
(enlarge-window, shrink-window): Doc fixes.
Eli Zaretskii [Fri, 20 Apr 2012 05:57:38 +0000 (08:57 +0300)]
Put the '$Id:' tag into MS-Windows executable of Emacs.
lisp/version.el (top level): Put into the executable the ident-style
'$Id:' tag on windows-nt as well.
Eli Zaretskii [Fri, 20 Apr 2012 05:47:55 +0000 (08:47 +0300)]
Doc fixes for emacs-bzr-* facilities.
lisp/version.el (emacs-bzr-version, emacs-bzr-get-version): Doc fixes.
Glenn Morris [Fri, 20 Apr 2012 04:03:55 +0000 (21:03 -0700)]
FOR-RELEASE small edits
Glenn Morris [Fri, 20 Apr 2012 02:19:43 +0000 (22:19 -0400)]
Some rough FAQ additions for Emacs 24
* doc/misc/faq.texi (New in Emacs 24): New section.
(Packages that do not come with Emacs): Mention M-x list-packages.
Glenn Morris [Fri, 20 Apr 2012 01:37:14 +0000 (21:37 -0400)]
More small edits for doc/lispref/minibuf.texi
* doc/lispref/elisp.texi, doc/lispref/vol1.texi, doc/lispref/vol2.texi:
* doc/lispref/minibuf.texi (Completion):
Update "High-Level Completion" description.
* doc/lispref/minibuf.texi (Basic Completion):
No need to describe obarrays here.
Don't mention obsolete `nospace' argument of all-completions.
(Minibuffer Completion, Completion Commands, Reading File Names)
(Completion Variables): Copyedits.
(Completion Commands): Mention parent keymaps.
Remove obsolete minibuffer-local-filename-must-match-map.
(High-Level Completion): Remove read-variable's almost
word-for-word duplication of read-command.
Stefan Monnier [Thu, 19 Apr 2012 22:02:25 +0000 (18:02 -0400)]
* lisp/electric.el (electric-indent-post-self-insert-function): Check that
electric-indent-mode is enabled in current buffer.
Juanma Barranquero [Thu, 19 Apr 2012 21:34:49 +0000 (23:34 +0200)]
lisp/imenu.el (imenu-progress-message): Restore.
Juanma Barranquero [Thu, 19 Apr 2012 17:20:26 +0000 (19:20 +0200)]
lisp/*: Add declarations, remove unused bindings, mark unused args.
* lisp/avoid.el (mouse-avoidance-mode): Mark unused arg.
(mouse-avoidance-nudge-mouse): Remove unused binding.
* lisp/imenu.el (imenu-default-goto-function): Mark unused args.
(imenu-progress-message): Remove obsolete macro; all callers changed.
* lisp/mouse.el (mouse-menu-major-mode-map):
* lisp/emacs-lisp/authors.el (authors-scan-change-log)
(authors-add-to-author-list):
* lisp/emacs-lisp/avl-tree.el (avl-tree--enter-balance):
* lisp/emacs-lisp/smie.el (smie-auto-fill):
* lisp/mail/sendmail.el (mail-bury):
* lisp/mail/unrmail.el (unrmail):
* lisp/net/tls.el (open-tls-stream):
* lisp/textmodes/picture.el (picture-mouse-set-point):
Remove unused bindings.
* lisp/subr.el (keymap-canonicalize): Remove unused binding.
(read-passwd): Mark unused arg.
* lisp/tutorial.el (tutorial--display-changes): Remove unused binding.
(tutorial--save-tutorial-to): Remove unused variable.
* lisp/emacs-lisp/package.el (define-package, package-menu-mark-delete)
(package-menu-mark-install, package-menu-mark-unmark): Mark unused args.
(package-generate-autoloads, package-menu--generate)
(package-menu--find-upgrades): Remove unused bindings.
* lisp/emulation/cua-rect.el (cua-restrict-regexp-rectangle)
(cua-restrict-prefix-rectangle): Doc fixes. Remove unused bindings.
(cua--mouse-ignore, cua--delete-rectangle, cua--extract-rectangle)
(cua--indent-rectangle, cua-open-rectangle, cua-close-rectangle)
(cua-blank-rectangle, cua-string-rectangle, cua-replace-in-rectangle)
(cua-incr-rectangle, cua-sequence-rectangle, cua--convert-rectangle-as)
(cua--rectangle-aux-replace, cua--left-fill-rectangle)
(cua-scroll-rectangle-up, cua-scroll-rectangle-down)
(cua-delete-char-rectangle): Mark unused args.
(cua-align-rectangle): Remove unused binding.
* lisp/mail/rmail.el (compilation--message->loc)
(epa--find-coding-system-for-mime-charset): Declare.
* lisp/net/dbus.el (dbus-register-service): Declare.
(dbus-name-owner-changed-handler): Remove unused binding.
* lisp/nxml/nxml-mode.el (nxml-electric-slash, nxml-in-mixed-content-p)
(nxml-compute-indent-from-matching-start-tag): Remove unused variables.
(nxml-scan-backward-within): Mark unused arg.
(nxml-dynamic-markup-word): Remove unused binding.
Juanma Barranquero [Thu, 19 Apr 2012 16:50:07 +0000 (18:50 +0200)]
Remove some `toggle-read-only' warnings.
* lisp/bs.el (bs-toggle-readonly): Call `toggle-read-only' interactively.
* lisp/descr-text.el (describe-char):
lisp/progmodes/python.el (python-describe-symbol):
Don't call `toggle-read-only', set `buffer-read-only'.
Glenn Morris [Thu, 19 Apr 2012 10:17:36 +0000 (06:17 -0400)]
Auto-commit of generated files.
Michael Albinus [Thu, 19 Apr 2012 08:37:10 +0000 (10:37 +0200)]
* net/tramp.el (tramp-action-password): Let-bind enable-recursive-minibuffers to t.
Chong Yidong [Thu, 19 Apr 2012 08:09:30 +0000 (16:09 +0800)]
Delete the gdb-inferior pty when the gdb process exits.
* lisp/progmodes/gdb-mi.el (gdb-inferior-io--maybe-delete-pty): New
function to call delete-process on the gdb-inferior buffer's pty.
(gdb-reset): Use it, instead of relying on kill-buffer to kill the
pty process.
(gdb-update): New arg to suppress talking to the gdb process.
(gdb-done-or-error): Use it.
(gdb-stopped-functions): Rename from gdb-stopped-hooks.
(gdb): Call gdb-inferior-io--maybe-delete-pty as a workaround for
sentinel not being called.
* lisp/comint.el (make-comint-in-buffer, comint-exec): Doc fix.
Fixes: debbugs:11273
Glenn Morris [Thu, 19 Apr 2012 06:05:58 +0000 (23:05 -0700)]
ChangeLog fix
Glenn Morris [Thu, 19 Apr 2012 06:04:05 +0000 (23:04 -0700)]
More small edits for doc/lispref/minibuf.texi
* doc/lispref/minibuf.texi (Object from Minibuffer):
Remove overly pedantic paragraph.
(Minibuffer History): Copyedits. Add face-name-history.
(Initial Input, Yes-or-No Queries, Multiple Queries)
(Minibuffer Windows, Minibuffer Misc): Copyedits.
(Yes-or-No Queries): Tweak example.
(Minibuffer Commands): Add next-complete-history-element.
(Minibuffer Misc): Mention minibuffer-message-timeout, and
minibuffer-inactive-mode.
* doc/lispref/minibuf.texi (Minibuffers):
* doc/lispref/elisp.texi, doc/lispref/vol1.texi, doc/lispref/vol2.texi:
Fix minibuffer subsection order.
* lisp/subr.el: Comment.
Glenn Morris [Thu, 19 Apr 2012 02:44:48 +0000 (19:44 -0700)]
Shameful typo