]> git.eshelyaron.com Git - emacs.git/log
emacs.git
7 years agoRemove obsolete method of changing byte-compile-dest-file
Glenn Morris [Sun, 7 May 2017 01:01:34 +0000 (18:01 -0700)]
Remove obsolete method of changing byte-compile-dest-file

* lisp/emacs-lisp/bytecomp.el (byte-compile-dest-file):
Define unconditionally.

7 years agoNew var write-region-verbose, default nil
Paul Eggert [Sun, 7 May 2017 01:00:23 +0000 (18:00 -0700)]
New var write-region-verbose, default nil

By popular demand, write-region char counts are now off by default
(Bug#26796).
* src/fileio.c (write-region-verbose): New Lisp var.
(write_region): Output char count only if the var is non-nil.
* doc/emacs/files.texi (Misc File Ops), etc/NEWS: Document this.

7 years agoWrite autoloads file atomically
Glenn Morris [Sun, 7 May 2017 00:58:20 +0000 (17:58 -0700)]
Write autoloads file atomically

* lisp/emacs-lisp/autoload.el (autoload--save-buffer):
New function, to save buffer atomically.
(autoload-save-buffers, update-directory-autoloads):
Use autoload--save-buffer.
* lisp/Makefile.in ($(lisp)/loaddefs.el):
No longer write to a temp file by hand.

7 years agoWrite autoloads file once only
Glenn Morris [Sun, 7 May 2017 00:07:10 +0000 (17:07 -0700)]
Write autoloads file once only

* lisp/emacs-lisp/autoload.el (autoload-find-generated-file):
Simplify.  Don't bother about ensuring the output file exists.
(autoload-generated-file): Add doc.
(autoload-ensure-writable): Update doc.
(autoload-ensure-file-writeable): Handle non-existing file.
(autoload-ensure-default-file): Remove function.

7 years agoPort .gdbinit to GDB 7.11.1 + Python 2.7.12
Paul Eggert [Sat, 6 May 2017 22:29:16 +0000 (15:29 -0700)]
Port .gdbinit to GDB 7.11.1 + Python 2.7.12

* src/.gdbinit (Lisp_Object_Printer.to_string):
Explicitly convert integer val to 'int', so that
older GDBs do not complain about the conversion.
* src/lisp.h (Lisp_Object) [CHECK_LISP_OBJECT_TYPE]:
Give the struct a tag, so that older GDB pretty-printers have a
tag to hang their hat on.

7 years agoPretty-print const Lisp_Objects in .gdbinit
Paul Eggert [Sat, 6 May 2017 21:24:12 +0000 (14:24 -0700)]
Pretty-print const Lisp_Objects in .gdbinit

* src/.gdbinit (Emacs_Pretty_Printers.__call__):
Compare unqualified type to Lisp_Object, to do the right thing
when the expression has type ‘Lisp_Object const’.
Problem reported by Eli Zaretskii in:
http://lists.gnu.org/archive/html/emacs-devel/2017-05/msg00138.html

7 years agoPacify GCC setjmp/longjmp warning
Paul Eggert [Sat, 6 May 2017 21:21:19 +0000 (14:21 -0700)]
Pacify GCC setjmp/longjmp warning

* src/eval.c (internal_lisp_condition_case): Do not modify local
var VAR, to pacify GCC’s setjmp/longjmp warning which in some
cases mistakenly diagnoses VAR possibly being modified between a
setjmp and a longjmp.

7 years agoFix bootstrap build of files.el
Philipp [Sat, 6 May 2017 21:19:22 +0000 (23:19 +0200)]
Fix bootstrap build of files.el

* lisp/files.el (file-name-non-special): Don't use cl-letf.

7 years ago; INSTALL.REPO: Mention cases that 'make bootstrap' can't handle (Bug#26246).
Noam Postavsky [Sat, 6 May 2017 20:20:57 +0000 (16:20 -0400)]
; INSTALL.REPO: Mention cases that 'make bootstrap' can't handle (Bug#26246).

7 years ago; Fix last change
Eli Zaretskii [Sat, 6 May 2017 20:23:36 +0000 (23:23 +0300)]
; Fix last change

* test/src/emacs-module-tests.el (module-function-object): Fix thinko
in last change.

7 years agoFix last change for MS-Windows
Eli Zaretskii [Sat, 6 May 2017 20:00:34 +0000 (23:00 +0300)]
Fix last change for MS-Windows

* test/src/emacs-module-tests.el (module-function-object): Port to
MS-Windows.

7 years ago; * src/alloc.c (make_module_function): Avoid compiler warning.
Eli Zaretskii [Sat, 6 May 2017 19:54:45 +0000 (22:54 +0300)]
; * src/alloc.c (make_module_function): Avoid compiler warning.

7 years agoIntroduce new misc type for module function
Philipp Stephani [Sat, 22 Apr 2017 16:04:29 +0000 (18:04 +0200)]
Introduce new misc type for module function

This resolves a couple of FIXMEs in emacs-module.c.

* src/lisp.h (MODULE_FUNCTIONP, XMODULE_FUNCTION): New functions.

* src/alloc.c (make_module_function): New function.
(mark_object): GC support.

* src/data.c (Ftype_of, syms_of_data): Handle module function type.

* src/print.c (print_object): Print support for new type.

* src/emacs-module.c (module_make_function, Finternal_module_call):
Use new module function type, remove FIXMEs.
(module_format_fun_env): Adapt and give it external linkage.

* test/src/emacs-module-tests.el (module-function-object): Add unit
test.

7 years agoFix quoted files for 'verify-visited-file-modtime'
Philipp Stephani [Fri, 21 Apr 2017 22:12:23 +0000 (00:12 +0200)]
Fix quoted files for 'verify-visited-file-modtime'

Fixes Bug#25951.

* lisp/files.el (file-name-non-special): Set the file name for the
correct buffer.

* test/lisp/files-tests.el (files-tests--file-name-non-special--buffers):
Add unit test.
(files-tests--with-advice, files-tests--with-temp-file): New helper
macros.

7 years ago; etc/NEWS: Fix default-frame-alist reference (Bug#26280).
Noam Postavsky [Sat, 6 May 2017 18:03:06 +0000 (14:03 -0400)]
; etc/NEWS: Fix default-frame-alist reference (Bug#26280).

7 years ago* src/fileio.c (write_region): Don't say "1 characters". (Bug#26796)
Eli Zaretskii [Sat, 6 May 2017 10:39:36 +0000 (13:39 +0300)]
* src/fileio.c (write_region): Don't say "1 characters".  (Bug#26796)

7 years agoTurn on GC_CHECK_MARKED_OBJECTS by default under ENABLE_CHECKING
Eli Zaretskii [Sat, 6 May 2017 08:22:44 +0000 (11:22 +0300)]
Turn on GC_CHECK_MARKED_OBJECTS by default under ENABLE_CHECKING

* src/alloc.c (GC_CHECK_MARKED_OBJECTS): Define to 1 by default of
ENABLE_CHECKING is defined.
(mark_object): Test for GC_CHECK_MARKED_OBJECTS being non-zero,
instead of being defined.

7 years ago; * lisp/replace.el (query-replace-regexp, replace-regexp): Doc fixes.
Eli Zaretskii [Sat, 6 May 2017 08:06:38 +0000 (11:06 +0300)]
; * lisp/replace.el (query-replace-regexp, replace-regexp): Doc fixes.

7 years agoFix erc-join with channel password
Tom Tromey [Thu, 5 Jan 2017 14:11:06 +0000 (07:11 -0700)]
Fix erc-join with channel password

Bug#25349
* lisp/erc/erc-join.el (erc-autojoin-after-ident): Switch order of
server names.
(erc-autojoin-channels, erc-autojoin-add, erc-autojoin-remove):
Likewise.
(erc-server-join-channel): Move to erc.el.
* lisp/erc/erc.el (erc-server-join-channel): Move from erc-join.el.
(erc-cmd-JOIN): Use erc-server-join-channel.

7 years agoEnsure the created temp file in a test is new
Tino Calancha [Sat, 6 May 2017 03:30:48 +0000 (12:30 +0900)]
Ensure the created temp file in a test is new

* test/lisp/buff-menu-tests.el (buff-menu-24962): Use `make-temp-file'
to create the temp file.

7 years agoDecruftify dns-mode.el a little bit
Glenn Morris [Sat, 6 May 2017 01:44:09 +0000 (21:44 -0400)]
Decruftify dns-mode.el a little bit

* lisp/textmodes/dns-mode.el (dns-mode-control-entities):
New constant.
(dns-mode-control-entity, dns-mode-bad-control-entity)
(dns-mode-type, dns-mode-class): New faces.
(dns-mode-control-entity-face, dns-mode-bad-control-entity-face)
(dns-mode-type-face, dns-mode-class): Make these variables use the
new faces, and mark as obsolete.
(dns-mode-font-lock-keywords): Use dns-mode-control-entities.

7 years agoPretty-print Lisp_Object values in GDB
Paul Eggert [Fri, 5 May 2017 22:59:24 +0000 (15:59 -0700)]
Pretty-print Lisp_Object values in GDB

* src/.gdbinit: Add a pretty-printer for Lisp_Object values.  Now,
GDB displays them as "XIL(0xXXX)" rather than displaying them
as "..." when CHECK_LISP_OBJECT_TYPE is in effect and as "DDDDD"
otherwise.

7 years agoTweak dns-mode font-lock
Peder O. Klingenberg [Fri, 5 May 2017 18:03:04 +0000 (14:03 -0400)]
Tweak dns-mode font-lock

* lisp/textmodes/dns-mode.el (dns-mode-font-lock-keywords):
Highlight $TTL as a control entity.  (Bug#26780)

7 years agoFontify the doc-string in some CL forms as such
Glenn Morris [Fri, 5 May 2017 06:15:53 +0000 (23:15 -0700)]
Fontify the doc-string in some CL forms as such

* lisp/emacs-lisp/lisp-mode.el (defconstant, defparameter):
Add the doc-string-elt property.  (Bug#26778)

7 years ago* lisp/emacs-lisp/cl-lib.el (cl-mapcar): Remove recent autoload cookie.
Glenn Morris [Fri, 5 May 2017 05:26:17 +0000 (22:26 -0700)]
* lisp/emacs-lisp/cl-lib.el (cl-mapcar): Remove recent autoload cookie.

7 years agocl-defmethod: Make the edebug spec more technically correct
Dmitry Gutov [Fri, 5 May 2017 00:43:07 +0000 (03:43 +0300)]
cl-defmethod: Make the edebug spec more technically correct

* lisp/emacs-lisp/cl-generic.el (cl-defmethod): Denote the
edebug spec part for qualifiers as [&rest atom], per
http://lists.gnu.org/archive/html/emacs-devel/2017-05/msg00053.html.

7 years agoFix MH-E not to load cl at runtime (Bug#25552)
Mike Kupfer [Thu, 4 May 2017 22:30:17 +0000 (14:30 -0800)]
Fix MH-E not to load cl at runtime (Bug#25552)

* lisp/mh-e/mh-acros.el (defun-mh): Check at runtime, not
compile time, whether the target is bound.
* lisp/mh-e/mh-compat.el: Enable compilation.  Pull in
mh-acros at compile time.
Authored-by: Glenn Morris <rgm@gnu.org>, Noam Postavsky
<npostavs@users.sourceforge.net>

7 years agoMultiline support in NS "Open Selected File" service.
Jean-Christophe Helary [Thu, 4 May 2017 18:32:40 +0000 (20:32 +0200)]
Multiline support in NS "Open Selected File" service.

* lisp/term/ns-win.el (ns-open-file-service): new function. Wraps the
original call in a (split-string) to create as many calls as there
are lines.
(ns-spi-service-call): Call `ns-open-file-service' instead of
`dnd-open-file'.

7 years ago; xref-collect-matches: Add a TODO
Dmitry Gutov [Thu, 4 May 2017 15:26:46 +0000 (18:26 +0300)]
; xref-collect-matches: Add a TODO

7 years ago; Remove redundant definition of the 'DebPrint' macro
Eli Zaretskii [Thu, 4 May 2017 15:11:53 +0000 (18:11 +0300)]
; Remove redundant definition of the 'DebPrint' macro

* nt/inc/ms-w32.h (DebPrint): Remove redundant definition (defined
in src/conf_post.h).

7 years agoRequire cl-lib at runtime in vc-hg
Göktuğ Kayaalp [Thu, 4 May 2017 12:46:13 +0000 (15:46 +0300)]
Require cl-lib at runtime in vc-hg

* lisp/vc/vc-hg.el: Require cl-lib at runtime as well (bug#26609).

7 years agoInherit incompatible/obsolete package faces from error
Tino Calancha [Thu, 4 May 2017 10:47:45 +0000 (19:47 +0900)]
Inherit incompatible/obsolete package faces from error

Don't use the same face for installed packages as for incompatible
or obsolete ones.
* lisp/emacs-lisp/package.el (package-status-incompat): Inherit from error.

7 years agoSet process property `adjust-window-size-function' to `ignore' in Tramp
Michael Albinus [Thu, 4 May 2017 10:21:32 +0000 (12:21 +0200)]
Set process property `adjust-window-size-function' to `ignore' in Tramp

* lisp/net/tramp-adb.el (tramp-adb-parse-device-names)
(tramp-adb-maybe-open-connection):
* lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-notify-add-watch):
* lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band)
(tramp-maybe-open-connection):
* lisp/net/tramp-smb.el (tramp-smb-handle-copy-directory)
(tramp-smb-handle-file-acl, tramp-smb-handle-set-file-acl)
(tramp-smb-maybe-open-connection): Set process property
`adjust-window-size-function' to `ignore'.

7 years ago* lisp/emacs-lisp/seq.el: Bump seq version.
Nicolas Petton [Thu, 4 May 2017 09:34:41 +0000 (11:34 +0200)]
* lisp/emacs-lisp/seq.el: Bump seq version.

7 years agoAdd seq-set-equal-p to test for set equality
Damien Cassou [Mon, 17 Apr 2017 09:01:39 +0000 (11:01 +0200)]
Add seq-set-equal-p to test for set equality

* lisp/emacs-lisp/seq.el (seq-set-equal-p): Add function to compare
  two lists as if they were sets.

* test/lisp/emacs-lisp/seq-tests.el (test-seq-set-equal-p): Add test
  for seq-set-equal-p.

7 years agoSpelling fixes
Paul Eggert [Thu, 4 May 2017 01:21:20 +0000 (18:21 -0700)]
Spelling fixes

* lisp/gnus/nndiary.el (nndiary-last-occurrence):
Rename from nndiary-last-occurence.
(nndiary-next-occurrence):
Rename from nndiary-next-occurence.  All uses changed.

7 years agoMerge from pkg-config
Paul Eggert [Thu, 4 May 2017 01:18:56 +0000 (18:18 -0700)]
Merge from pkg-config

* m4/pkg.m4: Copy from pkg-config 0.29.1.

7 years agoAdd color highlighting to css-mode
Tom Tromey [Wed, 25 Jan 2017 07:53:49 +0000 (00:53 -0700)]
Add color highlighting to css-mode

Bug#25525
* lisp/textmodes/css-mode.el (css--color-map): New constant.
(css-value-class-alist): Use css--color-map.
(css--number-regexp, css--percent-regexp)
(css--number-or-percent-regexp, css--angle-regexp): New constants.
(css--color-skip-blanks, css--rgb-color, css--hsl-color): New
functions.
(css--colors-regexp): New constant.
(css--hex-color, css--named-color, css--compute-color)
(css--contrasty-color, css--fontify-colors)
(css--fontify-region): New functions.
(css-mode): Set font-lock-fontify-region-function.
(css-mode-syntax-table): Set syntax on more characters.
(css-fontify-colors): New defcustom.
(scss-mode-syntax-table): Define syntax for ?$ and ?%.
* test/lisp/textmodes/css-mode-tests.el (css-test-property-values):
Update.
(css-test-rgb-parser, css-test-hsl-parser)
(css-test-named-color): New tests.
* etc/NEWS: Add entry.

7 years agoFix Bug#26763
Michael Albinus [Wed, 3 May 2017 19:49:32 +0000 (21:49 +0200)]
Fix Bug#26763

* lisp/files.el (delete-directory): Call file name handler
with `trash' argument.

* lisp/net/ange-ftp.el (ange-ftp-delete-directory):
* lisp/net/tramp-sh.el (tramp-sh-handle-delete-directory):
Add TRASH arg.  Implement it.  (Bug#26763)
(tramp-get-remote-trash): Check for `delete-by-moving-to-trash'.

* lisp/net/tramp-adb.el (tramp-adb-handle-delete-directory):
* lisp/net/tramp-smb.el (tramp-smb-handle-delete-directory):
Add _TRASH arg.

7 years agoUse ptrdiff_t, not int, for stack sizes
Paul Eggert [Tue, 2 May 2017 22:04:54 +0000 (15:04 -0700)]
Use ptrdiff_t, not int, for stack sizes

* src/thread.c (invoke_thread_function):
* src/xterm.c (x_cr_export_frames):
Don’t assume SPECPDL_INDEX fits in ‘int’.

7 years agoCheck list object type if --enable-gcc-warnings
Paul Eggert [Tue, 2 May 2017 21:52:21 +0000 (14:52 -0700)]
Check list object type if --enable-gcc-warnings

* configure.ac (--enable-check-lisp-object-type):
Default to "yes" if --enable-gcc-warnings is not "no".
* etc/NEWS: Mention this.
* src/eval.c (internal_lisp_condition_case): Fix some glitches
with 'volatile' uncovered by the above: in particular, 'clauses'
should be a pointer to volatile storage on the stack, and need not
be volatile itself.  Use an int, not ptrdiff_t, to count clauses.
Don’t bother gathering binding count if VAR is nil.  Use
more-specific local names to try to clarify what’s going on.

7 years agoTweak auth-source-pass.el to avoid run-time subr-x
Glenn Morris [Tue, 2 May 2017 20:59:51 +0000 (16:59 -0400)]
Tweak auth-source-pass.el to avoid run-time subr-x

* lisp/auth-source-pass.el (auth-source-pass--parse-data):
Avoid needing subr-x at run-time.

7 years agoConstrain non-child frames to screen area in OS X
Charles A. Roelli [Thu, 27 Apr 2017 18:44:09 +0000 (20:44 +0200)]
Constrain non-child frames to screen area in OS X

* src/nsterm.m (constrainFrameRect:toScreen:): Constrain non-child
frames in OS X, if they would otherwise go offscreen.

Fixes: debbugs:25818
7 years agoFix error in completion for separate Tramp syntax
Michael Albinus [Tue, 2 May 2017 14:30:55 +0000 (16:30 +0200)]
Fix error in completion for separate Tramp syntax

* lisp/net/tramp.el (tramp-completion-file-name-regexp-separate):
Tweak regexp.

* test/lisp/net/tramp-tests.el (tramp-test24-file-name-completion):
Run method and host name completion for all syntaxes.

7 years agoAvoid compilation warnings
Eli Zaretskii [Tue, 2 May 2017 08:04:33 +0000 (11:04 +0300)]
Avoid compilation warnings

* src/w32fns.c (Fx_file_dialog, w32_parse_and_hook_hot_key):
* src/w32term.c (x_draw_glyph_string):
* src/w32fns.c (compute_tip_xy):
* src/w32font.c (w32font_text_extents):
* src/w32menu.c (set_frame_menubar):
* src/search.c (Freplace_match): Avoid compiler warnings in
optimized builds.

7 years agoMerge from gnulib
Paul Eggert [Tue, 2 May 2017 07:47:18 +0000 (00:47 -0700)]
Merge from gnulib

This incorporates:
2017-05-02 utimens: port to Emacs + MS-Windows
* lib/utimens.c: Copy from gnulib.

7 years agoFix Edebug specs for 'cl-defmethod' and 'defmethod'
Gemini Lasswell [Tue, 2 May 2017 07:19:12 +0000 (10:19 +0300)]
Fix Edebug specs for 'cl-defmethod' and 'defmethod'

* lisp/emacs-lisp/cl-generic.el (cl-defmethod): Change Edebug spec
to make Edebug generate a new symbol for each method (Bug#24753) and
to support a string following :extra (Bug#23995).
* lisp/emacs-lisp/eieio-compat.el (defmethod): Change Edebug spec to
make Edebug generate a new symbol for each method (Bug#24753).

7 years agoTemporary fix for the MS_Windows build
Eli Zaretskii [Tue, 2 May 2017 06:24:25 +0000 (09:24 +0300)]
Temporary fix for the MS_Windows build

* nt/inc/ms-w32.h (WIN32_LEAN_AND_MEAN): Define to an empty value,
to be consistent with Gnulib's utimens.c.  This is because utimens.c
unconditionally defines WIN32_LEAN_AND_MEAN to an empty value, so the
previous definition here conflicted with that.

7 years agoPort format-time-string to MS-Windows better
Paul Eggert [Mon, 1 May 2017 23:02:31 +0000 (16:02 -0700)]
Port format-time-string to MS-Windows better

* test/src/editfns-tests.el (format-time-string-with-zone):
Port test cases to MS-Windows.

7 years ago; Fix the comment back
Dmitry Gutov [Mon, 1 May 2017 22:51:30 +0000 (01:51 +0300)]
; Fix the comment back

7 years agoMerge from gnulib
Paul Eggert [Mon, 1 May 2017 22:33:06 +0000 (15:33 -0700)]
Merge from gnulib

This incorporates:
2017-05-01 New module 'localtime-buffer'
2017-04-30 utimens: Add support for native Windows
* admin/merge-gnulib (AVOIDED_MODULES): Add tzset.
* configure.ac (tzset): No need for Emacs itself to check now.
* lib/gettimeofday.c, lib/time.in.h, lib/time_rz.c, lib/utimens.c:
* m4/gettimeofday.m4, m4/time_h.m4, m4/time_rz.m4: Copy from gnulib.
* lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
* lib/localtime-buffer.c, lib/localtime-buffer.h:
* m4/localtime-buffer.m4: New files, copied from gnulib.
* src/editfns.c (init_editfns): Assume tzset is callable.

7 years ago; Fix typo
Ken Brown [Mon, 1 May 2017 21:54:21 +0000 (17:54 -0400)]
; Fix typo

* test/src/editfns-tests.el (format-time-string-with-zone): Fix
typo in timezone specification.

7 years agoSpeed up project-find-regexp for simple regexps
Dmitry Gutov [Mon, 1 May 2017 21:09:09 +0000 (00:09 +0300)]
Speed up project-find-regexp for simple regexps

* lisp/progmodes/xref.el (xref--regexp-syntax-dependent-p):
New function.
(xref--collect-matches): Use it.  Don't try to enable the
appropriate major mode and file-local variables if the regexp
does not depend on the buffer's syntax (bug#26710).
(xref--collect-matches-1): Don't syntax-propertize in that
case either.

7 years ago; Fix commentary in a recent commit
Eli Zaretskii [Mon, 1 May 2017 19:36:01 +0000 (22:36 +0300)]
; Fix commentary in a recent commit

* test/src/editfns-tests.el (format-time-string-with-zone): Minor
copyedit in the commentary.

7 years agoWarn about missing backslashes during load
Philipp Stephani [Tue, 30 Jun 2015 20:38:35 +0000 (22:38 +0200)]
Warn about missing backslashes during load

* src/lread.c (load_warn_unescaped_character_literals, Fload, read1)
(syms_of_lread): Warn if unescaped character literals are
found (Bug#20152).
* lisp/emacs-lisp/bytecomp.el (byte-compile-from-buffer): Check for
unescaped character literals during byte compilation.
* test/src/lread-tests.el (lread-tests--unescaped-char-literals): New
unit test.
(lread-tests--with-temp-file, lread-tests--last-message): Helper
functions for unit test.
* test/lisp/emacs-lisp/bytecomp-tests.el
(bytecomp-tests--unescaped-char-literals): New unit test.
* test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-tests--with-temp-file):
Helper macro for unit test.

7 years ago* configure.ac: Suggest Mailutils on Cygwin.
Ken Brown [Mon, 1 May 2017 18:37:26 +0000 (14:37 -0400)]
* configure.ac: Suggest Mailutils on Cygwin.

7 years agoDon’t stress-test time zones near the Epoch
Paul Eggert [Mon, 1 May 2017 17:41:50 +0000 (10:41 -0700)]
Don’t stress-test time zones near the Epoch

* test/src/editfns-tests.el (format-time-string-with-zone)
(format-time-string-with-outlandish-zone): Don’t format
timestamps near the Epoch, as this runs into bugs on MS-Windows,
and we don’t want to worry about those bugs.

7 years agoTweak vc-tests.el for bzr
Glenn Morris [Mon, 1 May 2017 17:23:30 +0000 (13:23 -0400)]
Tweak vc-tests.el for bzr

* test/lisp/vc/vc-tests.el (vc-test--working-revision):
Handle test environments where HOME does not exist.

7 years agovc-git-state: Return `ignored' as appropriate with newer Git
Dmitry Gutov [Mon, 1 May 2017 16:46:24 +0000 (19:46 +0300)]
vc-git-state: Return `ignored' as appropriate with newer Git

* lisp/vc/vc-git.el
(vc-git--program-version): New variable.
(vc-git--program-version): New function.
(vc-git-state): Use it to choose whether to add '--ignored' (bug#19343).

7 years ago; Auto-commit of loaddefs files.
Glenn Morris [Mon, 1 May 2017 15:37:47 +0000 (11:37 -0400)]
; Auto-commit of loaddefs files.

7 years agovc-git-state: Bring back CentOS 6 compatibility
Dmitry Gutov [Mon, 1 May 2017 14:58:57 +0000 (17:58 +0300)]
vc-git-state: Bring back CentOS 6 compatibility

* lisp/vc/vc-git.el (vc-git-state):
Bring back CentOS 6 compatibility (bug#19343).

7 years agoRewrite w32fns.c's `x_set_menu_bar_lines'
Martin Rudalics [Mon, 1 May 2017 10:24:56 +0000 (12:24 +0200)]
Rewrite w32fns.c's `x_set_menu_bar_lines'

* src/w32fns.c (x_set_menu_bar_lines): Redraw frame immediately
regardless of whether menu bar is added or removed.  Clear
under internal border iff a W32 window exists.  Store either 0
or 1 as new parameter value.
(x_change_tool_bar_height): Use FRAME_W32_WINDOW instead of
FRAME_X_WINDOW.

7 years agoFix filenotify-tests.el for cygwin
Michael Albinus [Mon, 1 May 2017 10:16:15 +0000 (12:16 +0200)]
Fix filenotify-tests.el for cygwin

* test/lisp/filenotify-tests.el (file-notify--test-read-event):
Add an additional `sit-for'.
(file-notify-test02-rm-watch): Add an additional
`file-notify--test-read-event' call.

7 years ago; Tighten up vc-state tests, allowed by the previous change
Dmitry Gutov [Mon, 1 May 2017 01:28:18 +0000 (04:28 +0300)]
; Tighten up vc-state tests, allowed by the previous change

7 years agoSpeed up vc-git-status and make it more precise
Jonathan Ganc [Mon, 1 May 2017 01:23:59 +0000 (04:23 +0300)]
Speed up vc-git-status and make it more precise

* lisp/vc/vc-git.el (vc-git-state)
(vc-git--git-status-to-vc-state): Update 'vc-git-state' to use
'git status', so that 'vc-git-state' can now return 'ignored',
'conflict', or 'unregistered' when appropriate.  Discussed in
bug#26066.  Fixes bug#19343.

7 years agoFix Git revision navigation in currently removed directories
Dmitry Gutov [Sun, 30 Apr 2017 16:25:23 +0000 (19:25 +0300)]
Fix Git revision navigation in currently removed directories

* lisp/vc/vc-git.el (vc-git-next-revision): Use the repo root as
default-directory because FILE's parent directory might not exist
anymore (bug#26345).

7 years agoMerge from gnulib
Paul Eggert [Sun, 30 Apr 2017 21:52:10 +0000 (14:52 -0700)]
Merge from gnulib

This incorporates:
2017-04-30 strftime-fixes: New module
2017-04-30 mktime: Work around TZ problem on native Windows
2017-04-30 ctime, localtime: New modules
2017-04-30 gettimeofday: Provide higher resolution on native Windows
2017-04-29 utime-h: Modernize handling of 'struct utimbuf'
2017-04-29 Make use of module 'utime-h'
2017-04-30 Fix a few typos
* admin/merge-gnulib (AVOIDED_MODULES): Avoid utime-h, too.
* lib/gettimeofday.c, lib/mktime.c, lib/time.in.h, lib/utimens.c:
* m4/gettimeofday.m4, m4/include_next.m4, m4/mktime.m4:
* m4/strftime.m4, m4/time_h.m4, m4/timegm.m4, m4/utimens.m4:
Copy from gnulib.
* lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.

7 years agoDon't lose key bindings on mis-spelled text in flyspell-mode
Eli Zaretskii [Sun, 30 Apr 2017 18:55:58 +0000 (21:55 +0300)]
Don't lose key bindings on mis-spelled text in flyspell-mode

* lisp/textmodes/flyspell.el (flyspell-mouse-map): Bind mouse-2
explicitly.
(make-flyspell-overlay): If the mis-spelled text already has a
'keymap' property, make that keymap the parent of
flyspell-mouse-map, so as not to lose the parent's bindings.
(Bug#26672)

7 years agoFix `delete-frame' behavior including Bug#26682
Martin Rudalics [Sun, 30 Apr 2017 08:02:53 +0000 (10:02 +0200)]
Fix `delete-frame' behavior including Bug#26682

* src/frame.c (other_frames): Accept two arguments now.  Don't
care about minibuffer window.  Don't care about visibility when
called from delete_frame with FORCE true (Bug#26682).
(delete_frame, Fmake_frame_invisible): Adjust other_frames
calls.
* src/w32term.c (w32_read_socket): Don't add a move frame event
for an invisible frame.
* lisp/frame.el (handle-delete-frame): Don't kill Emacs when
attempting to delete a surrogate minibuffer frame.

7 years agoMerge from gnulib
Paul Eggert [Sun, 30 Apr 2017 07:38:28 +0000 (00:38 -0700)]
Merge from gnulib

This avoids incorporating the following, which I suspect are
more trouble for Emacs than they’re worth:
2017-04-29 stat, fstat: fix time_t etc. on native Windows platforms
* admin/merge-gnulib (AVOIDED_MODULES): Avoid stat, too.
* lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
* lib/pathmax.h, lib/stat.c, m4/pathmax.m4, m4/stat.m4: Remove.

7 years agoFix buffer overflow in make-docfile
Paul Eggert [Sun, 30 Apr 2017 06:35:27 +0000 (23:35 -0700)]
Fix buffer overflow in make-docfile

* lib-src/make-docfile.c (scan_c_stream): Check for buffer
overflow when reading an identifier.  Use a static buffer for NAME
rather than a small dynamically-allocated buffer.

7 years agoMerge from gnulib
Paul Eggert [Sun, 30 Apr 2017 06:11:16 +0000 (23:11 -0700)]
Merge from gnulib

This incorporates:
2017-04-29 getopt: port to Solaris 10 with circa-1997 glibc getopt.h
* lib/getopt-pfx-ext.h: Copy from gnulib.
* lib/gnulib.mk.in: Regenerate.

7 years agoFix dependency error during bootstrap
Tino Calancha [Sun, 30 Apr 2017 02:33:37 +0000 (11:33 +0900)]
Fix dependency error during bootstrap

* lisp/files.el: Require pcase and easy-mmode at compile time.

7 years ago* etc/tutorials/TUTORIAL.sv: synced with TUTORIAL
Mats Lidell [Sat, 29 Apr 2017 22:14:45 +0000 (00:14 +0200)]
* etc/tutorials/TUTORIAL.sv: synced with TUTORIAL

7 years ago; Fix function name
Philipp Stephani [Sat, 29 Apr 2017 19:29:55 +0000 (21:29 +0200)]
; Fix function name

7 years agoReimplement auto-saving to visited files
Philipp Stephani [Sat, 22 Apr 2017 18:58:38 +0000 (20:58 +0200)]
Reimplement auto-saving to visited files

This reacts to confusing behavior of 'auto-save-visited-file-name',
cf. Bug#25478.

* lisp/files.el (auto-save-visited-interval): New customization option.
(auto-save-visited-mode): New global minor mode.
(auto-save-visited-file-name): Make obsolete.
(auto-save--timer): New internal helper variable.

* doc/emacs/files.texi (Auto Save Files): Document
'auto-save-visited-mode' instead of obsolete
'auto-save-visited-file-name'.
(Auto Save Control): Document customization option
'auto-save-visited-interval'.

7 years agoAllow bypassing of some checks when merging
Paul Eggert [Sat, 29 Apr 2017 18:28:52 +0000 (11:28 -0700)]
Allow bypassing of some checks when merging

* build-aux/git-hooks/pre-commit: Don't check merged-in changes.

7 years agoIntegrate module test with normal test suite
Philipp Stephani [Sat, 22 Apr 2017 13:41:39 +0000 (15:41 +0200)]
Integrate module test with normal test suite

* test/Makefile.in (ELFILES): Exclude module test if modules aren't
configured.
(EMACS_TEST_DIRECTORY): Expand test directory so that it's set
correctly even if Emacs changes the current directory.
($(srcdir)/src/emacs-module-tests.log)
($(test_module)): Proper dependency tracking for test module.

* test/data/emacs-module/Makefile (ROOT): Adapt to new location.
Remove 'check' target and EMACS variable, which are no longer
necessary.
(SO): Change to include period.

* test/src/emacs-module-tests.el (mod-test): Use EMACS_TEST_DIRECTORY
environment variable to reliably find test data.

* configure.ac (HAVE_MODULES, MODULES_SUFFIX): Add necessary
substitutions.

7 years agoBroaden comint-password-prompt-regexp
Glenn Morris [Fri, 28 Apr 2017 20:17:27 +0000 (16:17 -0400)]
Broaden comint-password-prompt-regexp

* lisp/comint.el (comint-password-prompt-regexp):
Broaden the regexp, for non-English locales.  (Bug#26698)

7 years ago* lisp/auth-source.el (auth-source-backend-parse): `return' -> cl-return.
Stefan Monnier [Fri, 28 Apr 2017 12:21:39 +0000 (08:21 -0400)]
* lisp/auth-source.el (auth-source-backend-parse): `return' -> cl-return.

7 years agoDon't pass the value of point to 'push-mark', as that's the default.
Bartosz Duszel [Fri, 28 Apr 2017 08:25:26 +0000 (11:25 +0300)]
Don't pass the value of point to 'push-mark', as that's the default.

* lisp/textmodes/bib-mode.el (mark-bib):
* lisp/simple.el (mark-whole-buffer, yank):
* lisp/ses.el (ses--advice-yank, ses-mark-row, ses-mark-column):
* lisp/progmodes/xscheme.el (xscheme-yank):
* lisp/progmodes/verilog-mode.el (verilog-mark-defun):
* lisp/progmodes/perl-mode.el (perl-mark-function):
* lisp/progmodes/pascal.el (pascal-mark-defun):
* lisp/progmodes/meta-mode.el (meta-mark-defun):
* lisp/progmodes/icon.el (mark-icon-function):
* lisp/progmodes/cc-cmds.el (c-mark-function):
* lisp/obsolete/vip.el (ex-goto):
* lisp/obsolete/vi.el (vi-put-before):
* lisp/mouse.el (mouse-yank-primary):
* lisp/menu-bar.el (menu-bar-select-yank):
* lisp/mail/sendmail.el (mail-yank-original):
* lisp/hexl.el (hexl-beginning-of-buffer, hexl-end-of-buffer):
* lisp/emulation/viper-cmd.el (viper-mark-beginning-of-buffer)
(viper-mark-end-of-buffer):
* lisp/cedet/semantic/senator.el (senator-mark-defun):
* lisp/allout.el (allout-mark-topic): Remove unnecessary argument
`(point)' from calls to `push-mark'.  (Bug#25565)

7 years agoMerge from origin/emacs-25
Glenn Morris [Fri, 28 Apr 2017 05:03:56 +0000 (22:03 -0700)]
Merge from origin/emacs-25

784602b1050 (origin/emacs-25) ; Add release notice
3a34412caae (tag: emacs-25.2) Set Emacs version to 25.2 and update AU...
56a4461a48d ; Move stray item from admin/notes/repo to CONTRIBUTE
2b0d1118199 ; CONTRIBUTE: Remove stray header.
f2ab09ec60d Fix a typo in indexing the user manual
bc55a574235 * lisp/menu-bar.el (kill-this-buffer): Doc fix.  (Bug#26466)
a6d50401b4b Document 'line-pixel-height'
0c55cf43e61 * search.c (Fre_search_forward, Fre_search_backward): Imp...
c7ed57eaef4 Mention that processes start in default-directory (Bug#18...
856ec9ffa1f * src/xdisp.c (vmessage, message): Clarify commentary.
849a0aaa1c9 Belated fixes for admin.el's M-x make-manuals-dist
84938d79698 default-directory: Remark that it must be a directory name
3f0d047d2eb Delete confuse statement in manual
ee1bd94dd0c Improve packaging documentation
fb18bff91f0 Expand manual section on quitting windows
9a737079645 Fix docstring of dabbrev-abbrev-char-regexp
afe8849bac1 * doc/misc/cl.texi (Iteration Clauses): Clarify example (...
ada79442c07 ;* doc/misc/info.texi (Choose menu subtopic): Improve ind...
d38fd9229c0 Narrow scope of modification hook renabling in org-src fo...
e0e9db4c84a ; Spelling fix

# Conflicts:
# README
# etc/AUTHORS
# etc/HISTORY
# lisp/ldefs-boot.el

7 years ago* doc/misc/auth.texi: Commas don't work in node names.
Glenn Morris [Fri, 28 Apr 2017 04:33:07 +0000 (21:33 -0700)]
* doc/misc/auth.texi: Commas don't work in node names.

7 years ago* test/lisp/auth-source-pass-tests.el: Fix loading of cl-lib.
Glenn Morris [Fri, 28 Apr 2017 04:19:47 +0000 (21:19 -0700)]
* test/lisp/auth-source-pass-tests.el: Fix loading of cl-lib.

7 years ago; Fix copyright and license notice in recent additions
Glenn Morris [Fri, 28 Apr 2017 04:17:45 +0000 (21:17 -0700)]
; Fix copyright and license notice in recent additions

7 years agoTest format-time-string with zone arg
Paul Eggert [Thu, 27 Apr 2017 22:22:49 +0000 (15:22 -0700)]
Test format-time-string with zone arg

* test/src/editfns-tests.el (format-time-string-with-zone)
(format-time-string-with-outlandish-zone): New tests.

7 years agoMerge from gnulib
Paul Eggert [Thu, 27 Apr 2017 22:21:34 +0000 (15:21 -0700)]
Merge from gnulib

This incorporates:
2017-04-24 time_rz: fix heap buffer overflow vulnerability
2017-04-23 stat-time: Update comments.
2017-04-22 ftoastr: cite a newer paper
2017-04-21 gettext-h: Avoid -Wundef warning.
* lib/ftoastr.c, lib/gettext.h, lib/stat-time.h, lib/time_rz.c:
* m4/getopt.m4: Copy from gnulib.
* m4/gnulib-comp.m4: Regenerate.

7 years agoauth-source-pass: Add documentation; fix tests and indentation.
Damien Cassou [Mon, 3 Apr 2017 19:36:03 +0000 (21:36 +0200)]
auth-source-pass: Add documentation; fix tests and indentation.

* doc/misc/auth.texi: Document new integration with Pass. Use @itemize
  instead of @enumerate.
* lisp/auth-source-pass.el: Fix indentation.
  (auth-source-pass--remove-directory-name): Remove.
* test/lisp/auth-source-pass-tests.el: Adjust test macros.

7 years agoauth-source-pass: Enable finding entries by "host/username"
foudfou [Thu, 16 Feb 2017 08:34:17 +0000 (09:34 +0100)]
auth-source-pass: Enable finding entries by "host/username"

* lisp/auth-source-pass.el: Enable finding entries by "host/username".
* test/lisp/auth-source-pass-tests.el: Adjust tests to check it.

7 years agoIntegrate auth-source with password-store
Damien Cassou [Sat, 4 Feb 2017 07:51:32 +0000 (08:51 +0100)]
Integrate auth-source with password-store

* lisp/auth-source-pass.el: auth-source backend for password-store.
* test/lisp/auth-source-pass-tests.el: Tests for auth-source-pass
  behavior.

7 years ago* lisp/auth-source.el: Document parser functions.
Damien Cassou [Sat, 4 Feb 2017 07:09:44 +0000 (08:09 +0100)]
* lisp/auth-source.el: Document parser functions.

7 years agoauth-source: factor out parsers and add tests
Ted Zlatanov [Fri, 3 Feb 2017 21:06:12 +0000 (16:06 -0500)]
auth-source: factor out parsers and add tests

* lisp/auth-source.el: Factor out the source parsers. Clean up comments.
* test/lisp/auth-source-tests.el: Add tests.

7 years agoFix doc and customization type of `window-combination-limit' (Bug#26673)
Martin Rudalics [Thu, 27 Apr 2017 08:18:48 +0000 (10:18 +0200)]
Fix doc and customization type of `window-combination-limit' (Bug#26673)

* src/window.c (Vwindow_combination_limit): Fix doc-string.
* lisp/cus-start.el (window-combination-limit): Fix
customization type.
* doc/lispref/windows.texi (Recombining Windows): Fix
documentation of `window-combination-limit'.

7 years ago; Fix MPC menu title
Mark Oteiza [Thu, 27 Apr 2017 04:04:54 +0000 (00:04 -0400)]
; Fix MPC menu title

* lisp/mpc.el (mpc-mode-menu): Refer to the name of the mode, not the
file name.

7 years agoDrop face from hi-lock--unused-faces only when used
Tino Calancha [Thu, 27 Apr 2017 03:01:19 +0000 (12:01 +0900)]
Drop face from hi-lock--unused-faces only when used

* lisp/hi-lock.el (hi-lock-set-pattern): If REGEXP is already
highlighted, then push FACE into hi-lock--unused-faces (Bug#26666).
* test/lisp/hi-lock-tests.el (hi-lock-bug26666): Add test.

7 years agoFix macOS version check (bug#26664)
Alan Third [Wed, 26 Apr 2017 19:01:39 +0000 (20:01 +0100)]
Fix macOS version check (bug#26664)

* src/nsterm.m (initFrameFromEmacs): Prevent window tabbing mode on
macOS versions 10.12+.

7 years ago; * lisp/Makefile.in: More comments about loaddefs.
Glenn Morris [Wed, 26 Apr 2017 18:23:55 +0000 (14:23 -0400)]
; * lisp/Makefile.in: More comments about loaddefs.

7 years ago; * lisp/Makefile.in: Comments about loaddefs.
Glenn Morris [Wed, 26 Apr 2017 18:12:56 +0000 (14:12 -0400)]
; * lisp/Makefile.in: Comments about loaddefs.

7 years agoMake charprop.el provide a feature
Glenn Morris [Wed, 26 Apr 2017 16:51:48 +0000 (12:51 -0400)]
Make charprop.el provide a feature

* admin/unidata/unidata-gen.el (unidata-gen-charprop):
Provide a feature.
* lisp/loadup.el: Use the charprop feature.

7 years ago; * lisp/loadup.el: Revert accidental blank line in previous.
Glenn Morris [Wed, 26 Apr 2017 16:35:09 +0000 (12:35 -0400)]
; * lisp/loadup.el: Revert accidental blank line in previous.