1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-22 18:35:09 +00:00
Commit Graph

108308 Commits

Author SHA1 Message Date
Liam Stitt
076a4db2fe 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
2012-10-13 18:51:26 +08:00
Chong Yidong
0d11ff1cf2 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
2012-10-13 17:51:59 +08:00
Chong Yidong
b1367cba38 Doc fix for url-http.
* url-http.el (url-http):
* url.el (url-retrieve-internal): Doc fix.

Fixes: debbugs:6407
2012-10-13 17:37:25 +08:00
Andreas Schwab
ce2fe65ae1 * fileio.c: Formatting fixes. 2012-10-13 10:55:26 +02:00
Martin Rudalics
88ded8acca 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).
2012-10-13 09:58:53 +02:00
Gregor Zattler
7001d5793c 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
2012-10-12 19:22:36 -07:00
Chong Yidong
73f2b4abf5 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.
2012-10-13 09:18:52 +08:00
Paul Eggert
d6453ce497 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.
2012-10-12 17:52:01 -07:00
Stefan Monnier
06485aa821 * 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.
2012-10-12 16:11:50 -04:00
Stefan Monnier
bd0ffffd5a * lisp/emacs-lisp/eieio.el (lisp-imenu-generic-expression): Fix typo. 2012-10-12 16:07:58 -04:00
Stefan Monnier
57e5e467de * lisp/ldefs-boot.el: Update to reflect earlier fix in autoload.el 2012-10-12 15:08:23 -04:00
Jan Djärv
167e3640f1 * 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).
2012-10-12 19:50:39 +02:00
Juanma Barranquero
c40239dff9 src/makefile.w32-in ($(BLD)/w32select.$(O)): Update dependencies. 2012-10-12 18:32:40 +02:00
Eli Zaretskii
99b1553e07 Fix typo in last change. 2012-10-12 17:30:06 +02:00
Eli Zaretskii
2a9f109915 Update dependencies in src/makefile.w32-in.
src/makefile.w32-in ($(BLD)/fileio.$(O)): Add sys/file.h.
2012-10-12 17:22:50 +02:00
Eli Zaretskii
bb385a92ec 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.
2012-10-12 17:19:54 +02:00
Eli Zaretskii
605a3df681 Add comments about how non-GUI input works on MS-Windows. 2012-10-12 16:14:35 +02:00
Glenn Morris
98222ee58b Auto-commit of loaddefs files. 2012-10-12 06:19:14 -04:00
Jan Djärv
2b9c2e6850 * nsfont.m (nsfont_open): Remove font cache, it is not GC correct. 2012-10-12 12:01:05 +02:00
Glenn Morris
81749a2374 * src/buffer.c (Fset_buffer): Doc fix. (Bug#12624) 2012-10-11 21:47:40 -04:00
Glenn Morris
3a989246b1 rmail-header-summary fix for bug#12625
* lisp/mail/rmailsum.el (rmail-header-summary):
Fix 2010-11-26 test for multiline Subject: field.
2012-10-11 21:01:50 -04:00
Fabián Ezequiel Gallina
55cd00c8f9 * 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.
2012-10-11 21:07:25 -03:00
Stefan Monnier
9f1a4aa505 * lisp/emacs-lisp/cl-lib.el (cl--defsubst-expand): Undo last change.
* lisp/emacs-lisp/cl-macs.el (cl--defsubst-expand): Idem.
2012-10-11 16:36:23 -04:00
Stefan Monnier
389a94a53d * src/buffer.c (Fkill_buffer): Null out the overlay list(s) as well. 2012-10-11 16:32:11 -04:00
Stefan Monnier
d8cc4c00ea * 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.
2012-10-11 16:11:23 -04:00
Stefan Monnier
5253a5fd75 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.
2012-10-11 16:08:38 -04:00
Stefan Monnier
ac9fc2c779 * 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
2012-10-11 16:05:47 -04:00
Paul Eggert
7cded46f2b 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.
2012-10-11 09:23:37 -07:00
Dmitry Antipov
549c3414d9 * editfns.c (save_excursion_save): Use nil if mark points to nowhere.
(save_excursion_restore): Do not restore mark if it was not saved.
2012-10-11 17:23:12 +04:00
Kenichi Handa
d3e4228575 merge trunk 2012-10-11 20:29:47 +09:00
Kenichi Handa
cde44a7728 Re-generate charsets. Adjust for the change of admin/charset/mapfiles/*.gz 2012-10-11 20:26:26 +09:00
Paul Eggert
fd2f90cf5c * marker.c (cached_modiff): EMACS_INT, not int. 2012-10-10 21:33:12 -07:00
Paul Eggert
c1af190b72 * w32select.c (waiting_for_input): Declare by including "keyboard.h"
instead of having a wrong decl.
2012-10-10 17:32:25 -07:00
Paul Eggert
e85aafe7bd * nsmenu.m (waiting_for_input): Remove wrong decl. 2012-10-10 17:26:58 -07:00
Paul Eggert
9fa1de305a 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.
2012-10-10 13:09:47 -07:00
Paul Eggert
e738ca5624 * regex.c (immediate_quit) [emacs]: Remove duplicate decl. 2012-10-10 12:53:26 -07:00
Juanma Barranquero
29f21cdf23 src/makefile.w32-in: Update dependencies. 2012-10-10 17:59:49 +02:00
Dmitry Antipov
6aea752802 * alloc.c (mark_object): Use meaningful PVEC_NORMAL_VECTOR.
* lisp.h (enum pvec_type): Adjust comments and omit explicit
initializer for PVEC_NORMAL_VECTOR.
2012-10-10 19:31:21 +04:00
Paul Eggert
5f3f57be38 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.
2012-10-10 08:10:57 -07:00
Kenichi Handa
90e847e221 merge trunk 2012-10-10 23:47:31 +09:00
Kenichi Handa
4ef4a10d1c select.el (xselect--encode-string): If a coding is specified for selection, and that is compatible with COMPOUND_TEXT, use it. 2012-10-10 23:45:26 +09:00
Dmitry Antipov
3e98c68e76 * alloc.c (gc_sweep): Use pointer-to-a-pointer loop for buffers. 2012-10-10 18:45:07 +04:00
Martin Rudalics
9d7f027b56 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).
2012-10-10 11:36:45 +02:00
Paul Eggert
77e344e50a * commands.h (immediate_quit): Remove duplicate decl. 2012-10-09 23:39:16 -07:00
Dani Moncayo
d8e213ebe3 * doc/emacs/basic.texi (Arguments): Fix typos.
Also, remove "tiny change" tags from ChangeLogs; Dani Moncayo now has
a copyright assignment.
2012-10-10 10:52:55 +08:00
Jan Djärv
5683d7cd9d 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
2012-10-09 20:33:01 +02:00
Eli Zaretskii
b15736e6e3 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.
2012-10-09 20:10:16 +02:00
Eli Zaretskii
cf5fc6dbea 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.
2012-10-09 19:58:18 +02:00
Kazuhiro Ito
a31eeec28f * lisp/gnu/starttls.el (starttls-extra-arguments): Doc fix (tiny change)
Fixes: debbugs:12608
2012-10-09 13:55:08 -04:00
Stefan Monnier
238f3a587a * lisp/newcomment.el (comment-start-skip, comment-end-skip, comment-end):
Don't document nil as a useful value.

Fixes: debbugs:12583
2012-10-09 12:37:51 -04:00