]> git.eshelyaron.com Git - emacs.git/log
emacs.git
11 years ago* src/eval.c (unbind_for_thread_switch): Fix iteration over the
Barry O'Reilly [Sat, 19 Oct 2013 18:42:38 +0000 (14:42 -0400)]
* src/eval.c (unbind_for_thread_switch): Fix iteration over the
specpdl stack.

11 years agochange condition-variablep to condition-variable-p
Tom Tromey [Fri, 18 Oct 2013 03:32:26 +0000 (21:32 -0600)]
change condition-variablep to condition-variable-p

11 years agoFix crashes when unbind_for_thread_switch signals an error.
Eli Zaretskii [Sun, 1 Sep 2013 15:43:43 +0000 (18:43 +0300)]
Fix crashes when unbind_for_thread_switch signals an error.

 src/eval.c (unbind_for_thread_switch): Accept a 'struct
 thread_state *' argument and use specpdl_ptr and specpdl of that
 thread.  Fixes crashes if find_symbol_value signals an error.
 src/thread.c (post_acquire_global_lock): Update current_thread
 before calling unbind_for_thread_switch.  Pass the previous thread
 to unbind_for_thread_switch.

11 years agoImprove MS-Windows implementation of threads.
Eli Zaretskii [Sat, 31 Aug 2013 11:29:05 +0000 (14:29 +0300)]
Improve MS-Windows implementation of threads.

 src/systhread.c (sys_cond_init): Set the 'initialized' member to
 true only if initialization is successful.  Initialize wait_count
 and wait_count_lock.
 (sys_cond_wait, sys_cond_signal, sys_cond_broadcast): If
 'initialized' is false, do nothing.
 (sys_cond_wait): Fix the implementation to avoid the "missed
 wakeup" bug: count the waiting threads, and reset the broadcast
 event once the last thread was released.
 (sys_cond_signal, sys_cond_broadcast): Use SetEvent instead of
 PulseEvent.  Don't signal the event if no threads are waiting.
 (sys_cond_destroy): Only close non-NULL handles.
 (sys_thread_create): Return zero if unsuccessful, 1 if successful.
 src/systhread.h (w32thread_cond_t): New member 'initialized'.
 Rename waiters_count and waiters_count_lock to wait_count and
 wait_count_lock, respectively.

11 years agoEnable thread support in the MS-Windows build.
Eli Zaretskii [Fri, 30 Aug 2013 14:19:16 +0000 (17:19 +0300)]
Enable thread support in the MS-Windows build.

 src/systhread.h (w32thread_critsect, w32thread_cond_t, sys_mutex_t)
 (sys_cond_t, sys_thread_t) [WINDOWSNT]: New data types.
 src/systhread.c (sys_mutex_init, sys_mutex_lock, sys_mutex_unlock)
 (sys_mutex_destroy, sys_cond_init, sys_cond_wait)
 (sys_cond_signal, sys_cond_broadcast, sys_cond_destroy)
 (sys_thread_self, sys_thread_equal, w32_beginthread_wrapper)
 (sys_thread_create, sys_thread_yield) [WINDOWSNT]: New functions.

 configure.ac (THREADS_ENABLED): Enable threads for MinGW, even
 if pthreads is not available.

11 years agouse condition-notify in the docs, not condition-signal
Tom Tromey [Tue, 27 Aug 2013 19:10:59 +0000 (13:10 -0600)]
use condition-notify in the docs, not condition-signal

11 years agozap until-condition docs
Tom Tromey [Tue, 27 Aug 2013 19:07:14 +0000 (13:07 -0600)]
zap until-condition docs

11 years agozap until-condition
Tom Tromey [Tue, 27 Aug 2013 19:06:17 +0000 (13:06 -0600)]
zap until-condition

11 years agorename thread-blocker to thread--blocker
Tom Tromey [Tue, 27 Aug 2013 18:57:18 +0000 (12:57 -0600)]
rename thread-blocker to thread--blocker

11 years agoremove binding_symbol
Tom Tromey [Tue, 27 Aug 2013 18:54:38 +0000 (12:54 -0600)]
remove binding_symbol

11 years agofix style of threadp, mutexp, and condition-variable-p
Tom Tromey [Tue, 27 Aug 2013 18:33:04 +0000 (12:33 -0600)]
fix style of threadp, mutexp, and condition-variable-p

11 years agomake thread_check_current_buffer return bool
Tom Tromey [Tue, 27 Aug 2013 18:29:56 +0000 (12:29 -0600)]
make thread_check_current_buffer return bool

11 years agoadd a comment before flush_stack_call_func
Tom Tromey [Tue, 27 Aug 2013 18:29:05 +0000 (12:29 -0600)]
add a comment before flush_stack_call_func

11 years agofix whitespace_regexp warning
Tom Tromey [Tue, 27 Aug 2013 02:09:38 +0000 (20:09 -0600)]
fix whitespace_regexp warning

11 years agoFix MS-Windows build.
Eli Zaretskii [Mon, 26 Aug 2013 18:42:11 +0000 (21:42 +0300)]
Fix MS-Windows build.

 src/callproc.c:
 src/emacs.c:
 src/filelock.c:
 src/process.c:
 src/sysdep.c:
 src/w32.c: Reshuffle Windows-specific headers to avoid errors with
 redefinition of fd_set etc.
 src/process.c: Don't use num_pending_connects when
 NON_BLOCKING_CONNECT is not defined.
 src/sysselect.h: Move definitions of FD_* macros and of SELECT_TYPE
 here from w32.h.
 src/w32proc.c (sys_select): Adjust the argument types to what
 thread.h expects.

 nt/inc/sys/socket.h: Include stdint.h.  Include sysselect.h instead
 of w32.h.

11 years agouse record_unwind_protect_void, avoid warning
Tom Tromey [Mon, 26 Aug 2013 14:53:26 +0000 (08:53 -0600)]
use record_unwind_protect_void, avoid warning

11 years agoimplement --enable-threads and a thread-less mode
Tom Tromey [Mon, 26 Aug 2013 14:46:30 +0000 (08:46 -0600)]
implement --enable-threads and a thread-less mode

11 years agomerge from trunk
Tom Tromey [Sun, 25 Aug 2013 20:25:59 +0000 (14:25 -0600)]
merge from trunk

11 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.

11 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.

11 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

11 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.

11 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.

11 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.

11 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.

11 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.

11 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
11 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'.

11 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.

11 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;'.

11 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.

11 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.

11 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
11 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
11 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'.

11 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.

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

11 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).

11 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.

11 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.

11 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.

11 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.

11 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
11 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...).

11 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.

11 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
11 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.

11 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.

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

11 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.

11 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
11 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.

11 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).

11 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.

11 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.

11 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)

11 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.

11 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.

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

11 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.

11 years agofix up some merge errors in process.c
Tom Tromey [Tue, 20 Aug 2013 04:13:47 +0000 (22:13 -0600)]
fix up some merge errors in process.c

remove a dead function
clean up a fixme I added in create_pty during the merge

11 years agomerge from trunk
Tom Tromey [Tue, 20 Aug 2013 03:53:07 +0000 (21:53 -0600)]
merge from trunk

11 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.

11 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.

11 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.

11 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.

11 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.

11 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.

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

11 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.

11 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
11 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

11 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

11 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.

11 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.

11 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.

11 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.

11 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.

11 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.

11 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.

11 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.

11 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.

11 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'.

11 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.

11 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.

11 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.

11 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.

11 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'.

11 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.

11 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.

11 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

11 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.

11 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.

11 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'.

11 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.

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

11 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.

11 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.

11 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.

11 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.