]> code.delx.au - gnu-emacs/log
gnu-emacs
11 years agoMerge from emacs-24; up to 2012-05-08T15:19:18Z!monnier@iro.umontreal.ca
Glenn Morris [Wed, 17 Oct 2012 03:44:00 +0000 (20:44 -0700)]
Merge from emacs-24; up to 2012-05-08T15:19:18Z!monnier@iro.umontreal.ca

11 years ago* doc/emacs/search.texi (Query Replace): Document multi-buffer replacement keys.
Juri Linkov [Tue, 16 Oct 2012 23:27:40 +0000 (02:27 +0300)]
* doc/emacs/search.texi (Query Replace): Document multi-buffer replacement keys.

* doc/emacs/maintaining.texi (Tags Search): Change link "Replace" to
"Query Replace".

* lisp/replace.el (query-replace-help): Mention multi-buffer replacement
keys in the Help message.

Fixes: debbugs:12655
11 years agoChangeLog fix.
David Engster [Tue, 16 Oct 2012 15:17:21 +0000 (17:17 +0200)]
ChangeLog fix.

11 years ago* alloc.c (Fmake_byte_code): Fix typo in comment.
Dmitry Antipov [Tue, 16 Oct 2012 07:56:44 +0000 (11:56 +0400)]
* alloc.c (Fmake_byte_code): Fix typo in comment.
* print.c (print_interval): Define as static to match prototype.
* indent.c (disptab_matches_widthtab, recompute_width_table):
Convert to eassert.

11 years ago* editfns.c (get_system_name): Remove.
Dmitry Antipov [Tue, 16 Oct 2012 02:22:25 +0000 (06:22 +0400)]
* editfns.c (get_system_name): Remove.
* lisp.h (get_system_name): Remove prototype.
* xrdb.c (getenv, getpwuid, getpwnam): Remove prototypes.
(get_environ_db): Use Vsystem_name.  Avoid call to strlen.

11 years ago(install-etc): Fix previous change
Glenn Morris [Mon, 15 Oct 2012 21:57:20 +0000 (17:57 -0400)]
(install-etc): Fix previous change

11 years agoImprove previous NEWS change
Glenn Morris [Mon, 15 Oct 2012 21:00:19 +0000 (17:00 -0400)]
Improve previous NEWS change

11 years agoApply program-transform-name etc in more places (bug#12536#34)
Glenn Morris [Mon, 15 Oct 2012 20:56:07 +0000 (16:56 -0400)]
Apply program-transform-name etc in more places (bug#12536#34)

* Makefile.in (install-man, install-etc): Apply $TRANSFORM.
(clean): Delete etc/emacs.tmpdesktop.

* .bzrignore: Add etc/emacs.tmpdesktop.

* etc/NEWS: Mention this.  Unrelated copyedits.

11 years ago* lisp/erc/erc.el (erc-log): Make it into a defsubst.
Stefan Monnier [Mon, 15 Oct 2012 16:49:57 +0000 (12:49 -0400)]
* lisp/erc/erc.el (erc-log): Make it into a defsubst.
(erc-with-server-buffer, define-erc-module, erc-with-buffer)
(erc-with-all-buffers-of-server): Use `declare'.
* lisp/erc/erc-backend.el (erc-log): Adjust autoload accordingly.

11 years agoAdd comment for undef of "interface"
Daniel Colascione [Mon, 15 Oct 2012 10:10:17 +0000 (02:10 -0800)]
Add comment for undef of "interface"

11 years agoFix Fwindow_end's handling of cached position (Bug#12600).
Martin Rudalics [Mon, 15 Oct 2012 09:03:56 +0000 (11:03 +0200)]
Fix Fwindow_end's handling of cached position (Bug#12600).

* window.c (Fwindow_end): Rewrite check whether cached position
can be used (Bug#12600).
(resize_frame_windows, grow_mini_window, shrink_mini_window):
Set windows_or_buffers_changed.

11 years agoMore documentation fixes for changes to defun, defmacro, etc.
Chong Yidong [Mon, 15 Oct 2012 04:03:04 +0000 (12:03 +0800)]
More documentation fixes for changes to defun, defmacro, etc.

* doc/lispref/functions.texi (Anonymous Functions): Explicitly list the
docstring, declare, and interactive arguments to lambda.
(Defining Functions): Likewise for defun.
(Inline Functions): Likewise for defsubst.
(Declare Form): Tweak description.

* doc/lispref/macros.texi (Defining Macros):  defmacro is now a macro.
Explicitly list the docstring and declare arguments.

* emacs-lisp/byte-run.el (defsubst): Doc fix.

11 years agoFix cygw32 build break with dbus compilation
Daniel Colascione [Mon, 15 Oct 2012 01:38:07 +0000 (17:38 -0800)]
Fix cygw32 build break with dbus compilation

11 years ago* image.c (init_tiff_functions, init_imagemagick_functions)
Daniel Colascione [Sun, 14 Oct 2012 23:25:37 +0000 (15:25 -0800)]
* image.c (init_tiff_functions, init_imagemagick_functions)
(init_svg_functions): Fix cygw32 build break by using these
functions only when WINDOWSNT _and_ HAVE_NTGUI.

11 years agoFix last commit.
David Engster [Sun, 14 Oct 2012 19:31:45 +0000 (21:31 +0200)]
Fix last commit.

(semantic-analyze-possible-completions): Replace CEDET compatibility
function `cedet-called-interactively-p' with `called-interactively-p'.

11 years agoMerge bug fixes from CEDET upstream.
David Engster [Sun, 14 Oct 2012 19:24:16 +0000 (21:24 +0200)]
Merge bug fixes from CEDET upstream.

11 years agoMerge changes from CEDET upstream.
David Engster [Sun, 14 Oct 2012 19:20:28 +0000 (21:20 +0200)]
Merge changes from CEDET upstream.

* semantic.el (semantic-error-if-unparsed): New function.  Raise
  error if buffer was not parsed by Semantic (bug #12045).
  (navigate-menu, edit-menu, cedet-menu-map): Enable Semantic items
  only if buffer was parsed.  Also, replace ':active' with ':enable'
  where necessary.

* semantic/wisent/python.el
  (semantic-python-get-system-include-path): Use
  `python-shell-internal-send-string' if available to query Python
  for system paths.

* semantic/senator.el (senator-next-tag):
  (senator-previous-tag):
  (senator-go-to-up-reference): Use `semantic-error-if-unparsed'.

* semantic/complete.el (semantic-complete-jump-local):
  (semantic-complete-jump):
  (semantic-complete-jump-local-members):
  (semantic-complete-self-insert): Use `semantic-error-if-unparsed'.
  (semantic-complete-inline-project): Fix autoload cookie.

* semantic/analyze/complete.el
  (semantic-analyze-possible-completions): Check if buffer was
  parsed.  Only raise an error if function was called interactively,
  otherwise silently return nil.

* cedet.el (cedet-menu-map): Fix copy&paste typo in menu creation.

11 years ago* nsterm.m (ns_select): Count fd:s in writefs also.
Jan Djärv [Sun, 14 Oct 2012 18:28:48 +0000 (20:28 +0200)]
* nsterm.m (ns_select): Count fd:s in writefs also.

Fixes: debbugs:12422
11 years agolisp/window.el (display-buffer): Doc fix.
Eli Zaretskii [Sun, 14 Oct 2012 17:07:00 +0000 (19:07 +0200)]
lisp/window.el (display-buffer): Doc fix.

11 years agomerge trunk
Kenichi Handa [Sun, 14 Oct 2012 08:06:11 +0000 (17:06 +0900)]
merge trunk

11 years agoAdd more mappings for the charset japanese-jisx0208-1978.
Kenichi Handa [Sun, 14 Oct 2012 08:01:30 +0000 (17:01 +0900)]
Add more mappings for the charset japanese-jisx0208-1978.

11 years agoAdapt compile.el to changes in MSVC diagnostics format.
Eli Zaretskii [Sun, 14 Oct 2012 07:40:05 +0000 (09:40 +0200)]
Adapt compile.el to changes in MSVC diagnostics format.

 lisp/progmodes/compile.el (compilation-error-regexp-alist-alist):
 Adjust the msft regexp to the output of Studio 2010, and move msft
 before edg-1.  See the discussion on emacs-devel,
 http://lists.gnu.org/archive/html/emacs-devel/2012-09/msg00579.html,
 for the details.

 etc/compilation.txt (msft): Add error messages in new Studio 2010
 format.

 test/automated/compile-tests.el (compile-tests--test-regexps-data):
 Add data for msft's new format.

11 years ago* lisp/emacs-lisp/eieio.el (eieio-oset-default, eieio-oset, oset-default)
Stefan Monnier [Sun, 14 Oct 2012 01:42:48 +0000 (21:42 -0400)]
* lisp/emacs-lisp/eieio.el (eieio-oset-default, eieio-oset, oset-default)
(oset): Move uses of object-class-fast macro after its definition.

11 years ago* lisp/emacs-lisp/gv.el (if): Don't use closures in non-lexical-binding code.
Stefan Monnier [Sun, 14 Oct 2012 01:39:56 +0000 (21:39 -0400)]
* lisp/emacs-lisp/gv.el (if): Don't use closures in non-lexical-binding code.

11 years agoChangeLog fix
Glenn Morris [Sun, 14 Oct 2012 00:17:07 +0000 (17:17 -0700)]
ChangeLog fix

11 years ago* gtkutil.c (xg_set_widget_bg): Divide by 65535.
Jan Djärv [Sat, 13 Oct 2012 21:52:09 +0000 (23:52 +0200)]
* gtkutil.c (xg_set_widget_bg): Divide by 65535.

Fixes: debbugs:12612
11 years agoComment
Glenn Morris [Sat, 13 Oct 2012 20:17:16 +0000 (13:17 -0700)]
Comment

11 years agousertags updates
Glenn Morris [Sat, 13 Oct 2012 19:39:42 +0000 (12:39 -0700)]
usertags updates

11 years agomerge trunk
Kenichi Handa [Sat, 13 Oct 2012 13:11:40 +0000 (22:11 +0900)]
merge trunk

11 years agocoding.c (detect_coding): Set coding->id before calling this->detector.
Kenichi Handa [Sat, 13 Oct 2012 12:58:52 +0000 (21:58 +0900)]
coding.c (detect_coding): Set coding->id before calling this->detector.

11 years agoAdd .xz to some url code (tiny change).
Liam Stitt [Sat, 13 Oct 2012 10:51:26 +0000 (18:51 +0800)]
Add .xz to some url code (tiny change).
* url-vars.el (url-uncompressor-alist):
* url-file.el (url-file-find-possibly-compressed-file, url-file):
Recognize .xz compression.

Fixes: debbugs:11839
11 years agoAfter saving ispell dictionary, re-enable flyspell if necessary.
Chong Yidong [Sat, 13 Oct 2012 09:51:59 +0000 (17:51 +0800)]
After saving ispell dictionary, re-enable flyspell if necessary.

* lisp/textmodes/ispell.el (ispell-pdict-save): If flyspell-mode is
enabled, re-enable it.

Fixes: debbugs:11963
11 years agoDoc fix for url-http.
Chong Yidong [Sat, 13 Oct 2012 09:37:25 +0000 (17:37 +0800)]
Doc fix for url-http.

* url-http.el (url-http):
* url.el (url-retrieve-internal): Doc fix.

Fixes: debbugs:6407
11 years ago* fileio.c: Formatting fixes.
Andreas Schwab [Sat, 13 Oct 2012 08:55:26 +0000 (10:55 +0200)]
* fileio.c: Formatting fixes.

11 years agoIn debug restore window configuration when debugger-will-be-back is non-nil (Bug...
Martin Rudalics [Sat, 13 Oct 2012 07:58:53 +0000 (09:58 +0200)]
In debug restore window configuration when debugger-will-be-back is non-nil (Bug#12623).

* emacs-lisp/debug.el (debug): When debugger-will-be-back is
non-nil, restore window configuration (Bug#12623).

11 years agoSmall emacs-lisp-intro.texi correction (tiny change)
Gregor Zattler [Sat, 13 Oct 2012 02:22:36 +0000 (19:22 -0700)]
Small emacs-lisp-intro.texi correction (tiny change)

* doc/lispintro/emacs-lisp-intro.texi (Narrowing advantages):
Minor update for changed what-line implementation.

Fixes: debbugs:12629
11 years agoDocument 24.3 ImageMagick changes.
Chong Yidong [Sat, 13 Oct 2012 01:18:52 +0000 (09:18 +0800)]
Document 24.3 ImageMagick changes.

* doc/emacs/files.texi (File Conveniences): ImageMagick enabled by default.

* doc/lispref/display.texi (ImageMagick Images): ImageMagick enabled by default.

11 years agoFix some stat-related races.
Paul Eggert [Sat, 13 Oct 2012 00:52:01 +0000 (17:52 -0700)]
Fix some stat-related races.

* fileio.c (Fwrite_region): Avoid race condition if a file is
removed or renamed by some other process immediately after Emacs
writes it but before Emacs stats it.  Do not assume that stat (or
fstat) succeeds.
* image.c (slurp_file): Resolve the file name with fopen + fstat
rather than stat + fopen.
(pbm_read_file) [0]: Remove unused code with stat race.
* process.c (allocate_pty) [HAVE_PTYS && !PTY_ITERATION && !PTY_OPEN]:
Remove ineffective code with stat race.

11 years ago* src/doc.c (get_doc_string): Don't signal an error if the file is missing.
Stefan Monnier [Fri, 12 Oct 2012 20:11:50 +0000 (16:11 -0400)]
* src/doc.c (get_doc_string): Don't signal an error if the file is missing.
* lisp/help-fns.el (describe-variable, describe-function-1):
* lisp/help-mode.el (help-make-xrefs): Remove error handler, made unneeded.

11 years ago* lisp/emacs-lisp/eieio.el (lisp-imenu-generic-expression): Fix typo.
Stefan Monnier [Fri, 12 Oct 2012 20:07:58 +0000 (16:07 -0400)]
* lisp/emacs-lisp/eieio.el (lisp-imenu-generic-expression): Fix typo.

11 years ago* lisp/ldefs-boot.el: Update to reflect earlier fix in autoload.el
Stefan Monnier [Fri, 12 Oct 2012 19:08:23 +0000 (15:08 -0400)]
* lisp/ldefs-boot.el: Update to reflect earlier fix in autoload.el

11 years ago* nsterm.m (hold_event_q): New static variable.
Jan Djärv [Fri, 12 Oct 2012 17:50:39 +0000 (19:50 +0200)]
* nsterm.m (hold_event_q): New static variable.
(EV_TRAILER, sendScrollEventAtLoc:fromEvent:): Call hold_event if
! q_event_ptr.
(hold_event): New function.
(ns_read_socket): If hold_event_q have events, store them and
return.
(setPosition:portion:whole:): Send SIGIO to ourselves if apploopnr
is zero (Bug#12384).

11 years agosrc/makefile.w32-in ($(BLD)/w32select.$(O)): Update dependencies.
Juanma Barranquero [Fri, 12 Oct 2012 16:32:40 +0000 (18:32 +0200)]
src/makefile.w32-in ($(BLD)/w32select.$(O)): Update dependencies.

11 years agoFix typo in last change.
Eli Zaretskii [Fri, 12 Oct 2012 15:30:06 +0000 (17:30 +0200)]
Fix typo in last change.

11 years agoUpdate dependencies in src/makefile.w32-in.
Eli Zaretskii [Fri, 12 Oct 2012 15:22:50 +0000 (17:22 +0200)]
Update dependencies in src/makefile.w32-in.

 src/makefile.w32-in ($(BLD)/fileio.$(O)): Add sys/file.h.

11 years agoFix bug #12587 with slow startup on MS-Windows with Netlogon service.
Eli Zaretskii [Fri, 12 Oct 2012 15:19:54 +0000 (17:19 +0200)]
Fix bug #12587 with slow startup on MS-Windows with Netlogon service.

 src/fileio.c (check_existing): New function.
 (make_temp_name, Ffile_exists_p, Ffile_writable_p): Call it
 instead of calling 'stat', when what's needed is to check whether
 a file exists.  This avoids expensive system calls on MS-Windows.
 src/w32.c (init_environment): Call 'check_existing' instead of 'stat'.
 src/lread.c (openp) [WINDOWSNT]: Call 'access' instead of 'stat' to
 determine whether a file exists and is not a directory.
 src/lisp.h (check_existing): Add prototype.

11 years agoAdd comments about how non-GUI input works on MS-Windows.
Eli Zaretskii [Fri, 12 Oct 2012 14:14:35 +0000 (16:14 +0200)]
Add comments about how non-GUI input works on MS-Windows.

11 years agoAuto-commit of loaddefs files.
Glenn Morris [Fri, 12 Oct 2012 10:19:14 +0000 (06:19 -0400)]
Auto-commit of loaddefs files.

11 years ago* nsfont.m (nsfont_open): Remove font cache, it is not GC correct.
Jan Djärv [Fri, 12 Oct 2012 10:01:05 +0000 (12:01 +0200)]
* nsfont.m (nsfont_open): Remove font cache, it is not GC correct.

11 years ago* src/buffer.c (Fset_buffer): Doc fix. (Bug#12624)
Glenn Morris [Fri, 12 Oct 2012 01:47:40 +0000 (21:47 -0400)]
* src/buffer.c (Fset_buffer): Doc fix.  (Bug#12624)

11 years agormail-header-summary fix for bug#12625
Glenn Morris [Fri, 12 Oct 2012 01:01:50 +0000 (21:01 -0400)]
rmail-header-summary fix for bug#12625

* lisp/mail/rmailsum.el (rmail-header-summary):
Fix 2010-11-26 test for multiline Subject: field.

11 years ago* progmodes/python.el (python-mode-map): Replace
Fabián Ezequiel Gallina [Fri, 12 Oct 2012 00:07:25 +0000 (21:07 -0300)]
* progmodes/python.el (python-mode-map): Replace
subtitute-key-definition with proper command remapping.
(python-nav--up-list): Fix behavior for blocks on the same level.

11 years ago* lisp/emacs-lisp/cl-lib.el (cl--defsubst-expand): Undo last change.
Stefan Monnier [Thu, 11 Oct 2012 20:36:23 +0000 (16:36 -0400)]
* lisp/emacs-lisp/cl-lib.el (cl--defsubst-expand): Undo last change.
* lisp/emacs-lisp/cl-macs.el (cl--defsubst-expand): Idem.

11 years ago* src/buffer.c (Fkill_buffer): Null out the overlay list(s) as well.
Stefan Monnier [Thu, 11 Oct 2012 20:32:11 +0000 (16:32 -0400)]
* src/buffer.c (Fkill_buffer): Null out the overlay list(s) as well.

11 years ago* lisp/help-fns.el (describe-function-1): Handle autoloads w/o docstrings.
Stefan Monnier [Thu, 11 Oct 2012 20:11:23 +0000 (16:11 -0400)]
* lisp/help-fns.el (describe-function-1): Handle autoloads w/o docstrings.
* lisp/emacs-lisp/cl-lib.el (cl--defsubst-expand): Move autoload...
* lisp/emacs-lisp/cl-macs.el (cl--defsubst-expand): ...here.

11 years agoFix spurious "cl--defsubst-expand might not be defined at runtime"
Stefan Monnier [Thu, 11 Oct 2012 20:08:38 +0000 (16:08 -0400)]
Fix spurious "cl--defsubst-expand might not be defined at runtime"
* lisp/emacs-lisp/bytecomp.el (byte-compile-eval): Adjust to long-ago
changes to the format of load-history.
* src/eval.c (Fautoload): Remember previous autoload status in load-history.

11 years ago* lisp/international/mule-cmds.el (read-char-by-name): Move let-binding of
Stefan Monnier [Thu, 11 Oct 2012 20:05:47 +0000 (16:05 -0400)]
* lisp/international/mule-cmds.el (read-char-by-name): Move let-binding of
completion-ignore-case in case that var is buffer-local.

Fixes: debbugs:12615
11 years agolread.c, macros.c, marker.c, menu.c, minibuf.c: Use bool for booleans.
Paul Eggert [Thu, 11 Oct 2012 16:23:37 +0000 (09:23 -0700)]
lread.c, macros.c, marker.c, menu.c, minibuf.c: Use bool for booleans.

* lread.c (load_each_byte, new_backquote_flag, readchar)
(read_filtered_event, lisp_file_lexically_bound_p)
(safe_to_load_version, Fload, complete_filename_p, openp)
(build_load_history, readevalloop, read_escape, read1)
(string_to_number, read_vector, read_list):
* macros.c (Fstart_kbd_macro):
* marker.c (CONSIDER):
* menu.c (parse_single_submenu, digest_single_submenu)
(find_and_return_menu_selection, Fx_popup_menu):
* minibuf.c (read_minibuf_noninteractive, read_minibuf)
(Ftry_completion):
* nsmenu.m (ns_update_menubar, runMenuAt:forFrame:keymaps:):
(ns_menu_show):
* xmenu.c (set_frame_menubar, create_and_show_popup_menu)
(xmenu_show, xdialog_show):
Use bool for booleans.
* lread.c (safe_to_load_version): Rename from safe_to_load_p,
as it's not a predicate.  All uses changed.  Omit unnecessary
buffer termination.

11 years ago* editfns.c (save_excursion_save): Use nil if mark points to nowhere.
Dmitry Antipov [Thu, 11 Oct 2012 13:23:12 +0000 (17:23 +0400)]
* editfns.c (save_excursion_save): Use nil if mark points to nowhere.
(save_excursion_restore): Do not restore mark if it was not saved.

11 years agomerge trunk
Kenichi Handa [Thu, 11 Oct 2012 11:29:47 +0000 (20:29 +0900)]
merge trunk

11 years agoRe-generate charsets. Adjust for the change of admin/charset/mapfiles/*.gz
Kenichi Handa [Thu, 11 Oct 2012 11:26:26 +0000 (20:26 +0900)]
Re-generate charsets.  Adjust for the change of admin/charset/mapfiles/*.gz

11 years ago* marker.c (cached_modiff): EMACS_INT, not int.
Paul Eggert [Thu, 11 Oct 2012 04:33:12 +0000 (21:33 -0700)]
* marker.c (cached_modiff): EMACS_INT, not int.

11 years ago* w32select.c (waiting_for_input): Declare by including "keyboard.h"
Paul Eggert [Thu, 11 Oct 2012 00:32:25 +0000 (17:32 -0700)]
* w32select.c (waiting_for_input): Declare by including "keyboard.h"

instead of having a wrong decl.

11 years ago* nsmenu.m (waiting_for_input): Remove wrong decl.
Paul Eggert [Thu, 11 Oct 2012 00:26:58 +0000 (17:26 -0700)]
* nsmenu.m (waiting_for_input): Remove wrong decl.

11 years agokeyboard.c, keymap.c: Use bool for booleans.
Paul Eggert [Wed, 10 Oct 2012 20:09:47 +0000 (13:09 -0700)]
keyboard.c, keymap.c: Use bool for booleans.

* dispnew.c (sit_for): Distinguish between 3-way display_option
and boolean do_display.
* keyboard.c (single_kboard, this_command_key_count_reset)
(waiting_for_input, echoing, immediate_quit, input_pending)
(interrupt_input, interrupts_deferred, pop_kboard)
(temporarily_switch_to_single_kboard, ignore_mouse_drag_p)
(command_loop_1, adjust_point_for_property)
(safe_run_hooks_error, input_polling_used, read_char):
(help_char_p, readable_events, kbd_buffer_events_waiting)
(kbd_buffer_get_event, timer_check_2, make_lispy_event)
(lucid_event_type_list_p, get_input_pending):
(gobble_input, menu_separator_name_p, menu_bar_item)
(parse_menu_item, parse_tool_bar_item, read_char_x_menu_prompt)
(read_char_minibuf_menu_prompt, access_keymap_keyremap)
(keyremap_step, test_undefined, read_key_sequence)
(detect_input_pending, detect_input_pending_ignore_squeezables)
(detect_input_pending_run_timers, requeued_events_pending_p)
(quit_throw_to_read_char, Fset_input_interrupt_mode):
* keymap.c (get_keymap, keymap_parent, keymap_memberp)
(access_keymap_1, access_keymap, map_keymap, get_keyelt)
(Fdefine_key, Flookup_key, struct accessible_keymaps_data)
(accessible_keymaps_1, Fkey_description, push_key_description):
(shadow_lookup, struct where_is_internal_data)
(where_is_internal, Fwhere_is_internal, where_is_internal_1)
(Fdescribe_buffer_bindings, describe_map_tree, struct describe_map_elt)
(describe_map, describe_vector):
* menu.c (single_menu_item):
* nsmenu.m (ns_update_menubar):
* process.c (wait_reading_process_output):
* search.c (scan_buffer, scan_newline):
Use bool for boolean.
* keyboard.c (timers_run, swallow_events)
(detect_input_pending_run_timers):
* process.c (wait_reading_process_output):
Use unsigned for counter where wraparound-on-overflow is desired,
since unsigned is guaranteed to have that behavior and signed is not.
(read_char): Use ptrdiff_t for string length.
(get_input_pending): Remove first argument, since it was always
the same pointer-to-int (now pointer-to-boolean) &input_pending,
and behave as if it had that value.  Return new value of
input_pending.  All callers changed.
* keyboard.h (struct kboard): Use unsigned : 1 for boolean member
immediate_echo.  Use ptrdiff_t for echo_after_prompt, since it's
a string length.
* keymap.c (push_key_description): Omit last arg, which was always 1.
All callers changed.

11 years ago* regex.c (immediate_quit) [emacs]: Remove duplicate decl.
Paul Eggert [Wed, 10 Oct 2012 19:53:26 +0000 (12:53 -0700)]
* regex.c (immediate_quit) [emacs]: Remove duplicate decl.

11 years agosrc/makefile.w32-in: Update dependencies.
Juanma Barranquero [Wed, 10 Oct 2012 15:59:49 +0000 (17:59 +0200)]
src/makefile.w32-in: Update dependencies.

11 years ago* alloc.c (mark_object): Use meaningful PVEC_NORMAL_VECTOR.
Dmitry Antipov [Wed, 10 Oct 2012 15:31:21 +0000 (19:31 +0400)]
* alloc.c (mark_object): Use meaningful PVEC_NORMAL_VECTOR.
* lisp.h (enum pvec_type): Adjust comments and omit explicit
initializer for PVEC_NORMAL_VECTOR.

11 years agoClean out old termopts cruft.
Paul Eggert [Wed, 10 Oct 2012 15:10:57 +0000 (08:10 -0700)]
Clean out old termopts cruft.

* termopts.h (flow_control, meta_key): Remove unused decls.
* dispnew.c, indent.c, nsterm.m, term.c, xsettings.c, xsmfns.c:
Don't include termopts.h.

11 years agomerge trunk
Kenichi Handa [Wed, 10 Oct 2012 14:47:31 +0000 (23:47 +0900)]
merge trunk

11 years agoselect.el (xselect--encode-string): If a coding is specified for selection, and that...
Kenichi Handa [Wed, 10 Oct 2012 14:45:26 +0000 (23:45 +0900)]
select.el (xselect--encode-string): If a coding is specified for selection, and that is compatible with COMPOUND_TEXT, use it.

11 years ago* alloc.c (gc_sweep): Use pointer-to-a-pointer loop for buffers.
Dmitry Antipov [Wed, 10 Oct 2012 14:45:07 +0000 (18:45 +0400)]
* alloc.c (gc_sweep): Use pointer-to-a-pointer loop for buffers.

11 years agoIn switch-to-buffer optionally restore window point (Bug#4041).
Martin Rudalics [Wed, 10 Oct 2012 09:36:45 +0000 (11:36 +0200)]
In switch-to-buffer optionally restore window point (Bug#4041).

* window.el (switch-to-buffer-preserve-window-point): New option.
(switch-to-buffer): Obey
`switch-to-buffer-preserve-window-point' (Bug#4041).

11 years ago* commands.h (immediate_quit): Remove duplicate decl.
Paul Eggert [Wed, 10 Oct 2012 06:39:16 +0000 (23:39 -0700)]
* commands.h (immediate_quit): Remove duplicate decl.

11 years ago* doc/emacs/basic.texi (Arguments): Fix typos.
Dani Moncayo [Wed, 10 Oct 2012 02:52:55 +0000 (10:52 +0800)]
* doc/emacs/basic.texi (Arguments): Fix typos.

Also, remove "tiny change" tags from ChangeLogs; Dani Moncayo now has
a copyright assignment.

11 years agoRemove caching in nsfont.m, the general code does it (I misunderstood).
Jan Djärv [Tue, 9 Oct 2012 18:33:01 +0000 (20:33 +0200)]
Remove caching in nsfont.m, the general code does it (I misunderstood).

* nsfont.m (Vfonts_in_cache): Remove, not needed as font.c handles
caching.
(nsfont_open): Remove setting of Vfonts_in_cache.
(syms_of_nsfont): Remove initialization of Vfonts_in_cache

11 years agoFix return type of w32_last_error.
Eli Zaretskii [Tue, 9 Oct 2012 18:10:16 +0000 (20:10 +0200)]
Fix return type of w32_last_error.

 src/w32fns.c (w32_last_error): Change the return value to DWORD, to
 match what GetLastError returns.  Explain better why the function is
 needed.

11 years agoAvoid shadowing a global variable by a local one in frame.c.
Eli Zaretskii [Tue, 9 Oct 2012 17:58:18 +0000 (19:58 +0200)]
Avoid shadowing a global variable by a local one in frame.c.

 src/frame.c (delete_frame): Rename local variable 'tooltip_frame' to
 'is_tooltip_frame', to avoid confusion with its global namesake.

11 years ago* lisp/gnu/starttls.el (starttls-extra-arguments): Doc fix (tiny change)
Kazuhiro Ito [Tue, 9 Oct 2012 17:55:08 +0000 (13:55 -0400)]
* lisp/gnu/starttls.el (starttls-extra-arguments): Doc fix (tiny change)

Fixes: debbugs:12608
11 years ago* lisp/newcomment.el (comment-start-skip, comment-end-skip, comment-end):
Stefan Monnier [Tue, 9 Oct 2012 16:37:51 +0000 (12:37 -0400)]
* lisp/newcomment.el (comment-start-skip, comment-end-skip, comment-end):
Don't document nil as a useful value.

Fixes: debbugs:12583
11 years agoRevert incorrect doc fix from 2012-10-09T07:06:54Z!rgm@gnu.org
Glenn Morris [Tue, 9 Oct 2012 16:30:12 +0000 (09:30 -0700)]
Revert incorrect doc fix from 2012-10-09T07:06:54Z!rgm@gnu.org

11 years ago* trampver.texi: Update release number.
Michael Albinus [Tue, 9 Oct 2012 12:51:21 +0000 (14:51 +0200)]
* trampver.texi: Update release number.

11 years ago* net/tramp.el (tramp-debug-message): Remove
Michael Albinus [Tue, 9 Oct 2012 12:49:02 +0000 (14:49 +0200)]
* net/tramp.el (tramp-debug-message): Remove
"tramp-with-progress-reporter" from regexp of ignored functions.
(with-tramp-progress-reporter): Rename from
`tramp-with-progress-reporter'.
(with-tramp-file-property, with-tramp-connection-property): Move
from tramp-cache.el, rename from `with-file-property' and
`with-connection-property', respectively.

* net/tramp-cache.el: Remove `with-file-property' and
`with-connection-property'.

* net/tramp.el:
* net/tramp-gvfs.el:
* net/tramp-sh.el:
* net/tramp-smb.el: Adapt callees.

* net/trampver.el: Update release number.

11 years agoAuto-commit of generated files.
Glenn Morris [Tue, 9 Oct 2012 10:17:32 +0000 (06:17 -0400)]
Auto-commit of generated files.

11 years agoUpdate some function declarations
Glenn Morris [Tue, 9 Oct 2012 07:08:26 +0000 (00:08 -0700)]
Update some function declarations

* w32-fns.el (set-message-beep):
* term/w32-win.el (set-message-beep): Update declarations.

11 years ago* lisp/newcomment.el (comment-normalize-vars): Doc fix (presumably).
Glenn Morris [Tue, 9 Oct 2012 07:06:54 +0000 (00:06 -0700)]
* lisp/newcomment.el (comment-normalize-vars): Doc fix (presumably).

11 years agoMake cusver handle options moved from C to lisp
Glenn Morris [Tue, 9 Oct 2012 07:00:23 +0000 (00:00 -0700)]
Make cusver handle options moved from C to lisp

* admin/admin.el (cusver-scan-cus-start): New function.
(cusver-check): Scan old cus-start.el.

11 years ago* lisp/bindings.el (mode-line-toggle-read-only, mode-line-toggle-modified)
Stefan Monnier [Tue, 9 Oct 2012 06:41:07 +0000 (02:41 -0400)]
* lisp/bindings.el (mode-line-toggle-read-only, mode-line-toggle-modified)
(mode-line-widen, mode-line-input-method-map)
(mode-line-coding-system-map, mode-line-remote)
(mode-line-unbury-buffer, mode-line-bury-buffer)
(mode-line-next-buffer, mode-line-previous-buffer):
Replace save-selected-window+select-window => with-selected-window.

11 years ago* lisp/progmodes/cc-bytecomp.el (cc-bytecomp-defmacro): Remove, unused.
Stefan Monnier [Tue, 9 Oct 2012 06:36:16 +0000 (02:36 -0400)]
* lisp/progmodes/cc-bytecomp.el (cc-bytecomp-defmacro): Remove, unused.
* lisp/progmodes/cc-vars.el (bq-process): Remove, unused.

11 years agoChangeLog fixes
Glenn Morris [Tue, 9 Oct 2012 06:33:51 +0000 (23:33 -0700)]
ChangeLog fixes

11 years ago* lisp/emacs-lisp/cl-macs.el (cl-defstruct): Obey the :read-only property.
Stefan Monnier [Tue, 9 Oct 2012 06:01:10 +0000 (02:01 -0400)]
* lisp/emacs-lisp/cl-macs.el (cl-defstruct): Obey the :read-only property.

11 years agoshr.el (shr-insert): \r is also not inserted, so don't try to delete it
Lars Magne Ingebrigtsen [Tue, 9 Oct 2012 02:28:34 +0000 (02:28 +0000)]
shr.el (shr-insert): \r is also not inserted, so don't try to delete it

11 years agoImplemented `backward-up-list'-like navigation.
Fabián Ezequiel Gallina [Tue, 9 Oct 2012 02:07:26 +0000 (23:07 -0300)]
Implemented `backward-up-list'-like navigation.
* progmodes/python.el (python-nav-up-list)
(python-nav-backward-up-list): New functions.
(python-mode-map): Define substitute key for backward-up-list to
python-nav-backward-up-list.

11 years ago* progmodes/python.el (python-fill-paragraph): Rename from
Fabián Ezequiel Gallina [Mon, 8 Oct 2012 22:18:05 +0000 (19:18 -0300)]
* progmodes/python.el (python-fill-paragraph): Rename from
python-fill-paragraph-function.  Fixed fill-paragraph for
decorators.

Fixes: debbugs:12605
11 years agoMinor tweaks to recently-changed code.
Paul Eggert [Mon, 8 Oct 2012 22:14:39 +0000 (15:14 -0700)]
Minor tweaks to recently-changed code.

Space before paren, avoid overparenthesization, etc.

11 years ago* progmodes/python.el (python-shell-output-filter): Handle extra
Fabián Ezequiel Gallina [Mon, 8 Oct 2012 21:51:02 +0000 (18:51 -0300)]
* progmodes/python.el (python-shell-output-filter): Handle extra
carriage return in OSX.

Fixes: debbugs:12409
11 years agoFix shell handling of unbalanced quotes and parens in output.
Fabián Ezequiel Gallina [Mon, 8 Oct 2012 21:30:36 +0000 (18:30 -0300)]
Fix shell handling of unbalanced quotes and parens in output.
* progmodes/python.el (python-rx-constituents): Added
string-delimiter.
(python-syntax-propertize-function): Use it.
(python-shell-output-syntax-table): New var.
(inferior-python-mode): Prevent unbalanced parens/quotes from
previous output mess with current input context.

11 years agoFix wording in src/ChangeLog entries from last commits.
Eli Zaretskii [Mon, 8 Oct 2012 19:58:54 +0000 (21:58 +0200)]
Fix wording in src/ChangeLog entries from last commits.

11 years ago* semantic/bovine/el.el: Add `semantic-default-elisp-setup' to
David Engster [Mon, 8 Oct 2012 19:40:50 +0000 (21:40 +0200)]
* semantic/bovine/el.el: Add `semantic-default-elisp-setup' to
  `emacs-lisp-mode-hook'.  This was accidentally removed during the
  CEDET update (2012-10-01T18:10:29Z!cyd@gnu.org).

11 years ago* xdisp.c (start_hourglass): Call w32_note_current_window when
Daniel Colascione [Mon, 8 Oct 2012 19:22:42 +0000 (11:22 -0800)]
* xdisp.c (start_hourglass): Call w32_note_current_window when
HAVE_NTGUI but not WINDOWSNT, resolving a problem that caused Emacs to
display the hourglass cursor forever.