1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-13 09:32:47 +00:00
Commit Graph

112600 Commits

Author SHA1 Message Date
Stefan Monnier
d0fcaff514 * 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...).
2013-08-22 00:06:45 -04:00
Stefan Monnier
8352b53087 * 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.
2013-08-21 21:09:08 -04:00
Paul Eggert
4a88129ae4 * 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
2013-08-21 14:27:30 -07:00
David Engster
6ee6031083 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.
2013-08-21 21:42:52 +02:00
Stefan Monnier
9f7b19259d * lisp/emacs-lisp/pp.el (pp-eval-expression, pp-macroexpand-expression):
Use read--expression so that completion works again.
2013-08-21 14:26:15 -04:00
Glenn Morris
df391f9b3f Auto-commit of generated files. 2013-08-21 06:17:37 -04:00
Dmitry Antipov
0c5307b05f 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.
2013-08-21 11:02:45 +04:00
Paul Eggert
f035e3a91c 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
2013-08-20 23:11:50 -07:00
Paul Eggert
0d7c1e66ff * 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.
2013-08-20 22:39:51 -07:00
Sam Steingold
6e50e9836a 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).
2013-08-20 21:16:27 -04:00
Stefan Monnier
dbb0d35043 * lisp/align.el: Use lexical-binding.
(align-region): Simplify accordingly.
2013-08-20 18:13:29 -04:00
Kenichi Handa
3f246b6572 src/character.c (string_char): Improve commentary. 2013-08-20 17:56:03 +03:00
Eli Zaretskii
9f0809d4ab 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)
2013-08-20 17:49:09 +03:00
Michael Albinus
c88586a962 * minibuffer.el (completion--sifn-requote): Bind `non-essential'.
* rfn-eshadow.el (rfn-eshadow-update-overlay): Move binding of
`non-essential' up.
2013-08-20 12:04:13 +02:00
Paul Eggert
236beba0c2 * Makefile.in (distclean, bootstrap-clean, maintainer-clean):
Fix shell-operator precedence problem in previous change.
2013-08-20 01:30:24 -07:00
Glenn Morris
f47ad1af27 Remove stray execute bit 2013-08-19 23:39:17 -07:00
Glenn Morris
f67dce44d5 * Makefile.in (distclean, bootstrap-clean, maintainer-clean):
Clean test/automated if present.
2013-08-19 23:36:10 -07:00
Paul Eggert
8c2f38aaab * 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.
2013-08-19 17:51:35 -07:00
Paul Eggert
bb566ceafe * 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.
2013-08-19 13:47:27 -07:00
Lars Magne Ingebrigtsen
453f40228f (imagemagick_get_animation_cache): Fix memory leak. 2013-08-19 19:56:58 +02:00
Paul Eggert
824a2fa737 * image.c: Space before paren. 2013-08-19 09:24:06 -07:00
Lars Magne Ingebrigtsen
2a42bbcee8 Fix previous commit.
(imagemagick_get_animation_cache): Revert to previous definition
so that it actually works.  But keep the memory leak fix.
2013-08-19 17:14:42 +02:00
Lars Magne Ingebrigtsen
6da2692802 * 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.
2013-08-19 16:52:52 +02:00
Glenn Morris
6e64a12bd7 Auto-commit of generated files. 2013-08-19 06:17:37 -04:00
Paul Eggert
d0139df5b6 * 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.
2013-08-19 00:01:37 -07:00
Paul Eggert
2249012558 * process.c (handle_child_signal): Fix crash; deleted pid.
This was introduced by my 2013-08-12 fix for Bug#15035.

Fixes: debbugs:15106
2013-08-18 22:46:17 -07:00
Paul Eggert
51632863c2 Merge from gnulib.
This incorporates:
2013-08-15 warnings: minor optimization
2013-08-15 warnings: check -Wfoo rather than -Wno-foo
2013-08-18 22:23:05 -07:00
Katsumi Yamaoka
dab3a8d5fe Gnus: Exclude iso-2022-jp-2 and shift_jis from the default value set to mm-coding-system-priorities for Japanese users 2013-08-19 05:10:33 +00:00
Dmitry Antipov
deb31e75f8 * image.c (imagemagick_create_cache, imagemagick_get_animation_cache)
(imagemagick_prune_animation_cache): Now static.
2013-08-19 08:24:19 +04:00
Xue Fuqiao
c5074806de Minor improving in indexing of buffer position.
* doc/lispref/positions.texi (Positions): Improve indexing.
2013-08-19 07:12:32 +08:00
Eli Zaretskii
e2c904739e Minor improving in indexing of "region".
doc/lispref/markers.texi (The Region): Improve indexing.
2013-08-18 22:25:15 +03:00
Lars Magne Ingebrigtsen
319a4d0389 * image.c (imagemagick_get_animation_cache): Don't segfault when
pruning all entries.
2013-08-18 21:18:43 +02:00
Ken Brown
f747d82e08 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.
2013-08-18 13:37:31 -04:00
Eli Zaretskii
d2c28fab13 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.
2013-08-17 20:18:07 +03:00
Xue Fuqiao
ad6643fe1a * text.texi (Case Changes): Fix an `args-out-of-range' error in the example. 2013-08-17 22:14:41 +08:00
Xue Fuqiao
ab1006358f * doc/lispref/modes.texi (SMIE, SMIE Grammar, SMIE Indentation): Add some indexes. 2013-08-17 19:14:10 +08:00
Xue Fuqiao
38b4c7f838 * doc/emacs/text.texi (Columns): Comment out undefined behavior. 2013-08-17 18:46:11 +08:00
Michael Albinus
f95527c8b2 * 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'.
2013-08-17 12:20:15 +02:00
Xue Fuqiao
d311017740 * doc/emacs/text.texi (Sorting): Fix indentation. 2013-08-17 16:04:31 +08:00
Xue Fuqiao
c9b39934d6 * doc/emacs/text.texi (Filling): Add cross-reference for hard newlines. 2013-08-17 12:31:22 +08:00
Xue Fuqiao
f33650d8cc * doc/emacs/text.texi (Enriched Justification): Minor fixes. 2013-08-17 10:45:22 +08:00
Xue Fuqiao
278d6dd088 Mention interactive call of buffer-disable-undo.
* doc/lispref/text.texi (Maintaining Undo): Mention interactive call of
buffer-disable-undo.
2013-08-17 08:48:35 +08:00
Xue Fuqiao
70ff8240e4 Another doc fix for `buffer-undo-list'. 2013-08-17 06:32:24 +08:00
Lars Magne Ingebrigtsen
49ceb676b0 (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.
2013-08-16 17:31:04 +02:00
Lars Magne Ingebrigtsen
4b5fe4ee09 * net/shr.el (shr-rescale-image): Use ImageMagick even for GIFs
Now that Emacs supports ImageMagick animations.
2013-08-16 17:17:21 +02:00
Lars Magne Ingebrigtsen
6146bf5d2f image.c: Fix debugging code accidentally checked in 2013-08-16 17:13:42 +02:00
Lars Magne Ingebrigtsen
8a6f875f7e (imagemagick_get_animation_cache): Fix a double-free error. 2013-08-16 17:10:13 +02:00
Lars Magne Ingebrigtsen
274ff63f7f * image.c: Implement an ImageMagick per-image cache. 2013-08-16 16:54:46 +02:00
Xue Fuqiao
e4043ba039 Doc fix for `buffer-undo-list'. 2013-08-16 22:16:45 +08:00
Michael Albinus
13c366c974 * net/tramp-cmds.el (top): Don't declare `buffer-name'.
(tramp-append-tramp-buffers): Rewrite buffer local variables part.
2013-08-16 14:41:17 +02:00