1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00
Commit graph

112613 commits

Author SHA1 Message Date
Glenn Morris
bb35f42f61 * lisp/files.el (create-file-buffer): Rework previous change. 2013-08-23 13:34:09 -04:00
Glenn Morris
cb8d261243 * lisp/files.el (interpreter-mode-alist): Use tcl-mode for expect scripts. 2013-08-23 13:09:09 -04:00
Glenn Morris
61611d54b5 * files.el (create-file-buffer): Handle a file whose basename is all spaces.
Fixes: debbugs:15162
2013-08-23 13:08:19 -04:00
Stefan Monnier
e3a6636351 * lisp/textmodes/fill.el (fill-match-adaptive-prefix): Don't throw away
text-properties.

Fixes: debbugs:15155
2013-08-23 11:31:45 -04:00
Stefan Monnier
b9808e7718 * 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'.
2013-08-23 11:21:19 -04:00
Eli Zaretskii
6c6014d4cc 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.
2013-08-23 17:25:39 +03:00
Glenn Morris
1df7c7caf5 Auto-commit of generated files. 2013-08-23 06:17:44 -04:00
Martin Rudalics
7fd5f65e89 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).
2013-08-23 08:52:19 +02:00
Dmitry Antipov
6b729d1685 * window.c (struct save_window_data): Fix typo. 2013-08-23 08:17:04 +04:00
Dmitry Antipov
9997ec56be 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.
2013-08-23 08:03:25 +04:00
Dmitry Antipov
7f780da621 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.
2013-08-23 07:03:37 +04:00
Paul Eggert
2649579468 * process.c (flush_pending_output): Remove stub.
All uses removed.
2013-08-22 11:29:51 -07:00
Paul Eggert
917c483a29 * 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
2013-08-22 10:35:00 -07:00
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