bpt/emacs.git
12 years ago* configure.in: Remove wrong part of comment.
Paul Eggert [Mon, 23 Apr 2012 05:43:08 +0000 (22:43 -0700)]
* configure.in: Remove wrong part of comment.

12 years ago* keyboard.c (handle_async_input): Define only if SYNC_INPUT || SIGIO.
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.

12 years agoModernize and clean up gmalloc.c to assume C89 (Bug#9119).
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.

12 years ago* faces.el (face-spec-set): Stop supporting deprecated form of third arg.
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.

12 years agoMake the "reset-saved" Custom operation reset to default if there is no saved value.
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

12 years ago* dbusbind.c (XD_DBUS_VALIDATE_OBJECT): Define only if needed.
Paul Eggert [Sun, 22 Apr 2012 17:46:49 +0000 (10:46 -0700)]
* dbusbind.c (XD_DBUS_VALIDATE_OBJECT): Define only if needed.

12 years agoMove functions from C to Lisp. Make non-blocking method calls
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.

12 years agoTweaks to Customize interface. Set custom-reset-button-menu to t.
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.

12 years agoCC Mode. Adding a ) can hide the resulting (..) from searches. Fix it.
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.

12 years agoAuto-commit of generated files.
Glenn Morris [Sun, 22 Apr 2012 10:18:54 +0000 (06:18 -0400)]
Auto-commit of generated files.

12 years agoFix GC_MALLOC_CHECK debugging output on 64-bit hosts.
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'.

12 years ago* alloc.c: Handle unusual debugging option combinations.
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.

12 years ago* configure.in (doug_lea_malloc): Check for __malloc_initialize_hook.
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.

12 years ago* src/sysdep.c (list_system_processes): Support Darwin.
Leo Liu [Sun, 22 Apr 2012 02:58:23 +0000 (10:58 +0800)]
* src/sysdep.c (list_system_processes): Support Darwin.

Fixes: debbugs:5725

12 years ago* sysdep.c [__FreeBSD__]: Minor cleanups.
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'.

12 years agoSync from gnulib version 4f11d6bebc3098c64ffde27079ab0d0cecfd0cdc
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.

12 years agoDon't add modes to which-func-modes if already set to t.
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.

12 years ago* lisp/net/rcirc.el (rcirc): Avoid error when process-contact returns
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.

12 years agoAdd system processes support for FreeBSD.
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

12 years agoFix the build after leim-related changes.
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.

12 years ago* lisp.mk (lisp): Update.
Andreas Schwab [Sat, 21 Apr 2012 08:03:52 +0000 (10:03 +0200)]
* lisp.mk (lisp): Update.

12 years agoFixes: debbugs:11285
Andreas Schwab [Sat, 21 Apr 2012 08:03:41 +0000 (10:03 +0200)]
Fixes: debbugs:11285

* m4/gl-comp.m4: Update.

12 years agoImprove tbl support in woman.el.
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

12 years ago* keyboard.c (process_pending_signals): Define only if SYNC_INPUT.
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.

12 years ago* lisp/minibuffer.el (completion-file-name-table): Complete user names.
Stefan Monnier [Fri, 20 Apr 2012 19:56:59 +0000 (15:56 -0400)]
* lisp/minibuffer.el (completion-file-name-table): Complete user names.

12 years agoFix up merged ChangeLog entries
Glenn Morris [Fri, 20 Apr 2012 16:27:52 +0000 (09:27 -0700)]
Fix up merged ChangeLog entries

12 years ago* src/print.c (print_preprocess): Only check print_depth if print-circle
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.

12 years ago* lisp/font-lock.el (lisp-font-lock-keywords-2): Add pcase, pcase-let
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*.

12 years agoFix emacsclient/server behavior under --without-x.
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

12 years ago* lisp/server.el (server-execute): Respect initial-buffer-choice
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

12 years agoMerge from emacs-24 branch
Chong Yidong [Fri, 20 Apr 2012 08:48:50 +0000 (16:48 +0800)]
Merge from emacs-24 branch

12 years ago* etc/CONTRIBUTE: Expand a bit on copyright assignments.
Glenn Morris [Fri, 20 Apr 2012 07:49:19 +0000 (00:49 -0700)]
* etc/CONTRIBUTE: Expand a bit on copyright assignments.

12 years ago* MORE.STUFF: General update.
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.

12 years agoFix sysfs battery display.
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.

12 years agoFix last change.
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.

12 years agoFixes for pty handling in gdb-mi.el and process.c.
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.

12 years agoChangeLog updates for last commit.
Eli Zaretskii [Fri, 20 Apr 2012 06:28:32 +0000 (09:28 +0300)]
ChangeLog updates for last commit.

12 years agoDoc fixes in window.el functions.
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.

12 years agoPut the '$Id:' tag into MS-Windows executable of Emacs.
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.

12 years agoDoc fixes for emacs-bzr-* facilities.
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.

12 years agoFOR-RELEASE small edits
Glenn Morris [Fri, 20 Apr 2012 04:03:55 +0000 (21:03 -0700)]
FOR-RELEASE small edits

12 years agoSome rough FAQ additions for Emacs 24
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.

12 years agoMore small edits for doc/lispref/minibuf.texi
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.

12 years ago* lisp/electric.el (electric-indent-post-self-insert-function): Check that
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.

12 years agolisp/imenu.el (imenu-progress-message): Restore.
Juanma Barranquero [Thu, 19 Apr 2012 21:34:49 +0000 (23:34 +0200)]
lisp/imenu.el (imenu-progress-message): Restore.

12 years agolisp/*: Add declarations, remove unused bindings, mark unused args.
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.

12 years agoRemove some `toggle-read-only' warnings.
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'.

12 years agoAuto-commit of generated files.
Glenn Morris [Thu, 19 Apr 2012 10:17:36 +0000 (06:17 -0400)]
Auto-commit of generated files.

12 years ago* net/tramp.el (tramp-action-password): Let-bind enable-recursive-minibuffers to t.
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.

12 years agoDelete the gdb-inferior pty when the gdb process exits.
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

12 years agoChangeLog fix
Glenn Morris [Thu, 19 Apr 2012 06:05:58 +0000 (23:05 -0700)]
ChangeLog fix

12 years agoMore small edits for doc/lispref/minibuf.texi
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.

12 years agoShameful typo
Glenn Morris [Thu, 19 Apr 2012 02:44:48 +0000 (19:44 -0700)]
Shameful typo

12 years agoSmall edits for doc/lispref/minibuf.texi
Glenn Morris [Thu, 19 Apr 2012 02:00:23 +0000 (22:00 -0400)]
Small edits for doc/lispref/minibuf.texi

* doc/lispref/minibuf.texi: Standardize metasyntactic variables
("history", etc).
Use Texinfo-recommended form of quote+punctuation.
(Intro to Minibuffers): First minibuffer is #1, not #0.
Mention minibuffer-inactive-mode.
(Text from Minibuffer): Copyedits.
(Minibuffer History, Programmed Completion): Fix @var usage.

12 years ago* lisp/progmodes/gud.el (gud-key-prefix): Use :type 'key-sequence
Sam Steingold [Wed, 18 Apr 2012 20:26:57 +0000 (16:26 -0400)]
* lisp/progmodes/gud.el (gud-key-prefix): Use :type 'key-sequence
instead of 'string to accommodate values like [f11].
Always use `vconcat' instead of `concat' on it, like in `gud-def'.
* lisp/progmodes/gdb-mi.el: Likewise.

12 years agoMerge from trunk.
Paul Eggert [Wed, 18 Apr 2012 17:07:06 +0000 (10:07 -0700)]
Merge from trunk.

12 years agoMerge from trunk.
Paul Eggert [Wed, 18 Apr 2012 16:45:13 +0000 (09:45 -0700)]
Merge from trunk.

12 years ago* lisp/abbrev.el (edit-abbrevs): Move point to the abbrev table of
Leo Liu [Wed, 18 Apr 2012 16:43:23 +0000 (00:43 +0800)]
* lisp/abbrev.el (edit-abbrevs): Move point to the abbrev table of
current buffer.
(prepare-abbrev-list-buffer): Enter edit-abbrevs-mode only if
LOCAL is nil.

12 years ago* configure.in: Do not assume GCC 4.7.0 and/or no stack protection.
Paul Eggert [Wed, 18 Apr 2012 16:40:06 +0000 (09:40 -0700)]
* configure.in: Do not assume GCC 4.7.0 and/or no stack protection.

12 years agoAuto-commit of generated files.
Glenn Morris [Wed, 18 Apr 2012 11:17:59 +0000 (07:17 -0400)]
Auto-commit of generated files.

12 years agoMore small doc and lispref edits related to processes
Glenn Morris [Wed, 18 Apr 2012 07:21:18 +0000 (00:21 -0700)]
More small doc and lispref edits related to processes

* doc/lispref/processes.texi (Serial Ports, Byte Packing, Bindat Spec)
(Bindat Functions): Copyedits.

* src/process.c (Fset_process_inherit_coding_system_flag)
(Fset_process_query_on_exit_flag): Doc fix (mention return value).
(Fmake_network_process, Fmake_serial_process): Doc fix.

* admin/FOR-RELEASE: Related markup.

12 years ago* simple.el (line-move): Use forward-line if in batch mode.
Chong Yidong [Wed, 18 Apr 2012 07:00:52 +0000 (15:00 +0800)]
* simple.el (line-move): Use forward-line if in batch mode.

Fixes: debbugs:11053

12 years agoFix require-final-newline interaction with read-only buffers.
Christopher Schmidt [Wed, 18 Apr 2012 06:24:13 +0000 (14:24 +0800)]
Fix require-final-newline interaction with read-only buffers.

* lisp/files.el (after-find-file): Do not try to add a final newline
if the buffer is read-only.

Fixes: debbugs:11156

12 years agoDocfix for require-final-newline in Lisp manual.
Christopher Schmidt [Wed, 18 Apr 2012 06:20:47 +0000 (14:20 +0800)]
Docfix for require-final-newline in Lisp manual.

* doc/lispref/files.texi (Saving Buffers): Document `visit and `visit-save'
values of require-final-newline.

12 years ago* lisp/progmodes/grep.el (grep, rgrep): Doc fix.
Chong Yidong [Wed, 18 Apr 2012 06:04:51 +0000 (14:04 +0800)]
* lisp/progmodes/grep.el (grep, rgrep): Doc fix.

Fixes: debbugs:11268

12 years agoMore process-related doc and manual small edits
Glenn Morris [Wed, 18 Apr 2012 03:48:43 +0000 (20:48 -0700)]
More process-related doc and manual small edits

* doc/lispref/processes.texi (Output from Processes, Filter Functions):
Mention waiting-for-user-input-p.
(Sentinels, Query Before Exit, System Processes, Transaction Queues):
(Network Servers, Datagrams, Network Processes, Network Options)
(Network Feature Testing, Serial Ports): Copyedits.
(Network): Add encrypted network overview paragraph.
Cross-reference the Emacs-GnuTLS manual.  Use @acronym.

* lisp/net/network-stream.el (open-network-stream): Doc fix.

* src/process.c (Fset_process_inherit_coding_system_flag)
(Fset_process_query_on_exit_flag): Doc fix (mention return value).
(Fmake_network_process): Doc fix.

12 years ago* configure.in: Don't use the -R option (Bug#11251).
Ludovic Courtès [Wed, 18 Apr 2012 02:14:53 +0000 (10:14 +0800)]
* configure.in: Don't use the -R option (Bug#11251).

12 years agoFix logic for returning to and yanking from Rmail buffer.
Richard M. Stallman [Tue, 17 Apr 2012 23:23:20 +0000 (19:23 -0400)]
Fix logic for returning to and yanking from Rmail buffer.

12 years agoFix ChangeLog typo.
Paul Eggert [Tue, 17 Apr 2012 23:06:33 +0000 (16:06 -0700)]
Fix ChangeLog typo.

12 years agoMerge from trunk.
Paul Eggert [Tue, 17 Apr 2012 22:57:44 +0000 (15:57 -0700)]
Merge from trunk.

12 years ago* dired.c (Fsystem_groups): Remove unused local.
Paul Eggert [Tue, 17 Apr 2012 22:56:06 +0000 (15:56 -0700)]
* dired.c (Fsystem_groups): Remove unused local.

12 years agoINSTALL: Mention --enable-gcc-warnings.
Paul Eggert [Tue, 17 Apr 2012 21:40:07 +0000 (14:40 -0700)]
INSTALL: Mention --enable-gcc-warnings.

12 years agoMerge from trunk.
Paul Eggert [Tue, 17 Apr 2012 21:38:34 +0000 (14:38 -0700)]
Merge from trunk.

12 years agolisp/server.el (server-ensure-safe-dir): Simplify.
Juanma Barranquero [Tue, 17 Apr 2012 17:05:22 +0000 (19:05 +0200)]
lisp/server.el (server-ensure-safe-dir): Simplify.

12 years agolisp/subr.el: Update comment.
Juanma Barranquero [Tue, 17 Apr 2012 16:24:44 +0000 (18:24 +0200)]
lisp/subr.el: Update comment.

12 years agoFix bug #11261 with cursor movement in a continued line when header line is present.
Eli Zaretskii [Tue, 17 Apr 2012 15:25:17 +0000 (18:25 +0300)]
Fix bug #11261 with cursor movement in a continued line when header line is present.

 src/xdisp.c (string_buffer_position_lim): Limit starting position to BEGV.
 (set_cursor_from_row): If called for a mode-line or header-line
 row, return zero immediately.
 (try_cursor_movement): If inside continuation line, don't back up
 farther than the first row after the header line, if any.  Don't
 consider the header-line row as "partially visible", even if
 MATRIX_ROW_PARTIALLY_VISIBLE_P returns non-zero.

12 years ago* emacs-lisp/tabulated-list.el (tabulated-list-print): Fix typos.
Chong Yidong [Tue, 17 Apr 2012 15:07:21 +0000 (23:07 +0800)]
* emacs-lisp/tabulated-list.el (tabulated-list-print): Fix typos.

12 years agoAuto-commit of loaddefs files.
Glenn Morris [Tue, 17 Apr 2012 10:21:15 +0000 (06:21 -0400)]
Auto-commit of loaddefs files.

12 years agoAuto-commit of generated files.
Glenn Morris [Tue, 17 Apr 2012 10:17:40 +0000 (06:17 -0400)]
Auto-commit of generated files.

12 years agoImprove description of :advertised-binding in Lisp manual.
Chong Yidong [Tue, 17 Apr 2012 05:58:34 +0000 (13:58 +0800)]
Improve description of :advertised-binding in Lisp manual.

* doc/lispref/keymaps.texi (Menu Bar): Move most of the :advertised-binding
description to help.texi.

* doc/lispref/help.texi (Keys in Documentation): Mention :advertised-binding.

12 years agoNEWS placeholder
Glenn Morris [Tue, 17 Apr 2012 03:08:05 +0000 (20:08 -0700)]
NEWS placeholder

12 years agoMerge from pending; try to fix-up suboptimal ses ChangeLog.
Glenn Morris [Tue, 17 Apr 2012 03:06:56 +0000 (20:06 -0700)]
Merge from pending; try to fix-up suboptimal ses ChangeLog.

12 years agoAdd perl-indent-parens-as-block option (tiny change)
Peter Oliver [Tue, 17 Apr 2012 02:46:22 +0000 (19:46 -0700)]
Add perl-indent-parens-as-block option (tiny change)

* lisp/progmodes/perl-mode.el (perl-indent-parens-as-block): New option.
(perl-calculate-indent): Respect it.

Fixes: debbugs:11118

12 years ago* lisp/dired-aux.el (dired-mark-read-string): Doc fix.
Glenn Morris [Tue, 17 Apr 2012 01:52:00 +0000 (21:52 -0400)]
* lisp/dired-aux.el (dired-mark-read-string): Doc fix.

12 years agoAdd user, group name completion to dired
Dmitry Antipov [Tue, 17 Apr 2012 01:49:40 +0000 (21:49 -0400)]
Add user, group name completion to dired

Note from committer:

I modified the original patch, by adding the new collection argument
at the end of the argument list rather than in the middle.

* dired-aux.el (dired-mark-read-string): Offer optional completion.
(dired-do-chxxx): Complete chown, chgrp over users, groups.

Fixes: debbugs:7900

12 years ago* src/dired.c (Fsystem_users): Doc fix.
Glenn Morris [Tue, 17 Apr 2012 01:35:15 +0000 (21:35 -0400)]
* src/dired.c (Fsystem_users): Doc fix.

* etc/NEWS: Mention system-users, system-groups.

12 years agoAdd functions to get system user names, group names
Dmitry Antipov [Tue, 17 Apr 2012 01:29:58 +0000 (21:29 -0400)]
Add functions to get system user names, group names

Note from committer:
I removed the part that adds grp.h to AC_CHECK_HEADERS and

+#ifdef HAVE_GRP_H
 #include <grp.h>
+#endif

to src/dired.c, because the latter has unconditionally included grp.h
since 2003, and uses it eg in stat_gname.

* configure.in (AC_CHECK_FUNCS): Add getpwent, endpwent, getgrent, endgrent.

* src/dired.c (Fsystem_users, Fsystem_groups): New functions.
(syms_of_dired): Add them.

Fixes: debbugs:7900

12 years agoUse auto-hscroll-mode rather than the alias automatic-hscrolling
Glenn Morris [Tue, 17 Apr 2012 00:04:53 +0000 (20:04 -0400)]
Use auto-hscroll-mode rather than the alias automatic-hscrolling

* lisp/mouse.el (mouse-drag-track):
* lisp/speedbar.el (speedbar-frame-mode):
Use auto-hscroll-mode rather than the alias automatic-hscrolling.

12 years agoReplace independent implementations of string-prefix-p
Glenn Morris [Mon, 16 Apr 2012 23:57:09 +0000 (19:57 -0400)]
Replace independent implementations of string-prefix-p

* vc/vc.el (vc-string-prefix-p):
* vc/pcvs-util.el (cvs-string-prefix-p):
* textmodes/tex-mode.el (latex-string-prefix-p, tex-string-prefix-p):
* mpc.el (mpc-string-prefix-p):
Make all of these into obsolete aliases for string-prefix-p.
Update callers.
* vc/pcvs.el, vc/vc-dispatcher.el, vc/vc-dir.el: Update callers.

12 years agoFix thinko in previous yow.el change
Glenn Morris [Mon, 16 Apr 2012 23:07:19 +0000 (19:07 -0400)]
Fix thinko in previous yow.el change

12 years agotwo-column.el small cleanup
Glenn Morris [Mon, 16 Apr 2012 20:13:38 +0000 (16:13 -0400)]
two-column.el small cleanup

* lisp/textmodes/two-column.el: Move custom options to the start.
(frame-width): Remove compat definition.
(2C-associate-buffer, 2C-dissociate):
Use with-current-buffer rather than save-excursion.
(2C-dissociate): Force a mode-line update.
(2C-autoscroll): Use ignore-errors.

12 years agoCC Mode: Ensure searching for keywords is case sensitive.
Alan Mackenzie [Mon, 16 Apr 2012 20:01:44 +0000 (20:01 +0000)]
CC Mode: Ensure searching for keywords is case sensitive.

12 years ago* lisp/progmodes/python.el: Trivial cleanup.
Leo Liu [Mon, 16 Apr 2012 19:28:57 +0000 (03:28 +0800)]
* lisp/progmodes/python.el: Trivial cleanup.

12 years ago* eieio-opt.el (describe-class, describe-generic): Autoload trivia.
Glenn Morris [Mon, 16 Apr 2012 19:25:59 +0000 (15:25 -0400)]
* eieio-opt.el (describe-class, describe-generic): Autoload trivia.

12 years agoChangeLog fix
Glenn Morris [Mon, 16 Apr 2012 19:22:32 +0000 (15:22 -0400)]
ChangeLog fix

12 years agoHeader comment trivial fix
Glenn Morris [Mon, 16 Apr 2012 19:21:32 +0000 (15:21 -0400)]
Header comment trivial fix

12 years ago* lisp/emacs-lisp/cl-extra.el (*random-state*): Remove unnecessary declaration.
Glenn Morris [Mon, 16 Apr 2012 19:20:42 +0000 (15:20 -0400)]
* lisp/emacs-lisp/cl-extra.el (*random-state*): Remove unnecessary declaration.

12 years ago* lisp/calendar/cal-tex.el (cal-tex-end-document): Trivial clarification.
Glenn Morris [Mon, 16 Apr 2012 19:18:36 +0000 (15:18 -0400)]
* lisp/calendar/cal-tex.el (cal-tex-end-document): Trivial clarification.

12 years ago* configure.in (NS_HAVE_NSINTEGER): Remove unnecessary variable.
Glenn Morris [Mon, 16 Apr 2012 19:13:44 +0000 (15:13 -0400)]
* configure.in (NS_HAVE_NSINTEGER): Remove unnecessary variable.

12 years ago* lisp/gnus/nndraft.el (nndraft-request-list): Fix declaration.
Glenn Morris [Mon, 16 Apr 2012 19:09:19 +0000 (15:09 -0400)]
* lisp/gnus/nndraft.el (nndraft-request-list): Fix declaration.