]> code.delx.au - gnu-emacs/log
gnu-emacs
10 years agomerge from trunk
Joakim Verona [Sun, 25 Aug 2013 20:27:21 +0000 (22:27 +0200)]
merge from trunk

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 agomerge from trunk
Joakim Verona [Sun, 25 Aug 2013 19:56:43 +0000 (21:56 +0200)]
merge from trunk

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 agomerge from trunk
Joakim Verona [Sun, 25 Aug 2013 14:07:59 +0000 (16:07 +0200)]
merge from trunk

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 agomerge from trunk
Joakim Verona [Sun, 25 Aug 2013 10:27:13 +0000 (12:27 +0200)]
merge from trunk

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 agomerge from trunk
Joakim Verona [Sat, 24 Aug 2013 16:18:46 +0000 (18:18 +0200)]
merge from trunk

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 agomerge from trunk
Joakim Verona [Sat, 24 Aug 2013 13:17:24 +0000 (15:17 +0200)]
merge from trunk

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 agomerge from trunk
Joakim Verona [Sat, 24 Aug 2013 10:27:28 +0000 (12:27 +0200)]
merge from trunk

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 agomerge from trunk
Joakim Verona [Sat, 24 Aug 2013 08:57:29 +0000 (10:57 +0200)]
merge from trunk

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 agomerge from trunk
Joakim Verona [Sat, 24 Aug 2013 02:36:40 +0000 (04:36 +0200)]
merge from trunk

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 agomerge from trunk
Joakim Verona [Fri, 23 Aug 2013 19:12:05 +0000 (21:12 +0200)]
merge from trunk

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 agomerge from trunk
Joakim Verona [Fri, 23 Aug 2013 18:12:26 +0000 (20:12 +0200)]
merge from trunk

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 agomerge from trunk
Joakim Verona [Fri, 23 Aug 2013 17:47:27 +0000 (19:47 +0200)]
merge from trunk

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 agomerge from trunk
Joakim Verona [Fri, 23 Aug 2013 17:22:29 +0000 (19:22 +0200)]
merge from trunk

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 agomerge from trunk
Joakim Verona [Fri, 23 Aug 2013 15:37:15 +0000 (17:37 +0200)]
merge from trunk

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 agomerge from trunk
Joakim Verona [Fri, 23 Aug 2013 14:42:37 +0000 (16:42 +0200)]
merge from trunk

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 agomerge from trunk
Joakim Verona [Fri, 23 Aug 2013 10:31:49 +0000 (12:31 +0200)]
merge from trunk

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 agomerge from trunk
Joakim Verona [Fri, 23 Aug 2013 07:06:30 +0000 (09:06 +0200)]
merge from trunk

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 agomerge from trunk
Joakim Verona [Fri, 23 Aug 2013 04:31:39 +0000 (06:31 +0200)]
merge from trunk

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 agomerge from trunk
Joakim Verona [Fri, 23 Aug 2013 04:16:37 +0000 (06:16 +0200)]
merge from trunk

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 agomerge from trunk
Joakim Verona [Fri, 23 Aug 2013 03:16:38 +0000 (05:16 +0200)]
merge from trunk

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 agomerge from trunk
Joakim Verona [Thu, 22 Aug 2013 18:42:15 +0000 (20:42 +0200)]
merge from trunk

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 agomerge from trunk
Joakim Verona [Thu, 22 Aug 2013 17:47:29 +0000 (19:47 +0200)]
merge from trunk

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 agomerge from trunk
Joakim Verona [Thu, 22 Aug 2013 04:21:28 +0000 (06:21 +0200)]
merge from trunk

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 agomerge from trunk
Joakim Verona [Thu, 22 Aug 2013 01:21:36 +0000 (03:21 +0200)]
merge from trunk

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 agomerge from trunk
Joakim Verona [Wed, 21 Aug 2013 21:41:33 +0000 (23:41 +0200)]
merge from trunk

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 agomerge from trunk
Joakim Verona [Wed, 21 Aug 2013 19:56:47 +0000 (21:56 +0200)]
merge from trunk

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 agomerge from trunk
Joakim Verona [Wed, 21 Aug 2013 18:37:17 +0000 (20:37 +0200)]
merge from trunk

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 agomerge from trunk
Joakim Verona [Wed, 21 Aug 2013 10:31:36 +0000 (12:31 +0200)]
merge from trunk

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 agomerge from trunk
Joakim Verona [Wed, 21 Aug 2013 07:22:05 +0000 (09:22 +0200)]
merge from trunk

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 agomerge from trunk
Joakim Verona [Wed, 21 Aug 2013 06:33:57 +0000 (08:33 +0200)]
merge from trunk

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 agomerge from trunk
Joakim Verona [Wed, 21 Aug 2013 05:51:39 +0000 (07:51 +0200)]
merge from trunk

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 agomerge from trunk
Joakim Verona [Wed, 21 Aug 2013 01:31:39 +0000 (03:31 +0200)]
merge from trunk

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 agomerge from trunk
Joakim Verona [Tue, 20 Aug 2013 22:26:48 +0000 (00:26 +0200)]
merge from trunk

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 agomerge from trunk
Joakim Verona [Tue, 20 Aug 2013 15:03:30 +0000 (17:03 +0200)]
merge from trunk

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 agomerge from trunk
Joakim Verona [Tue, 20 Aug 2013 10:16:47 +0000 (12:16 +0200)]
merge from trunk

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 agomerge from trunk
Joakim Verona [Tue, 20 Aug 2013 08:41:59 +0000 (10:41 +0200)]
merge from trunk

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 agomerge from trunk
Joakim Verona [Tue, 20 Aug 2013 06:46:50 +0000 (08:46 +0200)]
merge from trunk

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 agomerge from trunk
Joakim Verona [Tue, 20 Aug 2013 01:06:36 +0000 (03:06 +0200)]
merge from trunk

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 agomerge from trunk
Joakim Verona [Mon, 19 Aug 2013 21:01:49 +0000 (23:01 +0200)]
merge from trunk

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 agoMerge branch 'xwidget' of https://github.com/jave/xwidget-emacs into xwidget
Joakim Verona [Mon, 19 Aug 2013 18:48:07 +0000 (20:48 +0200)]
Merge branch 'xwidget' of https://github.com/jave/xwidget-emacs into xwidget

10 years ago* test/automated/xwidget-tests.el: Emacs parallel API changed.
Grégoire Jadi [Mon, 19 Aug 2013 18:46:58 +0000 (20:46 +0200)]
* test/automated/xwidget-tests.el: Emacs parallel API changed.

10 years agoUpdate Emacs Parallel
Grégoire Jadi [Mon, 19 Aug 2013 18:46:52 +0000 (20:46 +0200)]
Update Emacs Parallel

10 years agomerge from trunk
Joakim Verona [Mon, 19 Aug 2013 18:11:40 +0000 (20:11 +0200)]
merge from trunk

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 agomerge from trunk
Joakim Verona [Mon, 19 Aug 2013 16:38:33 +0000 (18:38 +0200)]
merge from trunk

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 agomerge from trunk
Joakim Verona [Mon, 19 Aug 2013 15:26:39 +0000 (17:26 +0200)]
merge from trunk

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 agomerge from trunk
Joakim Verona [Mon, 19 Aug 2013 15:07:07 +0000 (17:07 +0200)]
merge from trunk

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 agomerge from trunk
Joakim Verona [Mon, 19 Aug 2013 10:31:39 +0000 (12:31 +0200)]
merge from trunk

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 agomerge from trunk
Joakim Verona [Mon, 19 Aug 2013 07:16:32 +0000 (09:16 +0200)]
merge from trunk

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 agomerge from trunk
Joakim Verona [Mon, 19 Aug 2013 06:01:26 +0000 (08:01 +0200)]
merge from trunk

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