bpt/emacs.git
10 years ago* epa-hook.el (epa-file-encrypt-to): Quote `safe-local-variable'
Tassilo Horn [Mon, 26 Aug 2013 11:03:09 +0000 (13:03 +0200)]
* epa-hook.el (epa-file-encrypt-to): Quote `safe-local-variable'
lambda expression in order to have `describe-variable' display it.

10 years ago* window.h (struct window): Replace last_cursor with last_cursor_vpos
Dmitry Antipov [Mon, 26 Aug 2013 09:33:37 +0000 (13:33 +0400)]
* window.h (struct window): Replace last_cursor with last_cursor_vpos
because this is the only last cursor data we need to keep and consult.
* window.c (replace_window, set_window_buffer, Fsplit_window_internal):
* xdisp.c (mark_window_display_accurate_1, try_cursor_movement):
Adjust users.

10 years ago* net/tramp-sh.el (tramp-sh-handle-verify-visited-file-modtime):
Michael Albinus [Mon, 26 Aug 2013 06:59:53 +0000 (08:59 +0200)]
* net/tramp-sh.el (tramp-sh-handle-verify-visited-file-modtime):
BUF can be optional.  (Bug#15186)

10 years agoFix recovering from possible decompression error. Since
Dmitry Antipov [Mon, 26 Aug 2013 05:32:47 +0000 (09:32 +0400)]
Fix recovering from possible decompression error.  Since
insert_from_gap doesn't always move point, we can't use PT as
the position where the partially decompressed data ends, and
should count how may bytes was produced so far.
* decompress.c (struct decompress_unwind_data): Add nbytes member.
(unwind_decompress): Really delete partially uncompressed data.
(Fzlib_decompress_region): Take decompressed data size into account.

10 years ago* alloc.c (sweep_vectors): Do not initialize 'block' twice.
Dmitry Antipov [Mon, 26 Aug 2013 05:26:06 +0000 (09:26 +0400)]
* alloc.c (sweep_vectors): Do not initialize 'block' twice.

10 years ago* syntax.c (init_syntax_once): Adjust comment and do an early
Dmitry Antipov [Mon, 26 Aug 2013 05:20:59 +0000 (09:20 +0400)]
* syntax.c (init_syntax_once): Adjust comment and do an early
initialization of Qchar_table_extra_slots just once...
* casetab.c (init_casetab_once):
* category.c (init_category_once):
* character.c (syms_of_character):
* coding.c (syms_of_coding):
* xdisp.c (syms_of_xdisp): ...and omit it here.

10 years agoFix broken customization in Flymake.
Xue Fuqiao [Sun, 25 Aug 2013 22:30:56 +0000 (06:30 +0800)]
Fix broken customization in Flymake.

* lisp/progmodes/flymake.el (flymake-get-real-file-name-function):
Fix broken customization.  (Bug#15184)

10 years agoImprove indentation of bracelists defined by macros (without "=").
Alan Mackenzie [Sun, 25 Aug 2013 21:06:07 +0000 (21:06 +0000)]
Improve indentation of bracelists defined by macros (without "=").

* progmodes/cc-engine.el (c-inside-bracelist-p): When a macro
expansion begins with "{", regard it as bracelist when it doesn't
contain a ";".

10 years agoAdd a question into configure.bat whether the user want to continue at
Vincent Belaïche [Sun, 25 Aug 2013 20:11:56 +0000 (22:11 +0200)]
Add a question into configure.bat whether the user want to continue at
his/her own risks.

10 years ago* INSTALL: Refer to INSTALL.MSYS.
Glenn Morris [Sun, 25 Aug 2013 19:46:41 +0000 (12:46 -0700)]
* INSTALL: Refer to INSTALL.MSYS.

10 years ago* nt/configure.bat: Disable it.
Glenn Morris [Sun, 25 Aug 2013 19:44:59 +0000 (12:44 -0700)]
* nt/configure.bat: Disable it.
Ref http://lists.gnu.org/archive/html/emacs-devel/2013-08/msg00705.html

10 years agoParse C++ inher-intro when there's a template split over 2 lines.
Alan Mackenzie [Sun, 25 Aug 2013 13:52:14 +0000 (13:52 +0000)]
Parse C++ inher-intro when there's a template split over 2 lines.

* progmodes/cc-engine.el (c-guess-basic-syntax CASE 5C): Code more
rigorously the search for "class" etc. followed by ":".

* progmodes/cc-langs.el (c-opt-<>-sexp-key): Make the value for
random languages a regexp which never matches rather than nil.

10 years agoHandle "/"s more accurately in test for virtual semicolons (AWK Mode).
Alan Mackenzie [Sun, 25 Aug 2013 10:09:56 +0000 (10:09 +0000)]
Handle "/"s more accurately in test for virtual semicolons (AWK Mode).

* progmodes/cc-awk.el (c-awk-one-line-possibly-open-string-re)
(c-awk-regexp-one-line-possibly-open-char-list-re)
(c-awk-one-line-possibly-open-regexp-re)
(c-awk-one-line-non-syn-ws*-re): Remove.
(c-awk-possibly-open-string-re, c-awk-non-/-syn-ws*-re)
(c-awk-space*-/-re, c-awk-space*-regexp-/-re)
(c-awk-space*-unclosed-regexp-/-re): New constants.
(c-awk-at-vsemi-p): Reformulate better to recognize "/"s which
aren't regexp delimiters.

* progmodes/cc-engine.el (c-crosses-statement-barrier-p): Add in
handling for a rare situation in AWK Mode involving unterminated
strings/regexps.

10 years agoAdd commentary for the last commit.
Eli Zaretskii [Sat, 24 Aug 2013 15:21:05 +0000 (18:21 +0300)]
Add commentary for the last commit.

10 years agoFix bug #15175 with cursor on boxed characters from display tables.
Eli Zaretskii [Sat, 24 Aug 2013 12:59:13 +0000 (15:59 +0300)]
Fix bug #15175 with cursor on boxed characters from display tables.

 src/xdisp.c (get_next_display_element): Don't apply to characters
 from a display vector the logic of setting it->end_of_box_run_p
 suitable for characters from a buffer.

10 years agoFix bug #15176 with setting directory times on MS-Windows.
Eli Zaretskii [Sat, 24 Aug 2013 10:15:01 +0000 (13:15 +0300)]
Fix bug #15176 with setting directory times on MS-Windows.

 src/w32.c (fdutimens): Call 'utime', which is implemented on w32.c
 to handle directories, rather than '_utime' which doesn't.

10 years ago* gtkutil.c (x_wm_set_size_hint): Don't set hints when maximized
Jan Djärv [Sat, 24 Aug 2013 08:43:36 +0000 (10:43 +0200)]
* gtkutil.c (x_wm_set_size_hint): Don't set hints when maximized
or fullscreen.

Fixes: debbugs:14627

10 years agoSystem-dependent integer overflow fixes.
Paul Eggert [Sat, 24 Aug 2013 02:23:34 +0000 (19:23 -0700)]
System-dependent integer overflow fixes.

* process.c (Fset_process_window_size): Signal an error if
the window size is outside the range supported by the lower level.
* sysdep.c (set_window_size): Return negative on error,
nonnegative on success, rather than -1, 0, 1 on not in system,
failure, success.  This is simpler.  Caller changed.
(serial_configure): Remove unnecessary initialization of local.
(procfs_get_total_memory) [GNU_LINUX]: Don't assume system memory
size fits in unsigned long; this isn't true on some 32-bit hosts.
Avoid buffer overrun if some future version of /proc/meminfo has a
variable name longer than 20 bytes.
(system_process_attributes) [__FreeBSD__]:
Don't assume hw.availpages fits in 'int'.

10 years ago* lisp/files.el (auto-mode-alist): Use sh-mode for .bash_history.
Glenn Morris [Fri, 23 Aug 2013 18:58:41 +0000 (14:58 -0400)]
* lisp/files.el (auto-mode-alist): Use sh-mode for .bash_history.

10 years agoDon't let very long directory names overrun the stack.
Paul Eggert [Fri, 23 Aug 2013 17:57:07 +0000 (10:57 -0700)]
Don't let very long directory names overrun the stack.

Fix some related minor problems involving "//", vfork.
* callproc.c (encode_current_directory): New function.
(call_process): Don't append "/"; not needed.
* fileio.c (file_name_as_directory_slop): New constant.
(file_name_as_directory): Allow SRC to be longer than SRCLEN;
this can save the caller having to alloca.
(Ffile_name_as_directory, Fdirectory_file_name, Fexpand_file_name):
Use SAFE_ALLOCA, not alloca.
(directory_file_name, Fexpand_file_name): Leave leading "//"
alone, since it can be special even on POSIX platforms.
* callproc.c (call_process):
* process.c (Fformat_network_address):
* sysdep.c (sys_subshell):
Use encode_current_directory rather than rolling our own.
(create_process): No need to encode directory; caller does that now.
* process.h (encode_current_directory): New decl.
* sysdep.c (sys_subshell): Work even if vfork trashes saved_handlers.
Rework to avoid 'goto xyzzy;'.

10 years ago* lisp/files.el (create-file-buffer): Rework previous change.
Glenn Morris [Fri, 23 Aug 2013 17:34:09 +0000 (13:34 -0400)]
* lisp/files.el (create-file-buffer): Rework previous change.

10 years ago* lisp/files.el (interpreter-mode-alist): Use tcl-mode for expect scripts.
Glenn Morris [Fri, 23 Aug 2013 17:09:09 +0000 (13:09 -0400)]
* lisp/files.el (interpreter-mode-alist): Use tcl-mode for expect scripts.

10 years ago* files.el (create-file-buffer): Handle a file whose basename is all spaces.
Glenn Morris [Fri, 23 Aug 2013 17:08:19 +0000 (13:08 -0400)]
* files.el (create-file-buffer): Handle a file whose basename is all spaces.

Fixes: debbugs:15162

10 years ago* lisp/textmodes/fill.el (fill-match-adaptive-prefix): Don't throw away
Stefan Monnier [Fri, 23 Aug 2013 15:31:45 +0000 (11:31 -0400)]
* lisp/textmodes/fill.el (fill-match-adaptive-prefix): Don't throw away
text-properties.

Fixes: debbugs:15155

10 years ago* lisp/calc/calc-keypd.el (calc-keypad-execute): `x-flush-mouse-queue' doesn't
Stefan Monnier [Fri, 23 Aug 2013 15:21:19 +0000 (11:21 -0400)]
* lisp/calc/calc-keypd.el (calc-keypad-execute): `x-flush-mouse-queue' doesn't
exist any more.
(calc-keypad-redraw): Remove unused var `pad'.
(calc-keypad-press): Remove unused var `menu'.

10 years agoFix bug #15155 with ignoring face remapping for strings from prefix properties.
Eli Zaretskii [Fri, 23 Aug 2013 14:25:39 +0000 (17:25 +0300)]
Fix bug #15155 with ignoring face remapping for strings from prefix properties.

 src/xdisp.c (handle_face_prop): If the default face was remapped use
 the remapped face for strings from prefix properties.

10 years agoAuto-commit of generated files.
Glenn Morris [Fri, 23 Aug 2013 10:17:44 +0000 (06:17 -0400)]
Auto-commit of generated files.

10 years agoIn display-buffer-pop-up-frame make BUFFER current (Bug#15133).
Martin Rudalics [Fri, 23 Aug 2013 06:52:19 +0000 (08:52 +0200)]
In display-buffer-pop-up-frame make BUFFER current (Bug#15133).

* window.el (display-buffer-pop-up-frame): Call pop-up-frame-function
with BUFFER current so `make-frame' will use it as the new frame's
buffer (Bug#15133).

10 years ago* window.c (struct save_window_data): Fix typo.
Dmitry Antipov [Fri, 23 Aug 2013 04:17:04 +0000 (08:17 +0400)]
* window.c (struct save_window_data): Fix typo.

10 years agoMinor cleanup for redisplay interface and few related functions.
Dmitry Antipov [Fri, 23 Aug 2013 04:03:25 +0000 (08:03 +0400)]
Minor cleanup for redisplay interface and few related functions.
* frame.h (enum text_cursor_kinds): Move from here...
* dispextern.h (enum text_cursor_kinds): ...to here.
(toplevel): Drop unnecessary declarations.
(struct redisplay_interface): Use bool and enum text_cursor_kinds
in update_window_end_hook and draw_window_cursor functions.
(display_and_set_cursor, x_update_cursor): Adjust prototypes.
* nsterm.m (ns_update_window_end, ns_draw_window_cursor):
* w32term.c (x_update_window_end,w32_draw_window_cursor):
* xterm.c (x_update_window_end, x_draw_window_cursor):
* xdisp.c (display_and_set_cursor, update_window_cursor)
(update_cursor_in_window_tree, x_update_cursor): Use bool and
enum text_cursor_kinds where appropriate.

10 years agoRedesign redisplay interface to drop updated_row and updated_area.
Dmitry Antipov [Fri, 23 Aug 2013 03:03:37 +0000 (07:03 +0400)]
Redesign redisplay interface to drop updated_row and updated_area.
* dispextern.h (updated_row, updated_area): Remove declaration.
(struct redisplay_interface): Pass glyph row and row area parameters
to write_glyphs, insert_glyphs and clear_end_of_line functions.
(x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
Adjust prototypes.
* dispnew.c (updated_row, updated_area): Remove.
(redraw_overlapped_rows, update_window_line): Adjust user.
(update_marginal_area, update_text_area): Likewise.  Pass updated row
as a parameter.  Prefer enum glyph_row_area to int where appropriate.
* xdisp.c (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
Adjust users.

10 years ago* process.c (flush_pending_output): Remove stub.
Paul Eggert [Thu, 22 Aug 2013 18:29:51 +0000 (11:29 -0700)]
* process.c (flush_pending_output): Remove stub.

All uses removed.

10 years ago* configure.ac (EMACS_CONFIG_OPTIONS): Quote systematically.
Paul Eggert [Thu, 22 Aug 2013 17:35:00 +0000 (10:35 -0700)]
* configure.ac (EMACS_CONFIG_OPTIONS): Quote systematically.

This improves on the patch already installed, by quoting options
that contain spaces and suchlike systematically, so that
EMACS_CONFIG_OPTIONS is no longer ambiguous when options contain
these characters.

Fixes: debbugs:13274

10 years ago* lisp/erc/erc.el: Use lexical-binding.
Stefan Monnier [Thu, 22 Aug 2013 04:06:45 +0000 (00:06 -0400)]
* lisp/erc/erc.el: Use lexical-binding.
(erc-user-full-name): Minor CSE simplification.
(erc-mode-map): Assume command-remapping is available.
(erc-once-with-server-event): Replace `forms' arg with a function arg.
(erc-once-with-server-event-global): Remove.
(erc-ison-p): Adjust to change in erc-once-with-server-event.
(erc-get-buffer-create): Remove arg `proc'.
(iswitchb-make-buflist-hook): Declare.
(erc-setup-buffer): Use pcase; avoid ((lambda ..) ..).
(read-passwd): Assume it exists.
(erc-display-line, erc-cmd-IDLE): Avoid add-to-list, adjust to change
in erc-once-with-server-event.
(erc-cmd-JOIN, erc-set-channel-limit, erc-set-channel-key)
(erc-add-query): Minor CSE simplification.
(erc-cmd-BANLIST, erc-cmd-MASSUNBAN): Adjust to change
in erc-once-with-server-event.
(erc-echo-notice-in-user-and-target-buffers): Avoid add-to-list.
* lisp/erc/erc-track.el: Use lexical-binding.
(erc-make-mode-line-buffer-name): Use closures instead of `(lambda...).
(erc-faces-in): Avoid add-to-list.
* lisp/erc/erc-notify.el: Use lexical-binding.
(erc-notify-timer): Adjust to change in erc-once-with-server-event.
(erc-notify-QUIT): Use a closure instead of `(lambda...).
* lisp/erc/erc-list.el: Use lexical-binding.
(erc-list-install-322-handler, erc-cmd-LIST): Adjust to change in
erc-once-with-server-event.
* lisp/erc/erc-button.el: Use lexical-binding.
(erc-button-next-function): Use a closure instead of `(lambda...).

10 years ago* lisp/calendar/timeclock.el: Minor cleanups.
Stefan Monnier [Thu, 22 Aug 2013 01:09:08 +0000 (21:09 -0400)]
* lisp/calendar/timeclock.el: Minor cleanups.
(timeclock-ask-before-exiting, timeclock-use-display-time): Use `symbol'.
(timeclock-modeline-display): Define as alias before the actual definition.
(timeclock-mode-line-display): Use define-minor-mode.
(timeclock-day-list-template): Make it a function, add an argument.
(timeclock-day-list-required, timeclock-day-list-length)
(timeclock-day-list-debt, timeclock-day-list-span)
(timeclock-day-list-break): Adjust calls accordingly.

10 years ago* callproc.c: Fix race that killed background processes.
Paul Eggert [Wed, 21 Aug 2013 21:27:30 +0000 (14:27 -0700)]
* callproc.c: Fix race that killed background processes.

(call_process): New arg TEMPFILE_INDEX.  Callers changed.
Record deleted process-id in critical section, not afterwards.
Don't mistakenly kill process created by a call-process invocation
that discards output and does not wait.

Fixes: debbugs:15144

10 years agoImported EIEIO test suite from CEDET upstream
David Engster [Wed, 21 Aug 2013 19:42:52 +0000 (21:42 +0200)]
Imported EIEIO test suite from CEDET upstream

* automated/eieio-tests.el, automated/eieio-test-persist.el:
* automated/eieio-test-methodinvoke.el: EIEIO tests from CEDET
  upstream.  Changed to use ERT.

10 years ago* lisp/emacs-lisp/pp.el (pp-eval-expression, pp-macroexpand-expression):
Stefan Monnier [Wed, 21 Aug 2013 18:26:15 +0000 (14:26 -0400)]
* lisp/emacs-lisp/pp.el (pp-eval-expression, pp-macroexpand-expression):
Use read--expression so that completion works again.

10 years agoAuto-commit of generated files.
Glenn Morris [Wed, 21 Aug 2013 10:17:37 +0000 (06:17 -0400)]
Auto-commit of generated files.

10 years agoFix compilation with GC_MARK_STACK == GC_USE_GCPROS_AS_BEFORE
Dmitry Antipov [Wed, 21 Aug 2013 07:02:45 +0000 (11:02 +0400)]
Fix compilation with GC_MARK_STACK == GC_USE_GCPROS_AS_BEFORE
and GC_MARK_STACK == GC_USE_GCPROS_CHECK_ZOMBIES.
* alloc.c (toplevel): Remove unnecessary nested #if...#endif.
(mark_maybe_object) [!GC_MARK_STACK]: Define to emacs_abort
to shut up compiler in mark_object.
(dump_zombies): Convert to global and add EXTERNALLY_VISIBLE.

10 years agoPort close-on-exec pty creation to FreeBSD 9.1-RELEASE.
Paul Eggert [Wed, 21 Aug 2013 06:11:50 +0000 (23:11 -0700)]
Port close-on-exec pty creation to FreeBSD 9.1-RELEASE.

* configure.ac (PTY_OPEN): If posix_openpt with O_CLOEXEC fails
and reports EINVAL, try it again without O_CLOEXEC.  This should
port PTY_OPEN to FreeBSD 9, which stupidly rejects O_CLOEXEC.
What were they thinking?

Fixes: debbugs:15129

10 years ago* process.c (allocate_pty) [PTY_OPEN]: Set fd's FD_CLOEXEC flag.
Paul Eggert [Wed, 21 Aug 2013 05:39:51 +0000 (22:39 -0700)]
* process.c (allocate_pty) [PTY_OPEN]: Set fd's FD_CLOEXEC flag.

We can't portably rely on PTY_OPEN doing that, even if
it calls posix_openpt with O_CLOEXEC.

10 years agoAdd rudimentary inferior shell interaction
Sam Steingold [Wed, 21 Aug 2013 01:16:27 +0000 (21:16 -0400)]
Add rudimentary inferior shell interaction
* lisp/progmodes/sh-script.el (sh-shell-process): New buffer-local variable.
(sh-set-shell): Reset it.
(sh-show-shell, sh-cd-here, sh-send-line-or-region-and-step): New
commands (bound to C-c C-z, C-c C-d, and C-c C-n).

10 years ago* lisp/align.el: Use lexical-binding.
Stefan Monnier [Tue, 20 Aug 2013 22:13:29 +0000 (18:13 -0400)]
* lisp/align.el: Use lexical-binding.
(align-region): Simplify accordingly.

10 years agosrc/character.c (string_char): Improve commentary.
Kenichi Handa [Tue, 20 Aug 2013 14:56:03 +0000 (17:56 +0300)]
src/character.c (string_char): Improve commentary.

10 years agoDocument problems with Windows file names that end in blanks.
Eli Zaretskii [Tue, 20 Aug 2013 14:49:09 +0000 (17:49 +0300)]
Document problems with Windows file names that end in blanks.

 doc/lispref/files.texi (Information about Files): Mention file names with
 trailing blanks on MS-Windows.  (Bug#15130)

10 years ago* minibuffer.el (completion--sifn-requote): Bind `non-essential'.
Michael Albinus [Tue, 20 Aug 2013 10:04:13 +0000 (12:04 +0200)]
* minibuffer.el (completion--sifn-requote): Bind `non-essential'.

* rfn-eshadow.el (rfn-eshadow-update-overlay): Move binding of
`non-essential' up.

10 years ago* Makefile.in (distclean, bootstrap-clean, maintainer-clean):
Paul Eggert [Tue, 20 Aug 2013 08:30:24 +0000 (01:30 -0700)]
* Makefile.in (distclean, bootstrap-clean, maintainer-clean):

Fix shell-operator precedence problem in previous change.

10 years agoRemove stray execute bit
Glenn Morris [Tue, 20 Aug 2013 06:39:17 +0000 (23:39 -0700)]
Remove stray execute bit

10 years ago* Makefile.in (distclean, bootstrap-clean, maintainer-clean):
Glenn Morris [Tue, 20 Aug 2013 06:36:10 +0000 (23:36 -0700)]
* Makefile.in (distclean, bootstrap-clean, maintainer-clean):
Clean test/automated if present.

10 years ago* image.c (SIGNATURE_DIGESTSIZE): Remove.
Paul Eggert [Tue, 20 Aug 2013 00:51:35 +0000 (17:51 -0700)]
* image.c (SIGNATURE_DIGESTSIZE): Remove.

(struct animation_cache): Make signature a flexible array member.
All uses changed.  This is a tad slower but may insulate us better
from future changes to ImageMagick.

10 years ago* image.c: Shrink memory needed for animation cache.
Paul Eggert [Mon, 19 Aug 2013 20:47:27 +0000 (13:47 -0700)]
* image.c: Shrink memory needed for animation cache.

(SIGNATURE_DIGESTSIZE): New constant.
(struct animation_cache): Make 'signature' a fixed size array of bytes.
(imagemagick_create_cache): Copy the signature.  This saves
several KB of memory that ImageMagick wastes per signature.
Don't bother updating the update_time, as the caller does that now.
(imagemagick_prune_animation_cache): Don't destroy the signature, as
it's a fixed size struct member now.
(imagemagick_get_animation_cache): Always destroy the signature,
as it's now imagemagick_create_cache's responsibility to copy it.
Avoid duplicate calls to strcmp and to imagemagick_create_cache,
and use memcmp rather than strcmp.
eassert that ImageMagick returns a signature of the specified length.

10 years ago(imagemagick_get_animation_cache): Fix memory leak.
Lars Magne Ingebrigtsen [Mon, 19 Aug 2013 17:56:58 +0000 (19:56 +0200)]
(imagemagick_get_animation_cache): Fix memory leak.

10 years ago* image.c: Space before paren.
Paul Eggert [Mon, 19 Aug 2013 16:24:06 +0000 (09:24 -0700)]
* image.c: Space before paren.

10 years agoFix previous commit.
Lars Magne Ingebrigtsen [Mon, 19 Aug 2013 15:14:42 +0000 (17:14 +0200)]
Fix previous commit.

(imagemagick_get_animation_cache): Revert to previous definition
so that it actually works.  But keep the memory leak fix.

10 years ago* image.c (imagemagick_get_animation_cache): Don't segfault on each invocation.
Lars Magne Ingebrigtsen [Mon, 19 Aug 2013 14:52:52 +0000 (16:52 +0200)]
* image.c (imagemagick_get_animation_cache): Don't segfault on each invocation.

Bug introduced by 2013-08-19T07:01:37Z!eggert@cs.ucla.edu, which obviously hadn't even been
tested once.

10 years agoAuto-commit of generated files.
Glenn Morris [Mon, 19 Aug 2013 10:17:37 +0000 (06:17 -0400)]
Auto-commit of generated files.

10 years ago* image.c: Fix animation cache signature memory leak.
Paul Eggert [Mon, 19 Aug 2013 07:01:37 +0000 (00:01 -0700)]
* image.c: Fix animation cache signature memory leak.

Fix some other minor performance problems while we're at it.
(imagemagick_create_cache): Clear just the members that
need clearing.  Don't set update_time, as caller does that now.
(imagemagick_prune_animation_cache, imagemagick_get_animation_cache):
Simplify by using pointer-to-pointer instead of a prev pointer.
(imagemagick_prune_animation_cache): Use make_emacs_time rather
than EMACS_TIME_FROM_DOUBLE, and DestroyString rather than free.
(imagemagick_get_animation_cache): Don't xstrdup the image signature;
it's already a copy.  Free the signature probe unless it's cached.

10 years ago* process.c (handle_child_signal): Fix crash; deleted pid.
Paul Eggert [Mon, 19 Aug 2013 05:46:17 +0000 (22:46 -0700)]
* process.c (handle_child_signal): Fix crash; deleted pid.

This was introduced by my 2013-08-12 fix for Bug#15035.

Fixes: debbugs:15106

10 years agoMerge from gnulib.
Paul Eggert [Mon, 19 Aug 2013 05:23:05 +0000 (22:23 -0700)]
Merge from gnulib.

This incorporates:
2013-08-15 warnings: minor optimization
2013-08-15 warnings: check -Wfoo rather than -Wno-foo

10 years agoGnus: Exclude iso-2022-jp-2 and shift_jis from the default value set to mm-coding...
Katsumi Yamaoka [Mon, 19 Aug 2013 05:10:33 +0000 (05:10 +0000)]
Gnus: Exclude iso-2022-jp-2 and shift_jis from the default value set to mm-coding-system-priorities for Japanese users

10 years ago* image.c (imagemagick_create_cache, imagemagick_get_animation_cache)
Dmitry Antipov [Mon, 19 Aug 2013 04:24:19 +0000 (08:24 +0400)]
* image.c (imagemagick_create_cache, imagemagick_get_animation_cache)
(imagemagick_prune_animation_cache): Now static.

10 years agoMinor improving in indexing of buffer position.
Xue Fuqiao [Sun, 18 Aug 2013 23:12:32 +0000 (07:12 +0800)]
Minor improving in indexing of buffer position.

* doc/lispref/positions.texi (Positions): Improve indexing.

10 years agoMinor improving in indexing of "region".
Eli Zaretskii [Sun, 18 Aug 2013 19:25:15 +0000 (22:25 +0300)]
Minor improving in indexing of "region".

 doc/lispref/markers.texi (The Region): Improve indexing.

10 years ago* image.c (imagemagick_get_animation_cache): Don't segfault when
Lars Magne Ingebrigtsen [Sun, 18 Aug 2013 19:18:43 +0000 (21:18 +0200)]
* image.c (imagemagick_get_animation_cache): Don't segfault when
pruning all entries.

10 years agoChange size of static heap on Cygwin; report maximum usage after dumping.
Ken Brown [Sun, 18 Aug 2013 17:37:31 +0000 (13:37 -0400)]
Change size of static heap on Cygwin; report maximum usage after dumping.

* src/sheap.c (STATIC_HEAP_SIZE): Adjust to current needs; use bigger
static heap if ENABLE_CHECKING is defined.
(max_bss_sbrk_ptr): New variable.
(bss_sbrk): Use it.
(report_sheap_usage): Report maximum static heap usage instead of
ending static heap usage.

10 years agoFix a minor issue with loading zlib DLL on MS-Windows.
Eli Zaretskii [Sat, 17 Aug 2013 17:18:07 +0000 (20:18 +0300)]
Fix a minor issue with loading zlib DLL on MS-Windows.

 src/decompress.c (Fzlib_available_p) [WINDOWSNT]: Update the value
 of zlib_initialized according to the results of calling
 init_zlib_functions.

10 years ago* text.texi (Case Changes): Fix an `args-out-of-range' error in the example.
Xue Fuqiao [Sat, 17 Aug 2013 14:14:41 +0000 (22:14 +0800)]
* text.texi (Case Changes): Fix an `args-out-of-range' error in the example.

10 years ago* doc/lispref/modes.texi (SMIE, SMIE Grammar, SMIE Indentation): Add some indexes.
Xue Fuqiao [Sat, 17 Aug 2013 11:14:10 +0000 (19:14 +0800)]
* doc/lispref/modes.texi (SMIE, SMIE Grammar, SMIE Indentation): Add some indexes.

10 years ago* doc/emacs/text.texi (Columns): Comment out undefined behavior.
Xue Fuqiao [Sat, 17 Aug 2013 10:46:11 +0000 (18:46 +0800)]
* doc/emacs/text.texi (Columns): Comment out undefined behavior.

10 years ago* net/tramp.el:
Michael Albinus [Sat, 17 Aug 2013 10:20:15 +0000 (12:20 +0200)]
* net/tramp.el:
* net/tramp-adb.el:
* net/tramp-cmds.el:
* net/tramp-ftp.el:
* net/tramp-gvfs.el:
* net/tramp-gw.el:
* net/tramp-sh.el: Don't wrap external variable declarations by
`eval-when-compile'.

10 years ago* doc/emacs/text.texi (Sorting): Fix indentation.
Xue Fuqiao [Sat, 17 Aug 2013 08:04:31 +0000 (16:04 +0800)]
* doc/emacs/text.texi (Sorting): Fix indentation.

10 years ago* doc/emacs/text.texi (Filling): Add cross-reference for hard newlines.
Xue Fuqiao [Sat, 17 Aug 2013 04:31:22 +0000 (12:31 +0800)]
* doc/emacs/text.texi (Filling): Add cross-reference for hard newlines.

10 years ago* doc/emacs/text.texi (Enriched Justification): Minor fixes.
Xue Fuqiao [Sat, 17 Aug 2013 02:45:22 +0000 (10:45 +0800)]
* doc/emacs/text.texi (Enriched Justification): Minor fixes.

10 years agoMention interactive call of buffer-disable-undo.
Xue Fuqiao [Sat, 17 Aug 2013 00:48:35 +0000 (08:48 +0800)]
Mention interactive call of buffer-disable-undo.

* doc/lispref/text.texi (Maintaining Undo): Mention interactive call of
buffer-disable-undo.

10 years agoAnother doc fix for `buffer-undo-list'.
Xue Fuqiao [Fri, 16 Aug 2013 22:32:24 +0000 (06:32 +0800)]
Another doc fix for `buffer-undo-list'.

10 years ago(imagemagick_load_image): Remove the ping_wand code
Lars Magne Ingebrigtsen [Fri, 16 Aug 2013 15:31:04 +0000 (17:31 +0200)]
(imagemagick_load_image): Remove the ping_wand code

The apparently only saved time on invalid animated images, and slowed
down everything else.  Optimise for the common case.

10 years ago* net/shr.el (shr-rescale-image): Use ImageMagick even for GIFs
Lars Magne Ingebrigtsen [Fri, 16 Aug 2013 15:17:21 +0000 (17:17 +0200)]
* net/shr.el (shr-rescale-image): Use ImageMagick even for GIFs

Now that Emacs supports ImageMagick animations.

10 years agoimage.c: Fix debugging code accidentally checked in
Lars Magne Ingebrigtsen [Fri, 16 Aug 2013 15:13:42 +0000 (17:13 +0200)]
image.c: Fix debugging code accidentally checked in

10 years ago(imagemagick_get_animation_cache): Fix a double-free error.
Lars Magne Ingebrigtsen [Fri, 16 Aug 2013 15:10:13 +0000 (17:10 +0200)]
(imagemagick_get_animation_cache): Fix a double-free error.

10 years ago* image.c: Implement an ImageMagick per-image cache.
Lars Magne Ingebrigtsen [Fri, 16 Aug 2013 14:54:46 +0000 (16:54 +0200)]
* image.c: Implement an ImageMagick per-image cache.

10 years agoDoc fix for `buffer-undo-list'.
Xue Fuqiao [Fri, 16 Aug 2013 14:16:45 +0000 (22:16 +0800)]
Doc fix for `buffer-undo-list'.

10 years ago* net/tramp-cmds.el (top): Don't declare `buffer-name'.
Michael Albinus [Fri, 16 Aug 2013 12:41:17 +0000 (14:41 +0200)]
* net/tramp-cmds.el (top): Don't declare `buffer-name'.
(tramp-append-tramp-buffers): Rewrite buffer local variables part.

10 years agoAuto-commit of generated files.
Glenn Morris [Fri, 16 Aug 2013 10:17:35 +0000 (06:17 -0400)]
Auto-commit of generated files.

10 years agoIn mouse-autoselect-window-select do autoselect when mouse pointer is on margin.
Martin Rudalics [Fri, 16 Aug 2013 09:44:32 +0000 (11:44 +0200)]
In mouse-autoselect-window-select do autoselect when mouse pointer is on margin.

* window.el (mouse-autoselect-window-select): Do autoselect when
mouse pointer is on margin.

10 years agoReverse previous change, because kill-{new, append} don't have obvious advantage.
Xue Fuqiao [Fri, 16 Aug 2013 08:27:49 +0000 (16:27 +0800)]
Reverse previous change, because kill-{new, append} don't have obvious advantage.

10 years agoAdvertise using `kill-new' and `kill-append' in Lisp programs.
Xue Fuqiao [Fri, 16 Aug 2013 08:11:44 +0000 (16:11 +0800)]
Advertise using `kill-new' and `kill-append' in Lisp programs.

* lisp/simple.el (copy-region-as-kill, kill-ring-save): Advertise using
`kill-new' and `kill-append' in Lisp programs.

10 years ago* net/ange-ftp.el (ange-ftp-skip-msgs): Bump :version.
Glenn Morris [Fri, 16 Aug 2013 07:18:17 +0000 (00:18 -0700)]
* net/ange-ftp.el (ange-ftp-skip-msgs): Bump :version.

10 years ago* net/ange-ftp.el (ange-ftp-skip-msgs): Add 500 EPSV (tiny change)
William Parsons [Fri, 16 Aug 2013 07:17:33 +0000 (00:17 -0700)]
* net/ange-ftp.el (ange-ftp-skip-msgs): Add 500 EPSV (tiny change)

Fixes: debbugs:1972

10 years ago* lisp/net/ange-ftp.el (ange-ftp-good-msgs, ange-ftp-get-pwd):
Glenn Morris [Fri, 16 Aug 2013 07:13:48 +0000 (00:13 -0700)]
* lisp/net/ange-ftp.el (ange-ftp-good-msgs, ange-ftp-get-pwd):
Handle "Remote Directory" response of some clients.

Fixes: debbugs:15058

10 years ago* bytecomp.el (byte-compile-make-variable-buffer-local): Tweak warning.
Glenn Morris [Fri, 16 Aug 2013 06:53:41 +0000 (23:53 -0700)]
* bytecomp.el (byte-compile-make-variable-buffer-local): Tweak warning.

Fixes: debbugs:14926

10 years agoSimplify news and mail menu items
Glenn Morris [Fri, 16 Aug 2013 06:50:58 +0000 (23:50 -0700)]
Simplify news and mail menu items

* lisp/menu-bar.el (send-mail-item-name, read-mail-item-name): Remove.
(menu-bar-tools-menu): Simplify news and mail items.

Fixes: debbugs:15095

10 years agoAdd functions to change the speed of animated images
Glenn Morris [Fri, 16 Aug 2013 06:33:08 +0000 (23:33 -0700)]
Add functions to change the speed of animated images

* lisp/image-mode.el (image-mode-map): Add menu items to reverse,
increase, decrease, reset animation speed.
(image--set-speed, image-increase-speed, image-decrease-speed)
(image-reverse-speed, image-reset-speed): New functions.
(image-mode-map): Add bindings for speed commands.

* lisp/image.el (image-animate-get-speed, image-animate-set-speed):
New functions.
(image-animate-timeout): Respect image :speed property.

* etc/NEWS: Mention this.

10 years agodoc/lispref/text.texi(Margins): Add an index.
Xue Fuqiao [Fri, 16 Aug 2013 06:03:18 +0000 (14:03 +0800)]
doc/lispref/text.texi(Margins): Add an index.

10 years agoSpelling fixes.
Paul Eggert [Fri, 16 Aug 2013 05:15:51 +0000 (22:15 -0700)]
Spelling fixes.

10 years agoRefine the documentation of `insert-buffer-substring'.
Xue Fuqiao [Fri, 16 Aug 2013 03:16:03 +0000 (11:16 +0800)]
Refine the documentation of `insert-buffer-substring'.

10 years ago* src/editfns.c (insert_before_markers): Mention overlay in the doc string.
Xue Fuqiao [Fri, 16 Aug 2013 02:09:08 +0000 (10:09 +0800)]
* src/editfns.c (insert_before_markers): Mention overlay in the doc string.

10 years ago* doc/lispref/text.texi (Insertion): Add cross-references.
Xue Fuqiao [Fri, 16 Aug 2013 01:57:58 +0000 (09:57 +0800)]
* doc/lispref/text.texi (Insertion): Add cross-references.

10 years agoRemove documentation of undefined behavior.
Xue Fuqiao [Fri, 16 Aug 2013 00:20:56 +0000 (08:20 +0800)]
Remove documentation of undefined behavior.

* doc/lispref/positions.texi (Character Motion):
* doc/lispref/markers.texi (Moving Markers):
(Creating Markers): Comment out undefined behavior.

* src/marker.c (set_marker): Remove documentation of undefined behavior.

10 years agoAdd comment.
Lars Magne Ingebrigtsen [Thu, 15 Aug 2013 20:17:35 +0000 (22:17 +0200)]
Add comment.