bpt/emacs.git
10 years agoMerge from emacs-24; up to 2014-04-17T02:05:48Z!eggert@cs.ucla.edu
Daniel Colascione [Sat, 19 Apr 2014 20:32:05 +0000 (13:32 -0700)]
Merge from emacs-24; up to 2014-04-17T02:05:48Z!eggert@cs.ucla.edu

10 years ago* src/intervals.c (rotate_right, rotate_left): Fix up length computation.
Stefan Monnier [Sat, 19 Apr 2014 18:13:26 +0000 (14:13 -0400)]
* src/intervals.c (rotate_right, rotate_left): Fix up length computation.
Also change identifiers to match the comments, and add more assertions.

Fixes: debbugs:16234

10 years agoLink to glib-using libraries when checking for glib.
Paul Eggert [Sat, 19 Apr 2014 17:45:20 +0000 (10:45 -0700)]
Link to glib-using libraries when checking for glib.

* configure.ac (XGSELOBJ): Include GTK_LIBS, RSVG_LIBS, etc.
when testing whether Glib is linked in.  Similarly for CFLAGS.

Fixes: debbugs:17289

10 years ago* lisp/progmodes/sh-script.el (sh-smie--sh-keyword-p): Handle variable
Stefan Monnier [Sat, 19 Apr 2014 17:14:27 +0000 (13:14 -0400)]
* lisp/progmodes/sh-script.el (sh-smie--sh-keyword-p): Handle variable
assignments such as "case=hello".

Fixes: debbugs:17297

10 years ago* automated/tramp-tests.el (tramp--test-check-files): Extend test.
Michael Albinus [Sat, 19 Apr 2014 14:14:26 +0000 (16:14 +0200)]
* automated/tramp-tests.el (tramp--test-check-files): Extend test.
(tramp-test31-utf8): Let-bind also `file-name-coding-system'.

10 years agoMerge from emacs-24; up to 2014-04-16T15:28:06Z!eggert@cs.ucla.edu
Juanma Barranquero [Fri, 18 Apr 2014 23:36:51 +0000 (01:36 +0200)]
Merge from emacs-24; up to 2014-04-16T15:28:06Z!eggert@cs.ucla.edu

10 years ago* automated/tramp-tests.el (tramp-copy-size-limit): Set to nil.
Michael Albinus [Fri, 18 Apr 2014 18:58:13 +0000 (20:58 +0200)]
* automated/tramp-tests.el (tramp-copy-size-limit): Set to nil.
(tramp--test-make-temp-name): Optional argument LOCAL.
(tramp--instrument-test-case): Show messages.  Catch also `quit'.
(tramp-test10-write-region): No special test for out-of-band copy
needed anymore.
(tramp-test11-copy-file, tramp-test12-rename-file)
(tramp-test21-file-links): Extend tests.
(tramp-test20-file-modes): More robust check for user "root".
(tramp--test-check-files): New defun.
(tramp-test30-special-characters, tramp-test33-recursive-load)
(tramp-test34-unload): New tests.
(tramp-test31-utf8, tramp-test32-asynchronous-requests):  Rename.

10 years agoAvoid recursive load of tramp.el
Michael Albinus [Fri, 18 Apr 2014 18:57:04 +0000 (20:57 +0200)]
Avoid recursive load of tramp.el

* net/tramp.el (tramp-run-real-handler, tramp-file-name-handler):
Do not autoload.
(tramp-file-name-handler, tramp-completion-file-name-handler):
Revert patch from 2014-04-10, it isn't necessary anymore.
(tramp-autoload-file-name-handler)
(tramp-register-autoload-file-name-handlers): New defuns.
(top): Autoload call of `tramp-register-autoload-file-name-handlers'.
(tramp-register-file-name-handlers): Remove also
`tramp-autoload-file-name-handler' from `file-name-handler-list'.
Do not autoload its invocation, but eval it after loading of 'tramp.

* net/tramp-adb.el (tramp-unload-hook): Unload `tramp-adb'.

* net/tramp-compat.el (tramp-unload-hook): Unload `tramp-loaddefs'.

10 years agoFix bug #17288 with inserting left truncation glyph under linum-mode.
Eli Zaretskii [Fri, 18 Apr 2014 08:35:09 +0000 (11:35 +0300)]
Fix bug #17288 with inserting left truncation glyph under linum-mode.

 src/xdisp.c (insert_left_trunc_glyphs): Ensure the left truncation
 glyph is written to TEXT_AREA of the temporary glyph_row.

10 years agosrc/ChangeLog: Add header line to recent MSDOS-related entries.
Eli Zaretskii [Fri, 18 Apr 2014 07:52:18 +0000 (10:52 +0300)]
src/ChangeLog: Add header line to recent MSDOS-related entries.

10 years ago* emacs.c (close_output_streams): Don't clear and restore errno.
Paul Eggert [Fri, 18 Apr 2014 06:40:15 +0000 (23:40 -0700)]
* emacs.c (close_output_streams): Don't clear and restore errno.

10 years ago* notes/bzr: Update instructions for merging from gnulib.
Paul Eggert [Thu, 17 Apr 2014 21:20:51 +0000 (14:20 -0700)]
* notes/bzr: Update instructions for merging from gnulib.

Remove obsolete note about tramp.el and tramp-sh.el.
Change "emacs-23" to "emacs-24".

10 years ago* term.c (tty_send_additional_strings): No need to fflush here,
Paul Eggert [Thu, 17 Apr 2014 14:59:22 +0000 (07:59 -0700)]
* term.c (tty_send_additional_strings): No need to fflush here,

as callers fflush.
(tty_set_terminal_modes): fflush after sending additional strings,
not before.

10 years agoPrevent endless loop in x_make_frame_visible.
Jan Djärv [Thu, 17 Apr 2014 09:07:58 +0000 (11:07 +0200)]
Prevent endless loop in x_make_frame_visible.

* xterm.c (x_make_frame_visible): Prevent endless loop when frame
never becomes visible, i.e. using XMonad .

Fixes: debbugs:17237

10 years agoFix bug #17281 with infloop in line-pixel-height.
Eli Zaretskii [Thu, 17 Apr 2014 08:58:59 +0000 (11:58 +0300)]
Fix bug #17281 with infloop in line-pixel-height.

 src/xdisp.c (Fline_pixel_height): Don't assume that the current
 buffer and the selected window's buffer are one and the same.

10 years ago2014-04-17 Daniel Colascione <dancol@dancol.org>
Daniel Colascione [Thu, 17 Apr 2014 07:54:23 +0000 (00:54 -0700)]
2014-04-17  Daniel Colascione  <dancol@dancol.org>

Add support for bracketed paste mode; add infrastructure for
managing terminal mode enabling and disabling automatically.

* xt-mouse.el:
(xterm-mouse-mode): Simplify.
(xterm-mouse-tracking-enable-sequence)
(xterm-mouse-tracking-disable-sequence): New constants.
(turn-on-xterm-mouse-tracking-on-terminal)
(turn-off-xterm-mouse-tracking-on-terminal): Use
tty-mode-set-strings and tty-mode-reset-strings terminal
parameters instead of random hooks.
(turn-on-xterm-mouse-tracking)
(turn-off-xterm-mouse-tracking): Delete.

* term/xterm.el (xterm-extra-capabilities): Fix bitrotted comment.
(xterm-paste-ending-sequence): New constant.
(xterm-paste): New command used for bracketed paste support.

(xterm-modify-other-keys-terminal-list): Delete obsolete variable.
(terminal-init-xterm-bracketed-paste-mode): New function.
(terminal-init-xterm): Call it.
(terminal-init-xterm-modify-other-keys): Use tty-mode-set-strings
and tty-mode-reset-strings instead of random hooks.
(xterm-turn-on-modify-other-keys)
(xterm-turn-off-modify-other-keys)
(xterm-remove-modify-other-keys): Delete obsolete functions.

* term/screen.el: Rewrite to just use the xterm code.  Add
copyright notice.  Mention tmux.

10 years agoFix bug #17269 with corruption of the newline cache.
Eli Zaretskii [Thu, 17 Apr 2014 07:24:40 +0000 (10:24 +0300)]
Fix bug #17269 with corruption of the newline cache.

 src/insdel.c (invalidate_buffer_caches): Invalidate the bidi
 paragraph-start cache before the newline cache.

10 years ago* GNUmakefile: Speed up 'make bootstrap' in fresh checkout.
Paul Eggert [Thu, 17 Apr 2014 06:40:25 +0000 (23:40 -0700)]
* GNUmakefile: Speed up 'make bootstrap' in fresh checkout.

(ORDINARY_GOALS): New macro, which excludes 'bootstrap'.
(bootstrap, .PHONY): New rules.
* INSTALL.REPO: Document current procedure better.
Move copyright notice to just before license notice.

10 years ago* Makefile.in (force-info): Remove.
Paul Eggert [Thu, 17 Apr 2014 06:02:38 +0000 (23:02 -0700)]
* Makefile.in (force-info): Remove.

All uses removed.  This hack is no longer needed here
now that we can assume GNU Make's .PHONY feature works.
(bootstrap): No need to make 'info', since 'all' now implies 'info'.

10 years ago* lisp/image-mode.el (image-mode-window-put): Also update the property of
Ian D [Thu, 17 Apr 2014 03:58:25 +0000 (23:58 -0400)]
* lisp/image-mode.el (image-mode-window-put): Also update the property of
the "default window".
* lisp/doc-view.el (doc-view-new-window-function): If no window
exists, move to the last known page.

10 years ago* Makefile.in (FRC): Remove.
Paul Eggert [Thu, 17 Apr 2014 02:05:48 +0000 (19:05 -0700)]
* Makefile.in (FRC): Remove.

All uses removed.  This hack is no longer needed here
now that we can assume GNU Make's .PHONY feature works.

10 years agoBe consistent about reporting infoclean failures.
Paul Eggert [Thu, 17 Apr 2014 01:35:20 +0000 (18:35 -0700)]
Be consistent about reporting infoclean failures.

* doc/emacs/Makefile.in (infoclean):
* doc/lispintro/Makefile.in (infoclean):
* doc/lispref/Makefile.in (infoclean):
* doc/misc/Makefile.in (infoclean):
Do not fail merely because the info directory does not exist,
but do fail if it exists and can't be cleaned.

10 years agoMerge from emacs-24; up to 2014-04-16T15:28:26Z!monnier@iro.umontreal.ca
Paul Eggert [Wed, 16 Apr 2014 19:43:46 +0000 (12:43 -0700)]
Merge from emacs-24; up to 2014-04-16T15:28:26Z!monnier@iro.umontreal.ca

10 years ago* lisp/nxml/nxml-mode.el (nxml-fontify-matcher): Make sure propertization
Stefan Monnier [Wed, 16 Apr 2014 15:28:26 +0000 (11:28 -0400)]
* lisp/nxml/nxml-mode.el (nxml-fontify-matcher): Make sure propertization
was done.
* lisp/nxml/xmltok.el (xmltok-scan-after-comment-open): Extend unclosed
comment to EOB.

Fixes: debbugs:17264

10 years agoAdd a NEWS entry for IRIX.
Paul Eggert [Wed, 16 Apr 2014 15:28:06 +0000 (08:28 -0700)]
Add a NEWS entry for IRIX.

10 years agoRemove DATA_SEG_BITS.
Paul Eggert [Wed, 16 Apr 2014 15:16:35 +0000 (08:16 -0700)]
Remove DATA_SEG_BITS.

The DATA_SEG_BITS hack was needed for older 32 bit platforms.
As a result of this change, Emacs won't work on IRIX 6.5 with IRIX
cc, but that platform is so old that SGI itself stopped supporting
it in December 2013.  If you still need Emacs on IRIX, please
either compile with GCC and port the undumping code, or run
'./configure --with-wide-int'.
* configure.ac (DATA_SEG_BITS): Remove.  All uses removed.
* src/alloc.c (gdb_make_enums_visible): Update to match lisp.h.
* src/lisp.h (GCTYPEBITS): Move definition up, and switch to the
DEFINE_GDB_SYMBOL_START way to define it.
(NONPOINTER_BITS): New macro.
(EMACS_INT): Use it.
[!USE_LSB_TAG && !WIDE_EMACS_INT]: Fail, and suggest reporting
the problem and/or configuring --with-wide-int.
(USE_LSB_TAG): Simplify, based on above changes.
(gdb_DATA_SEG_BITS): Remove.  All uses removed.
* src/vm-limit.c (exceeds_lisp_ptr): Remove.  All uses removed.

10 years ago* lisp/progmodes/perl-mode.el (perl-calculate-indent): Don't auto-indent in
Stefan Monnier [Wed, 16 Apr 2014 14:13:06 +0000 (10:13 -0400)]
* lisp/progmodes/perl-mode.el (perl-calculate-indent): Don't auto-indent in
here-documents.

Fixes: debbugs:17262

10 years ago* src/window.c (save_window_save): Lookup window_point_insertion_type in
Stefan Monnier [Wed, 16 Apr 2014 14:00:39 +0000 (10:00 -0400)]
* src/window.c (save_window_save): Lookup window_point_insertion_type in
the right buffer.
(Qwindow_point_insertion_type): New var.
(syms_of_window): Initialize it.

Fixes: debbugs:15457

10 years agoActually commit msdos/sedadmin.inp.
Eli Zaretskii [Wed, 16 Apr 2014 13:31:23 +0000 (16:31 +0300)]
Actually commit msdos/sedadmin.inp.

10 years agoFix the MSDOS build.
Eli Zaretskii [Wed, 16 Apr 2014 13:27:28 +0000 (16:27 +0300)]
Fix the MSDOS build.

 src/unexcoff.c [MSDOS]: Include libc/atexit.h.
 (copy_text_and_data): Zero out the atexit chain pointer before
 dumping Emacs.
 src/termhooks.h (encode_terminal_code): Update prototype.
 src/term.c (encode_terminal_code) [DOS_NT]: Make it externally
 visible for all DOS_NT ports, not just WINDOWSNT.
 (syms_of_term) [!MSDOS]: Don't define 'tty-menu-*' symbols on MSDOS.
 src/sysdep.c (emacs_sigaction_init, init_signals): Don't use SIGCHLD
 unless it is defined.
 (emacs_pipe) [MSDOS]: Redirect to 'pipe'.
 src/process.c (close_on_exec, accept4, process_socket): Move into
 the "ifdef subprocesses" part.
 (catch_child_signal): Condition by "ifdef subprocesses".
 (syms_of_process) <Qinternal_default_process_sentinel>
 <Qinternal_default_process_filter>: Condition by "ifdef subprocesses".
 src/msdos.h: Add prototypes for new functions.
 (EINPROGRESS): Define.
 (O_CLOEXEC): Define to zero.
 src/msdos.c (check_window_system): Remove unnecessary an
 incompatible duplicate function.
 (sys_opendir, readlinkat, faccessat, fstatat, unsetenv): New
 functions in support of new functionality.
 src/menu.c (single_menu_item): Add visual indication  of submenu
 also for menus on MSDOS frames.
 (Fx_popup_menu) [!MSDOS]: Do not call tty_menu_show on MSDOS.
 src/lisp.h (CHECK_PROCESS) [!subprocesses]: Do not define
 when async subprocesses aren't supported.
 src/font.h (FONT_WIDTH) [MSDOS]: MSDOS-specific definition.
 src/emacs.c (close_output_streams): Zero out errno before calling
 close_stream.
 src/dired.c [MSDOS]: Include msdos.h.
 src/conf_post.h (opendir) [MSDOS]: Redirect to sys_opendir.
 (DATA_START) [MSDOS]: Define.
 (SYSTEM_PURESIZE_EXTRA) [MSDOS]: Enlarge by 25K.
 src/callproc.c (block_child_signal, unblock_child_signal) [MSDOS]:
 Ifdef away for MSDOS.
 (record_kill_process) [MSDOS]: Ifdef away the entire body for MSDOS.
 (call_process_cleanup) [MSDOS]: Ifdef away portions not relevant
 for MSDOS.
 (call_process) [MSDOS]: Fix call sequence of dostounix_filename.
 Use temporary file template that is compatible with mkostemp.
 Move vfork-related portions under #ifndef MSDOS.
 (syms_of_callproc): Unify templates of MSDOS and WINDOWSNT.

 lisp/term/pc-win.el (x-list-fonts, x-get-selection-value): Provide
 doc strings, as required by snarf-documentation.

 msdos/sedlisp.inp:
 msdos/sedlibmk.inp:
 msdos/sedleim.inp:
 msdos/sed3v2.inp:
 msdos/sed2v2.inp:
 msdos/sed1v2.inp: Update Sed scripts for Emacs 24.4.
 msdos/inttypes.h: Add PRIdMAX.
 msdos/INSTALL: Update for Emacs 24.4.
 msdos/sedadmin.inp: New file.

10 years agolisp/ChangeLog: Remove merge marker.
Juanma Barranquero [Wed, 16 Apr 2014 10:03:38 +0000 (12:03 +0200)]
lisp/ChangeLog: Remove merge marker.

10 years ago* savehist.el (savehist-save): Remove workaround for a read-passwd
Karl Fogel [Wed, 16 Apr 2014 06:46:36 +0000 (14:46 +0800)]
* savehist.el (savehist-save): Remove workaround for a read-passwd
bug that was fixed before 24.3.  Thanks to Juanma Barranquero for
noticing that the shim was still present.

10 years agolisp/gnus/message.el (message-insert-formatted-citation-line): Use the original autho...
Katsumi Yamaoka [Tue, 15 Apr 2014 23:37:21 +0000 (23:37 +0000)]
lisp/gnus/message.el (message-insert-formatted-citation-line): Use the original author's time zone to express a date string

10 years agoRevert previous change.
Paul Eggert [Tue, 15 Apr 2014 20:05:02 +0000 (13:05 -0700)]
Revert previous change.

10 years agoResurrect 2 entries in src/ChangeLog nuked by the previous commit.
Eli Zaretskii [Tue, 15 Apr 2014 15:56:23 +0000 (18:56 +0300)]
Resurrect 2 entries in src/ChangeLog nuked by the previous commit.

10 years agoFix some xgselect-vs-pselect bugs.
Paul Eggert [Tue, 15 Apr 2014 15:43:41 +0000 (08:43 -0700)]
Fix some xgselect-vs-pselect bugs.

This may not fix Bug#17172, but it fixes some bugs discovering
while auditing xgselect.c for that bug.
when one of glib's file descriptors is greater than FDS_LIM.
Treat rfds, wfds, efds consistently, and test G_IO_PRI too.
Clear input masks when pselect returns zero.

10 years ago* src/buffer.c (Foverlays_at): Add argument `sorted'.
Stefan Monnier [Tue, 15 Apr 2014 13:21:18 +0000 (09:21 -0400)]
* src/buffer.c (Foverlays_at): Add argument `sorted'.
* doc/lispref/display.texi (Overlay Properties): Reword the doc of `priority'.
(Finding Overlays): Document new arg of `overlays-at'.
* lisp/obsolete/lucid.el (extent-at):
* lisp/htmlfontify.el (hfy-overlay-props-at): Use the new `sorted' arg of
overlays-at.
(hfy-fontify-buffer): Remove unused var `orig-ovls'.
* lisp/ps-def.el (ps-generate-postscript-with-faces1): Use the new `sorted'
arg of overlays-at.  Use `invisible-p'.

10 years agoFix relative links to parent directories in shr
João Távora [Mon, 14 Apr 2014 22:01:54 +0000 (23:01 +0100)]
Fix relative links to parent directories in shr

* lisp/net/shr.el (shr-expand-url): Use `expand-file-name' for relative
links. .

Fixes: debbugs:17217

10 years ago* lisp/doc-view.el (doc-view-set-doc-type): Ignore file name case; add .pps.
Stefan Monnier [Mon, 14 Apr 2014 21:01:37 +0000 (17:01 -0400)]
* lisp/doc-view.el (doc-view-set-doc-type): Ignore file name case; add .pps.

10 years agolisp/faces.el (face-set-after-frame-default): Remove unused local variable.
Juanma Barranquero [Mon, 14 Apr 2014 15:38:43 +0000 (17:38 +0200)]
lisp/faces.el (face-set-after-frame-default): Remove unused local variable.

10 years agoFix bidirectional redisplay when deletion creates a paragraph start.
Eli Zaretskii [Mon, 14 Apr 2014 15:32:27 +0000 (18:32 +0300)]
Fix bidirectional redisplay when deletion creates a paragraph start.

 src/insdel.c (invalidate_buffer_caches): When deleting or replacing
 text, invalidate the bidi_paragraph_cache upto and including the
 preceding newline.

10 years ago* autogen.sh: Use autoreconf's -f option.
Paul Eggert [Mon, 14 Apr 2014 05:35:45 +0000 (22:35 -0700)]
* autogen.sh: Use autoreconf's -f option.

Fixes: debbugs:17258

10 years agoClean up configure-time library handling a bit.
Paul Eggert [Mon, 14 Apr 2014 05:23:31 +0000 (22:23 -0700)]
Clean up configure-time library handling a bit.

This patch was inspired by emacs-24 2014-04-09T13:37:49Z!sdl.web@gmail.com, which fixed
a bug due to sloppy library handling in 'configure'.
* configure.ac (LIB_MATH, LIB_PTHREAD, LIBXMU):
Use AC_SEARCH_LIBS instead of AC_CHECK_LIB as per Autoconf manual.
(LIB_MATH, LIB_PTHREAD, HAVE_X11, IMAGEMAGICK_LIBS, GTK_LIBS)
(DBUS_LIBS, LIBXMU, XFT_LIBS, LIBXSM, LIBXML2_LIBS, LIBS_MAIL)
(with_kerberos):
Don't let the library choice infect $LIBS.
(dnet_ntoa, cma_open): Remove obsolete tests.
(emacs_pthread_function): Probe for pthread_kill, not pthread_self,
as that's a bit more selective on GNU/Linux.
(LIBXEXT): Remove.
(touchlock): Test for existence when $LIBS_MAIL is in use.
(AC_CHECK_FUNCS): Use only $LIB_MATH in addition to $LIBS
when testing for typical functions like accept4, lrand48.
(random, rint): Remove obsolete HP-UX 9 A.09.05 test.

10 years agoFix application of dolist to a vector (Bug#17257).
YAMAMOTO Mitsuharu [Mon, 14 Apr 2014 02:21:12 +0000 (11:21 +0900)]
Fix application of dolist to a vector (Bug#17257).

* vc/ediff-diff.el (ediff-set-fine-diff-properties-in-one-buffer):
Use mapc to loop over a vector.

10 years agoPort to IRIX 6.5.
Paul Eggert [Sun, 13 Apr 2014 22:51:08 +0000 (15:51 -0700)]
Port to IRIX 6.5.

This port requires IRIX cc, as I did not have time to get
undump working with the old GCC on the system I had access to,
but that's better than nothing.
* configure.ac (gl_GCC_VERSION_IFELSE): Remove unused macro
that wouldn't have worked anyway, with IRIX cc.
(emacs_cv_clang, emacs_cv_sanitize_address)
(ns_osx_have_104, ns_osx_have_105):
Don't assume '#error' makes the compiler fail,
as this doesn't work with IRIX cc.
(CFLAGS, LIBS): Don't let the GnuTLS results infect later 'configure'
checks.  This runs afoul of an IRIX configuration where GnuTLS is
in an optional library that also contains getdelim, and causes
a later 'configure' to incorrectly think getdelim is supported.
* src/alloc.c (TAGGABLE_NULL): New constant,
for porting to hosts with nontrivial DATA_SEG_BITS settings.
(next_vector, set_next_vector): Use it.
* src/conf_post.h (INET6) [IRIX6_5]: Define.
(HAVE_GETADDRINFO) [IRIX6_5]: Undef.
* src/data.c (BITS_PER_ULL): Don't assume ULLONG_MAX is defined.
* src/lisp.h (lisp_h_XPNTR): Don't OR in bits that aren't masked out,
for consistency with how TAGGABLE_NULL is computed.

Fixes: debbugs:9684

10 years agoFix open-dribble-file's treatment of non-ASCII file names.
Eli Zaretskii [Sun, 13 Apr 2014 10:45:46 +0000 (13:45 +0300)]
Fix open-dribble-file's treatment of non-ASCII file names.

 src/keyboard.c (Fopen_dribble_file): Encode the dribble file-name
 before passing it to system APIs.

10 years ago* net/tramp-sh.el (tramp-sh-handle-file-truename): Revert previous
Michael Albinus [Sun, 13 Apr 2014 10:31:48 +0000 (12:31 +0200)]
* net/tramp-sh.el (tramp-sh-handle-file-truename): Revert previous
patch, there are new problems with file names containing spaces.
Get rid of backticks.  (Bug#17238)

10 years agoFix bug in Electric Pair mode
João Távora [Sun, 13 Apr 2014 10:27:32 +0000 (11:27 +0100)]
Fix bug in Electric Pair mode

* lisp/elec-pair.el (electric-pair--syntax-ppss): Simplify and fix
possible bug.

10 years agoImprove documentation of blink-cursor-mode and its customization variables.
Eli Zaretskii [Sun, 13 Apr 2014 07:49:23 +0000 (10:49 +0300)]
Improve documentation of blink-cursor-mode and its customization variables.

 lisp/frame.el (blink-cursor-blinks, blink-cursor-blinks-done): Doc fixes.
 (blink-cursor-mode): Mention customization variables and the
 effect of 'blink-cursor-blinks'.

 doc/emacs/display.texi (Cursor Display): Explain better how to customize
 'blink-cursor-blinks'.

10 years agoFix bug #17255 with insufficient pure space on 32-bit Posix builds.
Eli Zaretskii [Sun, 13 Apr 2014 07:33:15 +0000 (10:33 +0300)]
Fix bug #17255 with insufficient pure space on 32-bit Posix builds.

 src/puresize.h (BASE_PURESIZE): Bump by 1K.

10 years agoFix last commit.
Eli Zaretskii [Sun, 13 Apr 2014 06:46:10 +0000 (09:46 +0300)]
Fix last commit.

10 years agoFix creation of emacs.exe hardlink at "make install" time on MS-Windows.
Eli Zaretskii [Sun, 13 Apr 2014 06:44:22 +0000 (09:44 +0300)]
Fix creation of emacs.exe hardlink at "make install" time on MS-Windows.

 configure.ac (LN_S_FILEONLY, LN_S): Use "/bin/ln" on MinGW, to
 ensure the MSYS ln.exe is invoked.

10 years ago* src/bytecode.c (exec_byte_code): Rework the volatiles. Most importantly,
Stefan Monnier [Sun, 13 Apr 2014 02:51:11 +0000 (22:51 -0400)]
* src/bytecode.c (exec_byte_code): Rework the volatiles.  Most importantly,
make sure stack.byte_string_start is not de-adjusted by pushhandler.

10 years ago* keyboard.c (Fopen_dribble_file): Avoid some races.
Paul Eggert [Sat, 12 Apr 2014 21:54:27 +0000 (14:54 -0700)]
* keyboard.c (Fopen_dribble_file): Avoid some races.

Fixes: debbugs:17187

10 years ago* lisp/progmodes/grep.el: Use lexical-binding.
Stefan Monnier [Sat, 12 Apr 2014 19:38:06 +0000 (15:38 -0400)]
* lisp/progmodes/grep.el: Use lexical-binding.
(grep-expand-template): Pass explicit lexical env to `eval'.
(zrgrep): Let-bind grep-find-template explicitly.

10 years ago* lisp/emacs-lisp/cl-lib.el (current-case-table): Remove setter.
Stefan Monnier [Sat, 12 Apr 2014 19:30:14 +0000 (15:30 -0400)]
* lisp/emacs-lisp/cl-lib.el (current-case-table): Remove setter.
* lisp/leim/quail/sisheng.el (sisheng-list): Use with-case-table.

10 years agoMerge from emacs-24; up to 2014-04-07T20:54:16Z!dancol@dancol.org
Glenn Morris [Sat, 12 Apr 2014 19:24:17 +0000 (12:24 -0700)]
Merge from emacs-24; up to 2014-04-07T20:54:16Z!dancol@dancol.org

10 years ago* simple.el (undo): Prevent insertion of identity mapping into
Barry O'Reilly [Sat, 12 Apr 2014 19:20:44 +0000 (15:20 -0400)]
* simple.el (undo): Prevent insertion of identity mapping into
undo-equiv-table so as undo-only does not inf loop in the presence
of consecutive nils in undo list.

Fixes: debbugs:17236

10 years agoRegenerate ldefs-boot.el
Glenn Morris [Sat, 12 Apr 2014 18:46:15 +0000 (11:46 -0700)]
Regenerate ldefs-boot.el

10 years agolisp/ChangeLog: Fix Matthias Dahl's address.
Eli Zaretskii [Sat, 12 Apr 2014 14:31:48 +0000 (17:31 +0300)]
lisp/ChangeLog: Fix Matthias Dahl's address.

10 years agoFix last commit.
Eli Zaretskii [Sat, 12 Apr 2014 14:31:03 +0000 (17:31 +0300)]
Fix last commit.

10 years agoRemove deprecated optional argument of make-face.
Matthias Dahl [Sat, 12 Apr 2014 14:25:53 +0000 (17:25 +0300)]
Remove deprecated optional argument of make-face.

 lisp/faces.el (make-face): Remove deprecated optional argument. The
 conditional application of X resources is handled directly by
 make-face-x-resource-internal since Emacs 24.4.
 (make-empty-face): Don't pass optional argument to make-face.

10 years agoDeprecate optional argument of make-face.
Matthias Dahl [Sat, 12 Apr 2014 14:22:55 +0000 (17:22 +0300)]
Deprecate optional argument of make-face.

 lisp/faces.el (make-face): Deprecate optional argument as it is no
 longer needed/used since the conditional X resources handling
 has been pushed down to make-face-x-resource-internal itself.
 (make-empty-face): Don't pass optional argument to make-face.

10 years agoFix bug #17244 with line-move-visual when display string covers a lot of text.
Eli Zaretskii [Sat, 12 Apr 2014 11:21:47 +0000 (14:21 +0300)]
Fix bug #17244 with line-move-visual when display string covers a lot of text.

 src/xdisp.c (move_it_by_lines): If a large portion of buffer text is
 covered by a display string that ends in a newline, and that cases
 going back by DVPOS lines to hit the search limit, lift the limit
 and go back until DVPOS is reached.
 src/indent.c (Fvertical_motion): Handle correctly the case when the
 display string is preceded by an empty line.

10 years agoSet category of Coptic characters be 'g' (Greek).
Eli Zaretskii [Sat, 12 Apr 2014 08:49:05 +0000 (11:49 +0300)]
Set category of Coptic characters be 'g' (Greek).

10 years agoFix bug #17243 with case table entries for Coptic letters
Eli Zaretskii [Sat, 12 Apr 2014 08:41:39 +0000 (11:41 +0300)]
Fix bug #17243 with case table entries for Coptic letters

 lisp/international/characters.el <standard-case-table>: Add entries
 for letters from the Coptic block u+2C80-u+2CFF.  (Bug#17243)

10 years agoDon't break emacs <= 24.3 just yet
Leo Liu [Sat, 12 Apr 2014 04:07:53 +0000 (12:07 +0800)]
Don't break emacs <= 24.3 just yet

* progmodes/octave.el (completion-table-with-cache): Define if not
available.
(octave-goto-function-definition)
(octave-sync-function-file-names)
(octave-find-definition-default-filename): Backquote upattern for
compatibility.

10 years ago* net/tramp-sh.el (tramp-sh-handle-file-truename): Quote the file
Michael Albinus [Fri, 11 Apr 2014 12:59:36 +0000 (14:59 +0200)]
* net/tramp-sh.el (tramp-sh-handle-file-truename): Quote the file
name twice due to backticks.  (Bug#17238)

10 years agosrc/w32.c (sys_umask) <WRITE_USER>: Remove redundant constant.
Eli Zaretskii [Fri, 11 Apr 2014 08:11:57 +0000 (11:11 +0300)]
src/w32.c (sys_umask) <WRITE_USER>: Remove redundant constant.

 src/w32.c (sys_umask) <WRITE_USER>: Remove redundant constant, and
 use S_IWRITE instead.

10 years agoDoc fix for x-win-suspend-error
Glenn Morris [Fri, 11 Apr 2014 07:02:28 +0000 (00:02 -0700)]
Doc fix for x-win-suspend-error

* lisp/term/w32-win.el (x-win-suspend-error):
* lisp/term/x-win.el (x-win-suspend-error): Sync docs.

10 years agoAvoid EMACSDATA in user environment interfering with building
Glenn Morris [Fri, 11 Apr 2014 06:51:49 +0000 (23:51 -0700)]
Avoid EMACSDATA in user environment interfering with building

* admin/grammars/Makefile.in (EMACSDATA, EMACSDOC, EMACSPATH):
* leim/Makefile.in (EMACSDATA, EMACSDOC, EMACSPATH):
* lisp/Makefile.in (EMACSDATA, EMACSDOC, EMACSPATH):
* test/automated/Makefile.in (EMACSDATA, EMACSDOC, EMACSPATH):
Unexport.

Fixes: debbugs:16429

10 years agoMerge from emacs-24; up to 2014-04-04T23:31:02Z!joaotavora@gmail.com
Glenn Morris [Fri, 11 Apr 2014 06:43:20 +0000 (23:43 -0700)]
Merge from emacs-24; up to 2014-04-04T23:31:02Z!joaotavora@gmail.com

10 years ago* make-dist: Distribute lib-src/update-game-score.exe.manifest.
Glenn Morris [Fri, 11 Apr 2014 06:39:11 +0000 (23:39 -0700)]
* make-dist: Distribute lib-src/update-game-score.exe.manifest.

10 years ago* make-dist: Do not distribute generated admin/grammars/Makefile.
Glenn Morris [Fri, 11 Apr 2014 06:25:25 +0000 (23:25 -0700)]
* make-dist: Do not distribute generated admin/grammars/Makefile.

10 years agoFix for some etc/refcards encoding issues
Glenn Morris [Fri, 11 Apr 2014 06:09:12 +0000 (23:09 -0700)]
Fix for some etc/refcards encoding issues

* etc/refcards/cs-dired-ref.tex, etc/refcards/cs-refcard.tex:
* etc/refcards/cs-survival.tex, etc/refcards/sk-dired-ref.tex:
* etc/refcards/sk-refcard.tex, etc/refcards/sk-survival.tex:
Input "utf8off", which seems to be needed.

10 years agoBump version to 24.3.90; regenerate AUTHORS
Glenn Morris [Fri, 11 Apr 2014 05:53:02 +0000 (22:53 -0700)]
Bump version to 24.3.90; regenerate AUTHORS

10 years ago* src/keyboard.c (Fopen_dribble_file): Make file private.
Glenn Morris [Fri, 11 Apr 2014 05:47:32 +0000 (22:47 -0700)]
* src/keyboard.c (Fopen_dribble_file): Make file private.

Fixes: debbugs:17187

10 years ago* lisp/emulation/cua-base.el (<toplevel>, cua--pre-command-handler-1):
Stefan Monnier [Fri, 11 Apr 2014 01:06:35 +0000 (21:06 -0400)]
* lisp/emulation/cua-base.el (<toplevel>, cua--pre-command-handler-1):
Remove left-over code.

10 years ago* lisp/newcomment.el (comment-indent-new-line): Sink code where it's used.
Stefan Monnier [Fri, 11 Apr 2014 01:05:03 +0000 (21:05 -0400)]
* lisp/newcomment.el (comment-indent-new-line): Sink code where it's used.
Reuse the previous comment's indentation unconditionally if it's on its
own line.

10 years agoChangeLog fixes
Glenn Morris [Fri, 11 Apr 2014 00:55:58 +0000 (20:55 -0400)]
ChangeLog fixes

10 years agoEdiff's overlay priorities cause more trouble than they solve.
Stefan Monnier [Thu, 10 Apr 2014 19:15:01 +0000 (15:15 -0400)]
Ediff's overlay priorities cause more trouble than they solve.
* lisp/vc/ediff-init.el (ediff-shadow-overlay-priority): Remove variable.
(ediff-highest-priority): Remove function.
* lisp/vc/ediff-util.el (ediff-highlight-diff-in-one-buffer):
* lisp/vc/ediff-diff.el (ediff-set-diff-overlays-in-one-buffer)
(ediff-set-fine-diff-properties-in-one-buffer): Don't mess with
overlay priorities.

Fixes: debbugs:17234

10 years agoSpelling fixes.
Paul Eggert [Thu, 10 Apr 2014 19:12:34 +0000 (12:12 -0700)]
Spelling fixes.

* automated/electric-tests.el: Fix spelling error in test name.
(whitespace-skipping-for-quotes-not-outside):
Rename from whitespace-skipping-for-quotes-not-ouside.

10 years ago* lisp/progmodes/pascal.el (pascal-font-lock-keywords): Fix incorrect format
Feng Li [Thu, 10 Apr 2014 13:56:28 +0000 (09:56 -0400)]
* lisp/progmodes/pascal.el (pascal-font-lock-keywords): Fix incorrect format
entry; use symbol boundaries to avoid mis-matches.

10 years ago* net/tramp.el (tramp-file-name-handler)
Michael Albinus [Thu, 10 Apr 2014 07:17:40 +0000 (09:17 +0200)]
* net/tramp.el (tramp-file-name-handler)
(tramp-completion-file-name-handler): Avoid recursive loading.

* net/tramp-sh.el (tramp-make-copy-program-file-name):
Quote result also locally.

10 years agoIncrease BASE_PURESIZE
Daniel Colascione [Thu, 10 Apr 2014 00:05:34 +0000 (17:05 -0700)]
Increase BASE_PURESIZE

10 years agoRevert most of the recent change involving manifests on Cygwin. (Bug#17176)
Ken Brown [Wed, 9 Apr 2014 21:16:37 +0000 (17:16 -0400)]
Revert most of the recent change involving manifests on Cygwin.  (Bug#17176)

* configure.ac (EMACS_MANIFEST): Revert last change (but leave
UPDATE_MANIFEST empty).
* nt/emacs.rc: Revert last change.
* src/Makefile.in (EMACS_MANIFEST): Revert last change.

10 years agoMake up-list and backward-up-list get out of more spots
Daniel Colascione [Wed, 9 Apr 2014 16:58:08 +0000 (09:58 -0700)]
Make up-list and backward-up-list get out of more spots

10 years agoTweak regex from last change
Daniel Colascione [Wed, 9 Apr 2014 15:33:43 +0000 (08:33 -0700)]
Tweak regex from last change

10 years agoNew command rcirc-cmd-reconnect
Leo Liu [Wed, 9 Apr 2014 13:37:49 +0000 (21:37 +0800)]
New command rcirc-cmd-reconnect

* net/rcirc.el (rcirc-connection-info): New variable.
(rcirc-connect): Use it to store connection info.
(rcirc-buffer-process): Avoid get-buffer-process which returns nil
for killed process.
(rcirc-cmd-reconnect): New command.
(rcirc-mode, set-rcirc-encode-coding-system)
(set-rcirc-decode-coding-system, rcirc-connect): Use setq-local.

Fixes: debbugs:17045

10 years ago* src/keyboard.c (syms_of_keyboard): Make deactivate-mark buffer-local.
Stefan Monnier [Wed, 9 Apr 2014 13:21:30 +0000 (09:21 -0400)]
* src/keyboard.c (syms_of_keyboard): Make deactivate-mark buffer-local.

10 years agoMake cl-indent work better for elisp
Daniel Colascione [Wed, 9 Apr 2014 08:16:41 +0000 (01:16 -0700)]
Make cl-indent work better for elisp

10 years agoMerge from emacs-24; up to 2014-04-02T16:17:08Z!dmantipov@yandex.ru
Glenn Morris [Wed, 9 Apr 2014 03:37:56 +0000 (20:37 -0700)]
Merge from emacs-24; up to 2014-04-02T16:17:08Z!dmantipov@yandex.ru

10 years agoFix python-triple-quote-pairing test
Glenn Morris [Wed, 9 Apr 2014 01:50:29 +0000 (21:50 -0400)]
Fix python-triple-quote-pairing test

* test/automated/python-tests.el (python-triple-quote-pairing):
Enable/disable electric-pair-mode as needed.

10 years ago* src/insdel.c (prepare_to_modify_buffer_1): Cancel lock-file checks and
Stefan Monnier [Wed, 9 Apr 2014 01:48:07 +0000 (21:48 -0400)]
* src/insdel.c (prepare_to_modify_buffer_1): Cancel lock-file checks and
region handling (and don't call signal_before_change) if
inhibit_modification_hooks is set.
(signal_before_change): Don't check inhibit_modification_hooks any more.
* lisp/subr.el (with-silent-modifications): Don't bind deactivate-mark,
buffer-file-name, and buffer-file-truename any more.

10 years ago* electric-tests.el (electric-pair-backspace-1): Replace deleted function.
Glenn Morris [Wed, 9 Apr 2014 01:34:16 +0000 (21:34 -0400)]
* electric-tests.el (electric-pair-backspace-1): Replace deleted function.

10 years agoHighlight more Module methods
Dmitry Gutov [Wed, 9 Apr 2014 00:14:37 +0000 (04:14 +0400)]
Highlight more Module methods

* lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): Highlight more
Module methods.

Fixes: debbugs:17216

10 years ago* lisp/help.el (describe-bindings): Fix buffer handling.
Stefan Monnier [Tue, 8 Apr 2014 19:48:38 +0000 (15:48 -0400)]
* lisp/help.el (describe-bindings): Fix buffer handling.
(describe-bindings-internal): Mark obsolete.

Fixes: debbugs:17210

10 years agoCorrect merge
Daniel Colascione [Tue, 8 Apr 2014 12:39:40 +0000 (05:39 -0700)]
Correct merge

10 years agoMore GC assertions
Daniel Colascione [Tue, 8 Apr 2014 12:34:30 +0000 (05:34 -0700)]
More GC assertions

10 years agoRearrange pointer logging
Daniel Colascione [Tue, 8 Apr 2014 12:32:45 +0000 (05:32 -0700)]
Rearrange pointer logging