bpt/emacs.git
10 years ago* automated/tramp-tests.el (top):
Michael Albinus [Fri, 25 Apr 2014 10:35:01 +0000 (12:35 +0200)]
* automated/tramp-tests.el (top):
* automated/file-notify-tests.el (top): Do not disable interactive
passwords in batch mode.
(password-cache-expiry): Set to nil.

10 years agoMinor doc fix for string predicates.
Eli Zaretskii [Thu, 24 Apr 2014 15:11:04 +0000 (18:11 +0300)]
Minor doc fix for string predicates.

 doc/lispref/strings.texi (Text Comparison): Mention
 equal-including-properties for when text properties of the strings
 matter for comparison.

10 years agoFix bug #17331 with display properties on help-echo strings.
Eli Zaretskii [Thu, 24 Apr 2014 15:02:56 +0000 (18:02 +0300)]
Fix bug #17331 with display properties on help-echo strings.

 lisp/tooltip.el (tooltip-show-help-non-mode, tooltip-show-help): Use
 equal-including-properties to compare help-echo strings.

10 years agoUse a mock-up connection method for remote files.
Michael Albinus [Thu, 24 Apr 2014 08:21:58 +0000 (10:21 +0200)]
Use a mock-up connection method for remote files.

* automated/file-notify-tests.el
(file-notify-test-remote-temporary-file-directory):
* automated/tramp-tests.el (tramp-test-temporary-file-directory):
Use a mock-up method as default.
(tramp-test00-availability): Print the used directory name.
(tramp-test33-recursive-load): Fix typo.

10 years ago* emacs-lisp/lisp-mode.el (emacs-lisp-mode-syntax-table):
Leo Liu [Thu, 24 Apr 2014 00:55:18 +0000 (08:55 +0800)]
* emacs-lisp/lisp-mode.el (emacs-lisp-mode-syntax-table):
Fix syntax for @.

Fixes: debbugs:17325

10 years agoRequire gv early to break eager macro-expansion cycles
Daniel Colascione [Thu, 24 Apr 2014 00:28:47 +0000 (17:28 -0700)]
Require gv early to break eager macro-expansion cycles

* lisp/emacs-lisp/cl.el (gv): Require gv early to break eager
macro-expansion cycles.

10 years agoFix debugging code for checking the newline cache.
Eli Zaretskii [Wed, 23 Apr 2014 15:21:25 +0000 (18:21 +0300)]
Fix debugging code for checking the newline cache.

 src/search.c (Fnewline_cache_check): Don't try to count newlines
 outside the buffer's restriction, as find_newline doesn't support
 that.

10 years ago* lisp/simple.el (region-active-p): Check there's a mark.
Stefan Monnier [Wed, 23 Apr 2014 12:52:22 +0000 (08:52 -0400)]
* lisp/simple.el (region-active-p): Check there's a mark.

Fixes: debbugs:17324

10 years ago* lisp/simple.el (completion-list-mode-map): Use choose-completion for the
Stefan Monnier [Wed, 23 Apr 2014 02:22:06 +0000 (22:22 -0400)]
* lisp/simple.el (completion-list-mode-map): Use choose-completion for the
mouse binding as well.
(completion-list-mode, completion-setup-function): Adjust docstring and
echo area message accordingly.
* lisp/progmodes/idlwave.el (idlwave-choose-completion): Adjust to new
calling convention of choose-completion.
* lisp/comint.el (comint-dynamic-list-completions):
* lisp/term.el (term-dynamic-list-completions): Accept choose-completion.

Fixes: debbugs:17302

10 years ago* lisp/progmodes/perl-mode.el (perl-syntax-propertize-function): Slash after
Stefan Monnier [Wed, 23 Apr 2014 01:56:18 +0000 (21:56 -0400)]
* lisp/progmodes/perl-mode.el (perl-syntax-propertize-function): Slash after
&, |, +, - and * can't be a division.

Fixes: debbugs:17317

10 years ago* lisp/term/xterm.el (xterm--version-handler): Don't use modern xterm
Stefan Monnier [Tue, 22 Apr 2014 20:35:33 +0000 (16:35 -0400)]
* lisp/term/xterm.el (xterm--version-handler): Don't use modern xterm
features on gnome-terminal.

Fixes: debbugs:16988

10 years agoPort to GCC 4.9.0 with --enable-gcc-warnings.
Paul Eggert [Tue, 22 Apr 2014 20:19:17 +0000 (13:19 -0700)]
Port to GCC 4.9.0 with --enable-gcc-warnings.

* image.c (struct my_jpeg_error_mgr) [lint]: Remove member fp.
All uses removed.
(jpeg_load_body) [lint]: Add a 'volatile' to pacify a buggy GCC in
a way that also works with GCC 4.9.0.

10 years ago* search.c (Fnewline_cache_check): Remove unused locals.
Paul Eggert [Tue, 22 Apr 2014 20:13:59 +0000 (13:13 -0700)]
* search.c (Fnewline_cache_check): Remove unused locals.

10 years ago* dired.el (dired-insert-set-properties): Do not consider
Michael Heerdegen [Tue, 22 Apr 2014 18:17:17 +0000 (20:17 +0200)]
* dired.el (dired-insert-set-properties): Do not consider
subdirectory headings and empty lines to be information that
`dired-hide-details-mode' should hide.  (Bug#17228)

10 years agoAdd debugging facility for the newline cache.
Eli Zaretskii [Tue, 22 Apr 2014 17:37:35 +0000 (20:37 +0300)]
Add debugging facility for the newline cache.
See the discussion in
http://lists.gnu.org/archive/html/emacs-devel/2014-04/msg00295.html
for more detail.

 src/search.c (find_newline1): New subroutine.
 (Fnewline_cache_check): New function.
 (syms_of_search): Defsubr it.

10 years agoMerge Org 8.2.6-1.
Bastien Guerry [Tue, 22 Apr 2014 14:07:45 +0000 (16:07 +0200)]
Merge Org 8.2.6-1.

The last merge was from 8.2.5c, but many important bugs got
fixed between 8.2.5c and 8.2.6-1.

10 years ago* automated/tramp-tests.el (tramp--test-check-files): Remove traces.
Michael Albinus [Tue, 22 Apr 2014 10:52:08 +0000 (12:52 +0200)]
* automated/tramp-tests.el (tramp--test-check-files): Remove traces.

10 years ago* net/tramp-sh.el (tramp-sh-handle-file-name-all-completions):
Michael Albinus [Tue, 22 Apr 2014 10:43:01 +0000 (12:43 +0200)]
* net/tramp-sh.el (tramp-sh-handle-file-name-all-completions):
Remove test messages.
(tramp-do-copy-or-rename-file-out-of-band): Do not quote `source'
and `target' twice.

10 years ago* automated/tramp-tests.el (tramp-test30-special-characters):
Michael Albinus [Tue, 22 Apr 2014 07:50:58 +0000 (09:50 +0200)]
* automated/tramp-tests.el (tramp-test30-special-characters):
Remove test for backslash.

10 years ago* lisp/dframe.el (dframe-get-focus): Remove `hook' argument.
Stefan Monnier [Mon, 21 Apr 2014 21:43:17 +0000 (17:43 -0400)]
* lisp/dframe.el (dframe-get-focus): Remove `hook' argument.
* lisp/speedbar.el (speedbar-get-focus): Run the "hook" afterwards instead.

Fixes: debbugs:17311

10 years ago* lisp/emacs-lisp/cl-macs.el (cl--loop-let): Avoid `nil' as var name.
Stefan Monnier [Mon, 21 Apr 2014 21:18:12 +0000 (17:18 -0400)]
* lisp/emacs-lisp/cl-macs.el (cl--loop-let): Avoid `nil' as var name.

10 years ago* net/tramp-sh.el (tramp-sh-handle-file-name-all-completions): Set
Michael Albinus [Mon, 21 Apr 2014 21:04:25 +0000 (23:04 +0200)]
* net/tramp-sh.el (tramp-sh-handle-file-name-all-completions): Set
"IFS=" when using read builtin, in order to preserve spaces in
the file name.  Add test messages for hunting a bug on hydra.
(tramp-get-ls-command): Undo using "-b" argument.  It doesn't help.

10 years ago* lisp/progmodes/prog-mode.el (prettify-symbols--compose-symbol):
Stefan Monnier [Mon, 21 Apr 2014 20:31:22 +0000 (16:31 -0400)]
* lisp/progmodes/prog-mode.el (prettify-symbols--compose-symbol):
Don't prettify a word within a symbol.

10 years agoFix freezing with scroll bars of GTK3 Toolkit.
Jarek Czekalski [Mon, 21 Apr 2014 15:55:28 +0000 (11:55 -0400)]
Fix freezing with scroll bars of GTK3 Toolkit.
* src/keyboard.c (unblock_input): Add comment.
* src/xgselect.c (xg_select): Prevent Glib main loop recursion.

Fixes: debbugs:15801

10 years agoMinor fixes to the docs.
Eli Zaretskii [Mon, 21 Apr 2014 14:50:19 +0000 (17:50 +0300)]
Minor fixes to the docs.

 doc/emacs/buffers.texi (Uniquify): Clarify the default uniquification.
 doc/emacs/indent.texi (Tab Stops): Improve wording.
 doc/emacs/cmdargs.texi (General Variables): Improve docs of
 EMACSLOADPATH.  Index all the environment variables.
 (Misc Variables): Index all the environment variables.

 doc/lispref/text.texi (Registers): Document register-read-with-preview.
 doc/lispref/internals.texi (Building Emacs): Improve indexing.

10 years agodoc/emacs/ChangeLog: Typo fix.
Eli Zaretskii [Mon, 21 Apr 2014 14:01:56 +0000 (17:01 +0300)]
doc/emacs/ChangeLog: Typo fix.

10 years agoMention that overlay priority doesn't have to be nil or an integer.
Eli Zaretskii [Mon, 21 Apr 2014 13:46:25 +0000 (16:46 +0300)]
Mention that overlay priority doesn't have to be nil or an integer.

Fixes: debbugs:17234

10 years agoFix redefinition warning in MinGW64 build.
Eli Zaretskii [Mon, 21 Apr 2014 06:37:21 +0000 (09:37 +0300)]
Fix redefinition warning in MinGW64 build.

 nt/inc/ms-w32.h (lseek): Define only if not already a macro.
 Suggested by Fabrice Popineau <fabrice.popineau@gmail.com>.

10 years agoSpelling fixes.
Paul Eggert [Mon, 21 Apr 2014 00:31:59 +0000 (17:31 -0700)]
Spelling fixes.

10 years ago* automated/tramp-tests.el (tramp-test19-directory-files-and-attributes)
Michael Albinus [Sun, 20 Apr 2014 21:39:43 +0000 (23:39 +0200)]
* automated/tramp-tests.el (tramp-test19-directory-files-and-attributes)
(tramp-test22-file-times): Check for `file-attributes' equality
only if there is a usable timestamp.
(tramp--test-check-files): Do not use `copy-sequence'.

10 years ago* net/tramp-sh.el (tramp-get-ls-command): Use "-b" argument if possible.
Michael Albinus [Sun, 20 Apr 2014 21:35:55 +0000 (23:35 +0200)]
* net/tramp-sh.el (tramp-get-ls-command): Use "-b" argument if possible.

10 years agoImprove NEWS entry for dired-hide-details-mode.
Eli Zaretskii [Sun, 20 Apr 2014 14:50:13 +0000 (17:50 +0300)]
Improve NEWS entry for dired-hide-details-mode.

10 years agoFix commit date of an entry in lisp/ChangeLog.16.
Eli Zaretskii [Sun, 20 Apr 2014 14:45:19 +0000 (17:45 +0300)]
Fix commit date of an entry in lisp/ChangeLog.16.

10 years agoInstrument `tramp--test-check-files' in order to get traces on hydra.
Michael Albinus [Sat, 19 Apr 2014 21:05:30 +0000 (23:05 +0200)]
Instrument `tramp--test-check-files' in order to get traces on hydra.

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 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 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 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 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* 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 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 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 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 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* 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 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 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 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 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 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* 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 agoChangeLog fix (no need to merge to trunk)
Glenn Morris [Mon, 7 Apr 2014 21:15:45 +0000 (17:15 -0400)]
ChangeLog fix (no need to merge to trunk)

10 years ago* src/alloc.c: Keep track of symbols referenced from pure space (bug#17168).
Stefan Monnier [Mon, 7 Apr 2014 16:08:46 +0000 (12:08 -0400)]
* src/alloc.c: Keep track of symbols referenced from pure space (bug#17168).
(symbol_block_pinned): New var.
(Fmake_symbol): Initialize `pinned'.
(purecopy): New function, extracted from Fpurecopy.  Mark symbols as
pinned and signal an error for un-purifiable objects.
(pure_cons): Use it.
(Fpurecopy): Use it, except for objects that can't be purified.
(mark_pinned_symbols): New function.
(Fgarbage_collect): Use it.
(gc_sweep): Remove hack made unnecessary.
* src/lisp.h (struct Lisp_Symbol): New bitfield `pinned'.

10 years agoImprove on previous quote autopairing change
João Távora [Mon, 7 Apr 2014 07:29:50 +0000 (08:29 +0100)]
Improve on previous quote autopairing change

Backported from trunk 2014-04-04T23:31:02Z!joaotavora@gmail.com

* lisp/elec-pair.el:
(electric-pair--syntax-ppss): When inside comments parse from
comment beginning.
(electric-pair--balance-info): Fix typo in comment.
(electric-pair--in-unterminated-string-p): Delete.
(electric-pair--unbalanced-strings-p): New function.
(electric-pair-string-bound-function): New var.
(electric-pair-inhibit-if-helps-balance): Decide quote pairing
according to `electric-pair--in-unterminated-string-p'

* test/automated/electric-tests.el (define-electric-pair-test): Don't
overtest..
(inhibit-in-mismatched-string-inside-ruby-comments): New test.
(inhibit-in-mismatched-string-inside-c-comments): New test.

10 years agoInhibit quote autopairing more frequently
João Távora [Mon, 7 Apr 2014 07:24:03 +0000 (08:24 +0100)]
Inhibit quote autopairing more frequently

Backported from trunk 2014-04-02T09:59:06Z!joaotavora@gmail.com

* lisp/elec-pair.el (electric-pair-inhibit-if-helps-balance): Inhibit
quote pairing if point-max is inside an unterminated string.
(electric-pair--looking-at-unterminated-string-p):
Delete.
(electric-pair--in-unterminated-string-p): New function.

* test/automated/electric-tests.el (inhibit-if-strings-mismatched):
New test, change from `inhibit-only-of-next-is-mismatched'.

10 years ago* lisp/shell.el (shell-directory-tracker): Go back to just ignoring failures.
Glenn Morris [Mon, 7 Apr 2014 01:27:32 +0000 (18:27 -0700)]
* lisp/shell.el (shell-directory-tracker): Go back to just ignoring failures.

Fixes: debbugs:17159

10 years agoChangeLog fix
Glenn Morris [Mon, 7 Apr 2014 00:04:00 +0000 (17:04 -0700)]
ChangeLog fix