]> git.eshelyaron.com Git - emacs.git/log
emacs.git
7 years agoAnother commit scratch/build-test
Phillip Lord [Wed, 29 Mar 2017 11:32:50 +0000 (12:32 +0100)]
Another commit

7 years agoAnother fake commit
Phillip Lord [Wed, 29 Mar 2017 08:53:50 +0000 (09:53 +0100)]
Another fake commit

7 years agoThis is not a real commit
Phillip Lord [Wed, 29 Mar 2017 08:36:26 +0000 (09:36 +0100)]
This is not a real commit

7 years ago* lisp/ido.el (ido-read-internal, ido-complete): Do not bind `non-essential'.
Michael Albinus [Wed, 15 Mar 2017 10:24:23 +0000 (11:24 +0100)]
* lisp/ido.el (ido-read-internal, ido-complete): Do not bind `non-essential'.

7 years agoWrite a named function
Mark Oteiza [Wed, 15 Mar 2017 05:12:48 +0000 (01:12 -0400)]
Write a named function

* lisp/comint.el (comint-nonblank-p): New function.
(comint-input-filter): Use it.

7 years agoReplace more nested ifs with cond
Mark Oteiza [Wed, 15 Mar 2017 04:42:25 +0000 (00:42 -0400)]
Replace more nested ifs with cond

This is a continuation of 0db5ba4 "Replace nested ifs with cond".
* lisp/play/dunnet.el (dun-special-object, dun-inven, dun-drop):
(dun-drop-check, dun-swim, dun-break): Use when and cond where
appropriate.
(dun-examine): Fix indentation.
(dun-doverb): Use when.
(dun-read-line): Refactor.

7 years agoRecomplexify ‘delete-trailing-whitespace’ by treating \n as whitespace again
Noam Postavsky [Tue, 14 Mar 2017 13:23:08 +0000 (09:23 -0400)]
Recomplexify ‘delete-trailing-whitespace’ by treating \n as whitespace again

Mostly reverts "Simplify ‘delete-trailing-whitespace’ by not treating
\n as whitespace" from 2016-07-04.  Setting \n to non-whitespace
causes the regex engine to backtrack a lot when searching for
"\\s-+$" (Bug#26079).

* lisp/simple.el (delete-trailing-whitespace): Don't change newline
syntax, search for "\\s-$" and then skip backward over trailing
whitespace.

7 years agoMerge from gnulib
Paul Eggert [Tue, 14 Mar 2017 20:44:11 +0000 (13:44 -0700)]
Merge from gnulib

This incorporates:
2017-03-14 snippets: move unadjusted snippet sources to lib
2017-03-14 gnulib-tool: fix typo in comment output
2017-03-14 snippets: work around GNU Make 3.82 VPATH
2017-03-13 gnulib-tool: minor --gnu-make fixups
2017-03-12 gnulib-tool: new option --gnu-make
* .gitignore: Remove lib/arg-nonnull.h, lib/c++defs.h,
lib/warn-on-use.h.  Change exception from
build-aux/snippet/_Noreturn.h to lib/_Noreturn.h.
* admin/authors.el (authors-renamed-files-regexps):
* admin/notes/copyright, make-dist:
The snippet files moved from build-aux/snippet to lib.
* lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
* lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
* lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
* lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
* lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.

7 years agoMerge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Michael Albinus [Tue, 14 Mar 2017 14:52:32 +0000 (15:52 +0100)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs

7 years agoReenable lost Tramp test case
Michael Albinus [Tue, 14 Mar 2017 14:52:16 +0000 (15:52 +0100)]
Reenable lost Tramp test case

* test/lisp/net/tramp-tests.el (tramp-test24-file-name-completion):
Reenable lost test case.

7 years agoRevert "Remove NSEvent loop from ns_select (bug#25265)"
Alan Third [Mon, 13 Mar 2017 15:03:11 +0000 (15:03 +0000)]
Revert "Remove NSEvent loop from ns_select (bug#25265)"

This reverts commit 3bd2e9e975ed29daaf03ca7559e4664aade0674f.

7 years agoRevert "Add missing timeout value in ns_select"
Alan Third [Mon, 13 Mar 2017 15:02:37 +0000 (15:02 +0000)]
Revert "Add missing timeout value in ns_select"

This reverts commit a65236214d9202fb69a6ba5169d4ac1a4bcb0b0d.

7 years agoRemove old macOS compatibility code
Alan Third [Tue, 7 Mar 2017 14:45:03 +0000 (14:45 +0000)]
Remove old macOS compatibility code

* src/nsimage.m, src/nsmenu.m, src/nsterm.m: Remove code only for
macOS versions below 10.6 as they are not supported in Emacs 25+.

7 years agoTune `tramp-completion-file-name-regexp-unified'
Michael Albinus [Tue, 14 Mar 2017 14:10:40 +0000 (15:10 +0100)]
Tune `tramp-completion-file-name-regexp-unified'

* lisp/net/tramp.el (tramp-completion-file-name-regexp-unified):
Extend this regexp to match also "/".

7 years agoShow ancestor buffer in 3way merges
Tino Calancha [Tue, 14 Mar 2017 07:12:29 +0000 (16:12 +0900)]
Show ancestor buffer in 3way merges

Add an option ediff-show-ancestor', to control if the ancestor buffer
must be shown in 3way merges (Bug#25493); set it non-nil by default.
Add a toggle to change this option interactively; the original
value of the option is restored on exit.

Update the window setup so that the ancestor buffer is
shown in 3way merges when ediff-show-ancestor is non-nil.

Any operation on ediff windows must take in account the
ancestor window as well, when this is shown.

* lisp/vc/ediff-init.el (ediff-show-ancestor): New option.
(ediff--show-ancestor-orig): New defvar.
* lisp/vc/ediff-wind.el (ediff-window-Ancestor): New defvar.
(ediff-setup-windows-plain-merge, ediff-setup-windows-multiframe-merge):
Display ancestor buffer if ediff-show-ancestor is non-nil.
(ediff-keep-window-config): Expect ancestor window in
ediff-window-config-saved.
(ediff-window-alist): Add entry for the ancestor window.
* lisp/vc/ediff-util.el (ediff-setup-control-buffer):
ediff-window-config-saved contains ancestor window.
(ediff-show-ancestor): Delete this command.
(ediff-setup-keymap): Bind ediff-toggle-show-ancestor to '/' for merge jobs.
(ediff-update-diffs): Compute new diffs using ancestor buffer in 3way merges;
don't cheat it to think that is performing a comparison, that trick is not
necessary anymore: simply call 'ediff-setup-diff-regions-function'
with file-A, file-B and the file ancestor.
(ediff-recenter): Update doc string.  Consider the ancestor buffer.
(ediff--check-ancestor-exists): New defun.
(ediff-toggle-show-ancestor): New command; toggle ediff-show-ancestor.
(ediff--restore-options-on-exit): Restore ediff-show-ancestor on exit.
(ediff-scroll-vertically, ediff-scroll-horizontally)
(ediff-operate-on-windows): Consider the ancestor as well.
* lisp/vc/ediff-help.el (ediff-long-help-message-merge):
List ediff-toggle-show-ancestor.
* doc/misc/ediff.texi (Introduction, Quick Help Commands): Update manual.
; * etc/NEWS: Announce these changes.

7 years agodiff-mode: Improve default faces for buffer ancestor
Tino Calancha [Tue, 14 Mar 2017 06:19:20 +0000 (15:19 +0900)]
diff-mode: Improve default faces for buffer ancestor

* lisp/vc/ediff-init.el (ediff-current-diff-Ancestor)
(ediff-fine-diff-Ancestor): Use defaults consistent with
faces for 'ediff-buffer-A' and 'ediff-buffer-B'.

7 years agoFix make-dist typo
Paul Eggert [Mon, 13 Mar 2017 21:24:31 +0000 (14:24 -0700)]
Fix make-dist typo

* make-dist: Fix typo introduced in the Bug#25895 fix.

7 years agoetc/NEWS: Remote file names require a method.
Michael Albinus [Mon, 13 Mar 2017 17:30:54 +0000 (18:30 +0100)]
etc/NEWS: Remote file names require a method.

7 years agoRequire method in remote file name syntax
Michael Albinus [Mon, 13 Mar 2017 17:05:59 +0000 (18:05 +0100)]
Require method in remote file name syntax

* lisp/minibuffer.el (completion--nth-completion):
Do not bind `non-essential'.

* lisp/net/tramp-adb.el (tramp-adb-maybe-open-connection):
* lisp/net/tramp-gvfs.el (tramp-gvfs-maybe-open-connection):
* lisp/net/tramp-sh.el (tramp-maybe-open-connection):
* lisp/net/tramp-smb.el (tramp-smb-maybe-open-connection): Do not call
`tramp-check-proper-method-and-host'.

* lisp/net/tramp-sh.el (tramp-ssh-controlmaster-options): Better traces.
(tramp-maybe-open-connection): Do not use argument for
´tramp-completion-mode-p'.

* lisp/net/tramp.el (tramp-default-method-marker): New defconst.
(tramp-prefix-format, tramp-postfix-method-format)
(tramp-prefix-ipv6-format, tramp-postfix-ipv6-format)
(tramp-prefix-port-format, tramp-postfix-host-format)
(tramp-file-name-regexp, tramp-completion-file-name-regexp):
Use `eq' instead of `eqal'.
(tramp-method-regexp, tramp-domain-regexp)
(tramp-remote-file-name-spec-regexp)
(tramp-file-name-regexp-unified)
(tramp-completion-file-name-regexp-unified)
(tramp-completion-file-name-regexp-separate): Adapt regexp.
(tramp-completion-file-name-handler-alist)
(tramp-run-real-handler): Autoload them.
(tramp-find-method): Handle `tramp-default-method-marker'.
(tramp-check-proper-method-and-host)
(tramp-completion-run-real-handler): Remove them.
(tramp-error-with-buffer, tramp-connectable-p): Do not use
argument for ´tramp-completion-mode-p'.
(tramp-find-foreign-file-name-handler): Remove COMPLETION
argument.  Do not apply heuristic for completion.
(tramp-file-name-handler): Do not modify `non-essential'.
(tramp-completion-file-name-handler): Change implementation.
(tramp-autoload-file-name-handler)
(tramp-completion-handle-file-name-all-completions):
Call `tramp-run-real-handler'.
(tramp-completion-mode-p): Do not autoload.  Remove argument.
Do not apply heuristic for completion.
(tramp-completion-dissect-file-name): Simplify implementation.
(tramp-handle-file-name-as-directory): Call `tramp-connectable-p'.

* test/lisp/net/tramp-tests.el (tramp-test01-file-name-syntax)
(tramp-test02-file-name-dissect)
(tramp-test03-file-name-defaults)
(tramp-test06-directory-file-name): Adapt to the new syntax.
(tramp-test11-copy-file, tramp-test12-rename-file)
(tramp--test-check-files): Deactivate temporarily tests with
quoted file names.
(tramp-test16-directory-files, tramp-test17-insert-directory):
Adapt tests.
(tramp-test24-file-name-completion): Do not check for
completion mode.
(tramp-test31-make-auto-save-file-name): Deactivate temporarily
two tests.

7 years agoFix bidi paragraph direction when inserting text at newline
Eli Zaretskii [Mon, 13 Mar 2017 16:15:09 +0000 (18:15 +0200)]
Fix bidi paragraph direction when inserting text at newline

* src/insdel.c (invalidate_buffer_caches): Invalidate the bidi
paragraph cache when inserting immediately after a newline.
(Bug#26083)

7 years ago* test/lisp/emacs-lisp/cl-print-tests.el (cl-print-tests-1): Fix regexp.
Tino Calancha [Mon, 13 Mar 2017 11:01:40 +0000 (20:01 +0900)]
* test/lisp/emacs-lisp/cl-print-tests.el (cl-print-tests-1): Fix regexp.

7 years ago* lisp/emacs-lisp/cl-print.el (cl-print-compiled): New variable
Stefan Monnier [Mon, 13 Mar 2017 02:09:02 +0000 (22:09 -0400)]
* lisp/emacs-lisp/cl-print.el (cl-print-compiled): New variable

(cl-print-object) <compiled-function>: Print the docstring and
interactive form.  Obey cl-print-compiled.

7 years agoFix indent-sexp when called from inside a string (Bug#21343)
Noam Postavsky [Sun, 5 Mar 2017 05:53:58 +0000 (00:53 -0500)]
Fix indent-sexp when called from inside a string (Bug#21343)

* lisp/emacs-lisp/lisp-mode.el (indent-sexp): Get initial syntax parse
state from `syntax-ppss'.

7 years ago* lisp/emacs-lisp/lisp-mode.el (indent-sexp): Simplify.
Noam Postavsky [Sun, 5 Mar 2017 05:16:13 +0000 (00:16 -0500)]
* lisp/emacs-lisp/lisp-mode.el (indent-sexp): Simplify.

* test/lisp/emacs-lisp/lisp-mode-tests.el (indent-sexp):
(indent-subsexp, indent-sexp-in-string): New tests.

7 years agoUse switch on pseudovector types; plus cleanups along the way
Stefan Monnier [Sun, 12 Mar 2017 21:44:13 +0000 (17:44 -0400)]
Use switch on pseudovector types; plus cleanups along the way

* src/lisp.h (PSEUDOVECTOR_TYPE): New function, extracted from mark_object.
(PSEUDOVECTOR_TYPEP): Change type of `code'.

* src/alloc.c (sweep_vectors): Remove out-of-date assertion.
(mark_object): Use PSEUDOVECTOR_TYPE.

* src/data.c (Ftype_of): Use switch on pvec type.

* src/print.c (print_object): Use switch on pvec type.

* lisp/emacs-lisp/cl-generic.el (cl--generic-typeof-types):
Add recently added types.

7 years agoInstall update-game-score only on request
Paul Eggert [Sun, 12 Mar 2017 19:04:10 +0000 (12:04 -0700)]
Install update-game-score only on request

Most distributions do not install update-game-score properly
due to setuid/setgid complications, so install it only when
the installer specifies a user or group (Bug#25895).
* .gitattributes: Remove lib-src/update-game-score.exe.manifest.
* Makefile.in (gameuser, gamegroup, use_gamedir, PATH_GAME):
New vars.
(epaths-force): Use PATH_GAME.
(uninstall): Remove snake-scores and tetris-scores only if shared.
* configure.ac: Default --with-gameuser to 'no'.
(UPDATE_MANIFEST): Remove.
* etc/NEWS: Mention this.
* lib-src/Makefile.in (UPDATE_MANIFEST): Remove.
(use_gamedir): New macro.
(UTILITIES): Remove update-game-score unless use_gamedir.
(SCRIPTS): Remove $(UPDATE_MANIFEST).
($(DESTDIR)${archlibdir}): Install game directory program and data
only if use_gamedir.
* lib-src/update-game-score.exe.manifest: Remove, as
update-game-score is no longer installed on MS-Windows.
* lisp/play/gamegrid.el (gamegrid-add-score-with-update-game-score):
Use auxiliary program only if setuid or setgid.
* make-dist: Do not distribute update-game-score.exe.manifest.
* src/callproc.c (init_callproc):
Set Vshared_game_score_directory based on PATH_GAME, not DOS_NT.
(syms_of_callproc): Remove unnecessary initialization of
Vshared_game_score_directory.

7 years agoAdd `touch-action' to list of CSS properties
Simen Heggestøyl [Sun, 12 Mar 2017 12:55:48 +0000 (13:55 +0100)]
Add `touch-action' to list of CSS properties

* lisp/textmodes/css-mode.el (css-property-alist): Add `touch-action'
property.

7 years agoTeach etags to process ENUM_BF correctly
Eli Zaretskii [Sun, 12 Mar 2017 15:36:41 +0000 (17:36 +0200)]
Teach etags to process ENUM_BF correctly

* lib-src/etags.c (sym_type): New enumeration value st_C_enum_bf.
(hash): Regenerated values for asso_values[] array.
(in_word_set): Update values of TOTAL_KEYWORDS and
MAX_HASH_VALUE.  Add "ENUM_BF" to the wordlist[] array.
(in_enum_bf): New file-global variable.
(consider_token): Skip ENUM_BF if not in a macro definition.
(C_entries): Reset the in_enum_bf flag when past its closing
parenthesis.

* test/manual/etags/ETAGS.good_1:
* test/manual/etags/ETAGS.good_2:
* test/manual/etags/ETAGS.good_3:
* test/manual/etags/ETAGS.good_4:
* test/manual/etags/ETAGS.good_5:
* test/manual/etags/ETAGS.good_6:
* test/manual/etags/CTAGS.good: Adapt to changes in etags.

7 years ago; Update expected results of etags tests.
Eli Zaretskii [Sun, 12 Mar 2017 15:24:25 +0000 (17:24 +0200)]
; Update expected results of etags tests.

* test/manual/etags/CTAGS.good:
* test/manual/etags/ETAGS.good_1:
* test/manual/etags/ETAGS.good_2:
* test/manual/etags/ETAGS.good_3:
* test/manual/etags/ETAGS.good_4:
* test/manual/etags/ETAGS.good_5:
* test/manual/etags/ETAGS.good_6: Update.

7 years agoUse path/to/file instead of path/to.file in tramp.texi
Michael Albinus [Sun, 12 Mar 2017 09:28:18 +0000 (10:28 +0100)]
Use path/to/file instead of path/to.file in tramp.texi

* doc/misc/tramp.texi (Configuration, File name Syntax):
Use path/to/file instead of path/to.file.

7 years agoRemove some stray gnulib files
Paul Eggert [Sun, 12 Mar 2017 08:02:52 +0000 (00:02 -0800)]
Remove some stray gnulib files

* admin/merge-gnulib: rm m4/gnulib-tool.m4 too.
(GNULIB_MODULES): Remove unsetenv, as it is not needed and
the --avoid=unsetenv option avoided most of it anyway.
* lib/unsetenv.c, m4/gnulib-tool.m4, m4/setenv.m4: Remove.
* lib/gnulib.mk: Regenerate.

7 years agoMerge from gnulib
Paul Eggert [Sun, 12 Mar 2017 07:53:02 +0000 (23:53 -0800)]
Merge from gnulib

This incorporates:
2017-03-11 gnulib-common.m4: avoid aclocal.m4 bloat
* doc/misc/texinfo.tex, m4/gnulib-common.m4: Copy from gnulib.

7 years agoRemove trivial duplication in epg-config
Glenn Morris [Sun, 12 Mar 2017 01:22:56 +0000 (17:22 -0800)]
Remove trivial duplication in epg-config

* lisp/epg-config.el (epg-config--program-alist):
Use epg-gpg-minimum-version.

7 years agoSmall epg-find-configuration improvement
Glenn Morris [Sun, 12 Mar 2017 01:21:20 +0000 (17:21 -0800)]
Small epg-find-configuration improvement

* lisp/epg-config.el (epg-find-configuration):
Handle epg-gpg-program customized but not saved.  (Bug#25947)

7 years agoImprove last change
Stefan Monnier [Sat, 11 Mar 2017 21:36:23 +0000 (16:36 -0500)]
Improve last change

* lisp/emacs-lisp/lisp-mode.el (lisp-el-font-lock-keywords-2):
Use ppss to check escaping and add help-echo.

7 years agoHighlight useless backslashes in Elisp strings
Stefan Monnier [Sat, 11 Mar 2017 16:35:14 +0000 (11:35 -0500)]
Highlight useless backslashes in Elisp strings

* lisp/emacs-lisp/lisp-mode.el (lisp-el-font-lock-keywords-2):
Put warning face on backslashes that have no effect.

7 years agoFix generation of nt/gnulib.mk on macOS
Eli Zaretskii [Sat, 11 Mar 2017 11:34:08 +0000 (13:34 +0200)]
Fix generation of nt/gnulib.mk on macOS

* nt/Makefile.in (${srcdir}/gnulib.mk): Don't use the -f- option
to Sed, as that is not portable with non-GNU Sed variants.
(Bug#26043)

7 years agoAvoid aborts/assertion violations due to 'vim-empty-lines-mode'
Eli Zaretskii [Sat, 11 Mar 2017 08:25:05 +0000 (10:25 +0200)]
Avoid aborts/assertion violations due to 'vim-empty-lines-mode'

* src/xdisp.c (handle_single_display_spec): If position to be
restored after processing the display property comes from an
overlay, protect against that overlay's end point being outside of
the narrowed region.
Reported by Filipe Silva <filipe.silva@gmail.com> in
http://lists.gnu.org/archive/html/emacs-devel/2017-03/msg00176.html.

7 years ago; * doc/lispref/processes.texi: Restore deleted FIXME comment.
Glenn Morris [Fri, 10 Mar 2017 20:39:52 +0000 (15:39 -0500)]
; * doc/lispref/processes.texi: Restore deleted FIXME comment.

7 years agoSmall improvement for epa-display-error (bug#24553)
Glenn Morris [Fri, 10 Mar 2017 20:14:33 +0000 (15:14 -0500)]
Small improvement for epa-display-error (bug#24553)

* lisp/epa.el (epa-display-error): Report the actual program in use.

7 years agoTweak X toolkit code to pacify modern GCC
Paul Eggert [Fri, 10 Mar 2017 17:30:30 +0000 (09:30 -0800)]
Tweak X toolkit code to pacify modern GCC

* lwlib/lwlib-Xaw.c, lwlib/lwlib-Xm.c, lwlib/lwlib.c:
Don’t include <stdlib.h>, since this code now calls emacs_abort
rather than abort.
* lwlib/lwlib-Xaw.c (make_dialog, xaw_generic_callback)
(wm_delete_window):
* lwlib/lwlib-Xm.c (make_menu_in_widget, do_call):
* lwlib/lwlib.c (instantiate_widget_instance, lw_make_widget):
* lwlib/xlwmenu.c (abort_gracefully, draw_separator)
(separator_height, XlwMenuInitialize):
Use emacs_abort, not abort.  Without this change, some calls
to ‘abort’ were invalid, as stdlib.h was not always included.
* src/widget.c (resources, emacsFrameClassRec):
* src/xfns.c (x_window) [USE_X_TOOLKIT]:
* src/xmenu.c (create_and_show_popup_menu) [USE_X_TOOLKIT]:
* src/xterm.c (emacs_options) [USE_X_TOOLKIT}:
(x_term_init) [USE_X_TOOLKIT]:
Cast string constants to char * to pacify --enable-gcc-warnings.

7 years ago* doc/misc/tramp.texi (Android shell setup): Require adb program
Michael Albinus [Fri, 10 Mar 2017 15:13:39 +0000 (16:13 +0100)]
* doc/misc/tramp.texi (Android shell setup): Require adb program

7 years agoAdapt tramp-tests.el
Michael Albinus [Fri, 10 Mar 2017 13:34:23 +0000 (14:34 +0100)]
Adapt tramp-tests.el

* test/lisp/net/tramp-tests.el (tramp-test06-directory-file-name)
(tramp-test24-file-name-completion): Call
`tramp-completion-mode-p' with argument.

7 years ago[doc] Replace bindat example: s/fortune cookie/rfc868 payload/
Thien-Thi Nguyen [Fri, 10 Mar 2017 12:25:41 +0000 (13:25 +0100)]
[doc] Replace bindat example: s/fortune cookie/rfc868 payload/

* doc/lispref/processes.texi (Bindat Examples):
Mention two examples in intro blurb; rewrite first example.

7 years agoSimplify checks for xdg-open and xdg-email
Paul Eggert [Fri, 10 Mar 2017 03:01:19 +0000 (19:01 -0800)]
Simplify checks for xdg-open and xdg-email

browse-url's xdg-open detection was too picky on some GNU/Linux
desktops; see Bug#25778.  Simplify the code by assuming xdg-open works
if it is executable, as nowadays this is more likely to be correct than
trying to use heuristics from a few years ago.  Don't test for nohup: it
is ineffective nowadays, as xdg-open's child uses the default action for
SIGHUP even if xdg-open's invoker ignores SIGHUP.  While we're at it,
allow for Wayland here, as "emacs -nw" might be running in a non-X
Wayland terminal.
* lisp/mail/emacsbug.el (report-emacs-bug-can-use-xdg-email):
* lisp/net/browse-url.el (browse-url-can-use-xdg-open):
Simplify to a test for DISPLAY and whether the helper program is
executable.  Allow WAYLAND_DISPLAY as an option.

7 years agoByte compile cond clauses without any bodies correctly.
Vibhav Pant [Thu, 9 Mar 2017 18:39:58 +0000 (00:09 +0530)]
Byte compile cond clauses without any bodies correctly.

* lisp/emacs-lisp/bytecomp.el (byte-compile-cond-jump-table): When a
cond clause has no body, push t on to the stack.

7 years agoFix bug#23006
Michael Albinus [Thu, 9 Mar 2017 18:44:37 +0000 (19:44 +0100)]
Fix bug#23006

* lisp/minibuffer.el (completion--nth-completion):
Let-bind `non-essential'.

* lisp/net/tramp.el (tramp-completion-mode): Fix docstring.
(tramp-completion-mode-p): Optional parameter VEC.  Replace
check for `last-input-event' by analysing VEC argument.
(tramp-error-with-buffer, tramp-file-name-handler)
(tramp-connectable-p, tramp-handle-file-name-as-directory):
* lisp/net/tramp-sh.el (tramp-maybe-open-connection): Use it.

7 years agoetc/NEWS: Add entry for new `switch' bytecode.
Vibhav Pant [Thu, 9 Mar 2017 14:32:03 +0000 (20:02 +0530)]
etc/NEWS: Add entry for new `switch' bytecode.

7 years ago* src/data.c (arithcompare): Add comments.
Paul Eggert [Wed, 8 Mar 2017 21:43:16 +0000 (13:43 -0800)]
* src/data.c (arithcompare): Add comments.

7 years agoUpdate a cl-print test
Glenn Morris [Wed, 8 Mar 2017 19:43:16 +0000 (14:43 -0500)]
Update a cl-print test

* test/lisp/emacs-lisp/cl-print-tests.el (cl-print-tests-1):
Update for recent change in cl-print-object function output.

7 years agoReplace change-log-date-face -> change-log-date
Sam Steingold [Wed, 8 Mar 2017 18:32:21 +0000 (13:32 -0500)]
Replace change-log-date-face -> change-log-date

This fixes c430f7e23fc2c22f251ace4254e37dea1452dfc3.

7 years agoFix bug#26011
Michael Albinus [Wed, 8 Mar 2017 16:27:24 +0000 (17:27 +0100)]
Fix bug#26011

* lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file-via-buffer):
Check, whether file is too large.  (Bug#26011)

7 years ago* data.c (minmax_driver): Use CHECK_NUMBER_OR_FLOAT_COERCE_MARKER.
Andreas Schwab [Wed, 8 Mar 2017 08:25:09 +0000 (09:25 +0100)]
* data.c (minmax_driver): Use CHECK_NUMBER_OR_FLOAT_COERCE_MARKER.
(Fmax, Fmin): Restore documentation.

7 years ago* data.c (cons_to_unsigned, cons_to_signed, Fstring_to_number): Reorder
Andreas Schwab [Wed, 8 Mar 2017 08:36:26 +0000 (09:36 +0100)]
* data.c (cons_to_unsigned, cons_to_signed, Fstring_to_number): Reorder
comparisons that are written backward.

7 years ago[doc elisp] Add some index entries for "old" advice mechanism
Thien-Thi Nguyen [Wed, 8 Mar 2017 08:36:06 +0000 (09:36 +0100)]
[doc elisp] Add some index entries for "old" advice mechanism

* doc/lispref/functions.texi (Porting old advice):
Add one @cindex and two @findex entries.

7 years ago* etc/NEWS: Adjust to match previous patch.
Paul Eggert [Wed, 8 Mar 2017 06:05:53 +0000 (22:05 -0800)]
* etc/NEWS: Adjust to match previous patch.

7 years agomin and max should not return markers
Paul Eggert [Wed, 8 Mar 2017 05:23:08 +0000 (21:23 -0800)]
min and max should not return markers

Problem reported by Glenn Morris in:
http://lists.gnu.org/archive/html/emacs-devel/2017-03/msg00147.html
* src/data.c (minmax_driver): Convert any marker result to an
integer, since some callers assume this.
* test/src/data-tests.el (data-tests-max, data-tests-min):
Test for this.

7 years ago* lisp/emacs-lisp/cl-print.el (cl-print-object): Use #f(..) for functions.
Stefan Monnier [Wed, 8 Mar 2017 01:35:40 +0000 (20:35 -0500)]
* lisp/emacs-lisp/cl-print.el (cl-print-object): Use #f(..) for functions.

7 years agoAdd missing timeout value in ns_select
Alan Third [Wed, 8 Mar 2017 00:40:05 +0000 (00:40 +0000)]
Add missing timeout value in ns_select

* src/nsterm.m (ns_select): Set timeout to distant future when relying
on fd_handler's timeout.

7 years ago* admin/update_autogen: Ensure nt/gnulib.mk exists, for autoreconf.
Glenn Morris [Tue, 7 Mar 2017 18:01:40 +0000 (13:01 -0500)]
* admin/update_autogen: Ensure nt/gnulib.mk exists, for autoreconf.

7 years ago; Update ldefs-boot.el
Glenn Morris [Tue, 7 Mar 2017 17:59:40 +0000 (12:59 -0500)]
; Update ldefs-boot.el

7 years agoRemove isnan hack for Solaris 10 gcc 3.4.3
Paul Eggert [Tue, 7 Mar 2017 17:50:15 +0000 (09:50 -0800)]
Remove isnan hack for Solaris 10 gcc 3.4.3

This seems to have been a false alarm (Bug#26018).
* src/data.c (isnan):
* src/floatfns.c (isfinite, isnan):
Use standard implementation if available.

7 years agoSupport browsing URLs with embedded spaces on MS-Windows
Eli Zaretskii [Tue, 7 Mar 2017 16:37:58 +0000 (18:37 +0200)]
Support browsing URLs with embedded spaces on MS-Windows

* lisp/net/browse-url.el (browse-url-default-windows-browser):
Unhex %XX hex-encoded characters, as w32-shell-execute doesn't
support that in file:// URLs.  (Bug#26014)

7 years agoDefine copysign on all platforms
Paul Eggert [Tue, 7 Mar 2017 16:29:19 +0000 (08:29 -0800)]
Define copysign on all platforms

* configure.ac (copysign): Remove test.
* src/floatfns.c (signbit): New macro, if not already defined.
(Fcopysign): Use it instead of copysign.
(Fcopysign, syms_of_floatfns): Define the function on all platforms.

7 years ago; Typo fixes in comment
Paul Eggert [Tue, 7 Mar 2017 15:44:13 +0000 (07:44 -0800)]
; Typo fixes in comment

7 years agoRevert "Replace ldefs-boot with a much smaller file"
Phillip Lord [Tue, 7 Mar 2017 13:25:45 +0000 (13:25 +0000)]
Revert "Replace ldefs-boot with a much smaller file"

This reverts commit c27b645956a11fab1dd8fa189254d525390958f5.

This commit has been reverted because the new mechanism was too
sensitive to changes in the lisp source, generation of new ldefs-boot
files was platform specific and resulted in warnings about undefined
variables.

See also 11436e2890d.

7 years agoRevert "Record autoloads till emacs dump"
Phillip Lord [Tue, 7 Mar 2017 13:24:10 +0000 (13:24 +0000)]
Revert "Record autoloads till emacs dump"

This reverts commit 72c668a9042ac6475eadedfee5c87fb1e6b2d753.

This commit has been reverted because the new mechanism was too
sensitive to changes in the lisp source, generation of new ldefs-boot
files was platform specific and resulted in warnings about undefined
variables.

See also 11436e2890d.

7 years agoRevert "Remove unused ldefs-boot.el"
Phillip Lord [Tue, 7 Mar 2017 13:22:47 +0000 (13:22 +0000)]
Revert "Remove unused ldefs-boot.el"

This reverts commit ef8c9f8fc922b615aca91b47820d1f1900fddc96.

This commit has been reverted because the new mechanism was too
sensitive to changes in the lisp source, generation of new ldefs-boot
files was platform specific and resulted in warnings about undefined
variables.

See also 11436e2890d.

7 years agoRevert "Remove conditional includes from bootstrap"
Phillip Lord [Tue, 7 Mar 2017 13:22:32 +0000 (13:22 +0000)]
Revert "Remove conditional includes from bootstrap"

This reverts commit 1b946305182312faa7fcd838caf55dcb07b2ab04.

This commit has been reverted because the new mechanism was too
sensitive to changes in the lisp source, generation of new ldefs-boot
files was platform specific and resulted in warnings about undefined
variables.

See also 11436e2890d.

7 years agoRevert "Speed generation of ldefs-boot-auto"
Phillip Lord [Tue, 7 Mar 2017 13:22:18 +0000 (13:22 +0000)]
Revert "Speed generation of ldefs-boot-auto"

This reverts commit 7b5e1c8238ef961fd3305b1dce053b9bced684ba.

This commit has been reverted because the new mechanism was too
sensitive to changes in the lisp source, generation of new ldefs-boot
files was platform specific and resulted in warnings about undefined
variables.

See also 11436e2890d.

7 years agoRevert "Fix minor problems with loaddefs autogeneration"
Phillip Lord [Tue, 7 Mar 2017 13:22:04 +0000 (13:22 +0000)]
Revert "Fix minor problems with loaddefs autogeneration"

This reverts commit f2bd2c1e6476acc71e71f6cb2a1c56c5edd900ba.

This commit has been reverted because the new mechanism was too
sensitive to changes in the lisp source, generation of new ldefs-boot
files was platform specific and resulted in warnings about undefined
variables.

7 years agoSet default when asking for send-mail-function (Bug#25874).
Noam Postavsky [Mon, 27 Feb 2017 03:17:28 +0000 (22:17 -0500)]
Set default when asking for send-mail-function (Bug#25874).

* lisp/mail/sendmail.el (sendmail-query-user-about-smtp): Pass first
option as default for `completing-read'.

7 years agomin and max now return one of their arguments
Paul Eggert [Mon, 6 Mar 2017 23:14:32 +0000 (15:14 -0800)]
min and max now return one of their arguments

* doc/lispref/numbers.texi (Comparison of Numbers):
* etc/NEWS: Document this.
* src/data.c (Amax, Amin): Remove constants.  All uses removed.
(minmax_driver): New function.
(Fmax, Fmin): Use it instead of arith_driver.
* test/src/data-tests.el (data-tests-max, data-tests-min): New tests.

7 years agoRemove NSEvent loop from ns_select (bug#25265)
Alan Third [Mon, 6 Mar 2017 19:50:47 +0000 (19:50 +0000)]
Remove NSEvent loop from ns_select (bug#25265)

* src/nsterm.m (ns_select): Remove event processing loop and replace
with simple test for a new event.

7 years agoA better fix for bug#25845
Eli Zaretskii [Mon, 6 Mar 2017 16:22:53 +0000 (18:22 +0200)]
A better fix for bug#25845

* src/xdisp.c (font_for_underline_metrics): New function.
* src/dispextern.h: Add its prototype.
* src/xterm.c (x_draw_glyph_string):
* src/w32term.c (x_draw_glyph_string):
* src/nsterm.m (ns_draw_text_decoration): Call it.  This avoids
having identical code 3 times in 3 different files.

7 years agoFix typos in EIEIO manual
Tom Tromey [Mon, 6 Mar 2017 00:16:00 +0000 (17:16 -0700)]
Fix typos in EIEIO manual

* doc/misc/eieio.texi (Slot Options, Class Options): Fix typos.

7 years agoMerge from gnulib
Paul Eggert [Sun, 5 Mar 2017 21:30:32 +0000 (13:30 -0800)]
Merge from gnulib

This incorporates:
2017-03-04 dtotimespec: simplify
* lib/dtotimespec.c: Copy from gnulib.

7 years agoffloor etc. now accept only floats
Paul Eggert [Sun, 5 Mar 2017 21:29:28 +0000 (13:29 -0800)]
ffloor etc. now accept only floats

* etc/NEWS: Say why.
* src/floatfns.c (Ffceiling, Fffloor, Ffround, Fftruncate):
Require arg to be float.
* test/src/floatfns-tests.el (fround-fixnum): Check this.

7 years ago; Spelling fixes
Paul Eggert [Sun, 5 Mar 2017 16:18:40 +0000 (08:18 -0800)]
; Spelling fixes

7 years ago; * doc/misc/cl.texi (Top): Add Concept Index to the main menu.
Eli Zaretskii [Sun, 5 Mar 2017 15:56:12 +0000 (17:56 +0200)]
; * doc/misc/cl.texi (Top): Add Concept Index to the main menu.

7 years agoFix display of cursor on underlined text
Eli Zaretskii [Sun, 5 Mar 2017 15:49:22 +0000 (17:49 +0200)]
Fix display of cursor on underlined text

* src/nsterm.m (ns_draw_text_decoration):
* src/xterm.c (x_draw_glyph_string):
* src/w32term.c (x_draw_glyph_string): Compute the position and
thickness of the underline by looking for the first glyph of the
run of underlined glyphs that includes the glyph string we are
drawing.  (Bug#25845)

7 years agoAdd more CL concept index items, print Concept Index
Mark Oteiza [Sun, 5 Mar 2017 15:45:11 +0000 (10:45 -0500)]
Add more CL concept index items, print Concept Index

* doc/misc/cl.texi: Print concept index.
(Generalized Variables, Variable Bindings):
(Dynamic Bindings, Function Bindings, Macro Bindings, Conditionals):
(Blocks and Exits, Iteration, Multiple Values): Add concept index
items.

7 years agoAdd 'loop facility' to the CL concept index
Mark Oteiza [Sun, 5 Mar 2017 15:28:53 +0000 (10:28 -0500)]
Add 'loop facility' to the CL concept index

* doc/misc/cl.texi (Loop Facility): Add "loop facility" as a concept
index item.

7 years agoIn `window--display-buffer' fix behavior reported in Bug#25946
martin rudalics [Sun, 5 Mar 2017 11:26:26 +0000 (12:26 +0100)]
In `window--display-buffer' fix behavior reported in Bug#25946

* lisp/window.el (window--display-buffer): Set the dedicated
status of the window used and clear its history of previous
buffers also for the case that the window already shows the
buffer to be displayed.  (Bug#25946)

7 years agoCompare and round more carefully
Paul Eggert [Sun, 5 Mar 2017 07:14:52 +0000 (23:14 -0800)]
Compare and round more carefully

* etc/NEWS: Document this.
* src/data.c (store_symval_forwarding):
* src/sound.c (parse_sound):
Do not botch NaN comparison.
* src/data.c (cons_to_unsigned, cons_to_signed):
Signal an error if a floating-point arg is not integral.
* src/data.c (cons_to_unsigned, cons_to_signed):
* src/fileio.c (file_offset):
Use simpler overflow check.
* src/dbusbind.c (xd_extract_signed, xd_extract_unsigned):
Avoid rounding error in overflow check.
(Fcar_less_than_car): Use arithcompare directly.
* test/src/charset-tests.el: New file.

7 years agoFewer rounding errors with (format "%f" fixnum)
Paul Eggert [Sun, 5 Mar 2017 07:14:52 +0000 (23:14 -0800)]
Fewer rounding errors with (format "%f" fixnum)

* etc/NEWS: Document this.
* src/editfns.c (styled_format): When formatting integers via a
floating-point format, use long double instead of double
conversion, if long double’s extra precision might help.

7 years ago* src/floatfns.c (Fftruncate): Simplify via emacs_trunc.
Paul Eggert [Sun, 5 Mar 2017 07:14:51 +0000 (23:14 -0800)]
* src/floatfns.c (Fftruncate): Simplify via emacs_trunc.

7 years ago* src/editfns.c (styled_format): Omit unnecessary code for "%0d" etc.
Paul Eggert [Sun, 5 Mar 2017 07:14:51 +0000 (23:14 -0800)]
* src/editfns.c (styled_format): Omit unnecessary code for "%0d" etc.

7 years ago; Fix typo in etc/PROBLEMS
Michael Albinus [Sat, 4 Mar 2017 19:32:39 +0000 (20:32 +0100)]
; Fix typo in etc/PROBLEMS

7 years agoFix header shown by Info 'L' command
Eli Zaretskii [Sat, 4 Mar 2017 15:37:53 +0000 (17:37 +0200)]
Fix header shown by Info 'L' command

* lisp/info.el (Info-history-find-node): A better heading for the
list of visited nodes.  (Bug#25876)

7 years agoAdd a section about incorrect Bengali rendering.
K. Handa [Sat, 4 Mar 2017 13:56:50 +0000 (22:56 +0900)]
Add a section about incorrect Bengali rendering.

7 years agoFix minor problems with loaddefs autogeneration
Eli Zaretskii [Sat, 4 Mar 2017 11:23:52 +0000 (13:23 +0200)]
Fix minor problems with loaddefs autogeneration

* admin/ldefs-clean.el (ldefs-clean): Bind coding-system-for-read
and coding-system-for-write, to produce a UTF-8 file with Unix
EOLs on MS-Windows.

* lisp/ldefs-boot-manual.el (image-type): Add autoload cookie.

7 years agoFix issues with dedicated windows in shr.el
David Bremner [Sat, 4 Mar 2017 10:19:32 +0000 (12:19 +0200)]
Fix issues with dedicated windows in shr.el

* lisp/net/shr.el (shr-pixel-buffer-width, shr-render-td-1): Make
the window not dedicated, to avoid errors if it was, before
setting its buffer temporarily.  (Bug#25828)

Copyright-paperwork-exempt: yes

7 years agoAvoid duplicate gud menu items with gdb-mi
Glenn Morris [Sat, 4 Mar 2017 00:46:57 +0000 (19:46 -0500)]
Avoid duplicate gud menu items with gdb-mi

* lisp/progmodes/gud.el (gud-menu-map): Avoid duplicate "Run"
entries in gdbmi mode.  (Bug#23923)

7 years ago* src/editfns.c (styled_format): Omit unnecessary code.
Paul Eggert [Fri, 3 Mar 2017 22:48:46 +0000 (14:48 -0800)]
* src/editfns.c (styled_format): Omit unnecessary code.

7 years agologb now works correctly on large integers
Paul Eggert [Fri, 3 Mar 2017 17:17:51 +0000 (09:17 -0800)]
logb now works correctly on large integers

* admin/merge-gnulib (GNULIB_MODULES): Add count-leading-zeros.
* etc/NEWS: Document the change.
* lib/count-leading-zeros.c, lib/count-leading-zeros.h:
* m4/count-leading-zeros.m4: New files, copied from Gnulib.
* lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
* src/floatfns.c: Include count-leading-zeros.h.
(Flogb): Do not convert fixnum to float before taking the log,
as the rounding error can cause the answer to be off by 1.
* src/lisp.h (EMACS_UINT_WIDTH): New constant.
* test/src/floatfns-tests.el (logb-extreme-fixnum): New test.

7 years agoMerge from gnulib
Paul Eggert [Fri, 3 Mar 2017 16:45:10 +0000 (08:45 -0800)]
Merge from gnulib

This incorporates:
2017-02-25 maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
2017-02-24 ftoastr: port to -Wdouble-promotion
* lib/ftoastr.c, m4/gnulib-common.m4: Copy from gnulib.

7 years agoAvoid duplicating characters recorded in macros
Eli Zaretskii [Fri, 3 Mar 2017 14:19:28 +0000 (16:19 +0200)]
Avoid duplicating characters recorded in macros

* src/keyboard.c (record_char): Don't store in macro definitions
characters that came from executing a macro.  (Bug#25860)

7 years agoFix color component calculations in color.el
Eli Zaretskii [Fri, 3 Mar 2017 14:05:02 +0000 (16:05 +0200)]
Fix color component calculations in color.el

* lisp/color.el (color-name-to-rgb): Use 16 bits per color component.
(color-rgb-to-hex): Accept an optional argument
DIGITS-PER-COMPONENT, defaulting to 4, and format the hexadecimal
notation either for 8 or 16 bits per component.  (Bug#25890)
* lisp/net/shr-color.el (shr-color->hexadecimal): Call
color-rgb-to-hex with the optional argument of 2, to match color
processing on the Web.

7 years agoUse lexical binding in benchmark.el
Tino Calancha [Fri, 3 Mar 2017 09:26:30 +0000 (18:26 +0900)]
Use lexical binding in benchmark.el

* lisp/emacs-lisp/benchmark.el: Enable lexical binding.
(benchmark-elapse): Use 'declare'.
* test/lisp/emacs-lisp/benchmark-tests.el: Add test suite.