]> git.eshelyaron.com Git - emacs.git/log
emacs.git
7 years agoExit macro definition on undefined keys
Allen Li [Sat, 30 Sep 2017 13:46:48 +0000 (16:46 +0300)]
Exit macro definition on undefined keys

* lisp/subr.el (undefined): Error out of kmacro definition, if any.
(Bug#28008)

Copyright-paperwork-exempt: yes

7 years agoReset bidi-paragraph-direction on article rendering
Tim Landscheidt [Sat, 30 Sep 2017 13:39:36 +0000 (16:39 +0300)]
Reset bidi-paragraph-direction on article rendering

* lisp/gnus/gnus-art.el (gnus-request-article-this-buffer): Reset
bidi-paragraph-direction on article rendering.  (Bug#28454)

Copyright-paperwork-exempt: yes

7 years agoFix url-http use of url-current-object
Eli Zaretskii [Sat, 30 Sep 2017 13:33:30 +0000 (16:33 +0300)]
Fix url-http use of url-current-object

* lisp/url/url-http.el (url-http): Bind url-current-object before
calling url-http-find-free-connection.  (Bug#28515)

7 years agoAvoid assertions in vc-hg.el on MS-Windows
Andy Moreton [Sat, 30 Sep 2017 13:21:39 +0000 (16:21 +0300)]
Avoid assertions in vc-hg.el on MS-Windows

* lisp/vc/vc-hg.el (vc-hg--pcre-to-elisp-re)
(vc-hg--slurp-hgignore, vc-hg--read-repo-requirements)
(vc-hg-state-fast): Use file-name-absolute-p and directory-name-p
instead of relying on Unix file-name syntax.  This avoids
assertion violations on MS-Windows.

7 years agoImprove documentation of 'copy-sequence'
Eli Zaretskii [Sat, 30 Sep 2017 13:01:00 +0000 (16:01 +0300)]
Improve documentation of 'copy-sequence'

* src/fns.c (Fcopy_sequence):
* doc/lispref/sequences.texi (Sequence Functions): Mention the
exception when copying an empty sequence.  (Bug#28627)

7 years agoMinor update of ack.texi
Eli Zaretskii [Sat, 30 Sep 2017 12:29:28 +0000 (15:29 +0300)]
Minor update of ack.texi

* doc/emacs/ack.texi (Acknowledgments): Update Eli Zaretskii's
contributions.

7 years ago* doc/emacs/emacs.texi (Acknowledgments): Add more contributors.
N. Jackson [Sat, 30 Sep 2017 12:28:06 +0000 (15:28 +0300)]
* doc/emacs/emacs.texi (Acknowledgments): Add more contributors.

Copyright-paperwork-exempt: yes

7 years agoImprove indexing of multi-file/buffer Isearch commands
Eli Zaretskii [Sat, 30 Sep 2017 12:08:47 +0000 (15:08 +0300)]
Improve indexing of multi-file/buffer Isearch commands

* doc/emacs/maintaining.texi (Identifier Search): Change wording
of index entries to make them different from those for multi-file
isearch commands.  (Bug#28584)
* doc/emacs/search.texi (Other Repeating Search): Index the
multi-* commands.  (Bug#28584)  Rearrange the indexing to keep
each index entry close to its subject.

7 years agoAdd CAM02 JCh and CAM02-UCS J'a'b' conversions
Mark Oteiza [Tue, 26 Sep 2017 21:13:36 +0000 (17:13 -0400)]
Add CAM02 JCh and CAM02-UCS J'a'b' conversions

* src/lcms.c (rad2deg, parse_jch_list, parse_jab_list, xyz_to_jch):
(jch_to_xyz, jch_to_jab, jab_to_jch): New functions.
(lcms-jch->xyz, lcms-jch->xyz, lcms-jch->jab, lcms-jab->jch): New Lisp
functions.
(lcms-cam02-ucs): Refactor.
(syms_of_lcms2): Declare new functions.
* test/src/lcms-tests.el (lcms-roundtrip, lcms-ciecam02-gold):
(lcms-jmh->cam02-ucs-silver): New tests.
* etc/NEWS: Mention new functions.

7 years agoFix uses of @kindex in the Emacs manual
Eli Zaretskii [Sat, 30 Sep 2017 08:27:29 +0000 (11:27 +0300)]
Fix uses of @kindex in the Emacs manual

* doc/emacs/programs.texi (Expressions, Semantic, Hungry Delete):
* doc/emacs/mark.texi (Global Mark Ring)
(Disabled Transient Mark):
* doc/emacs/buffers.texi (Select Buffer):
* doc/emacs/mule.texi (File Name Coding): Fix @kindex entries
which used @key.  Reported by Marcin Borkowski <mbork@mbork.pl>.

7 years agoMerge branch 'emacs-26' of git.savannah.gnu.org:/srv/git/emacs into emacs-26
Eli Zaretskii [Sat, 30 Sep 2017 06:57:58 +0000 (09:57 +0300)]
Merge branch 'emacs-26' of git.savannah.gnu.org:/srv/git/emacs into emacs-26

7 years agoMerge from gnulib
Paul Eggert [Sat, 30 Sep 2017 04:55:32 +0000 (21:55 -0700)]
Merge from gnulib

This incorporates:
2017-09-28 string: code style
2017-09-25 sys_types: update URL
2017-09-23 install-sh: do not assume / = //
2017-09-21 mktime: port to OpenVMS
* build-aux/install-sh, m4/mktime.m4, m4/string_h.m4:
* m4/sys_types_h.m4: Copy from Gnulib.
* lib/gnulib.mk.in: Regenerate.

7 years agoPrefer HTTPS to HTTP for gnu.org
Paul Eggert [Sat, 30 Sep 2017 00:44:23 +0000 (17:44 -0700)]
Prefer HTTPS to HTTP for gnu.org

This catches some URLs I missed in my previous scan,
or perhaps were added after the scan.

7 years ago; Spelling fixes
Paul Eggert [Fri, 29 Sep 2017 23:40:18 +0000 (16:40 -0700)]
; Spelling fixes

7 years agoWait for frame visibility with timeout in w32term too
Noam Postavsky [Tue, 26 Sep 2017 01:58:55 +0000 (21:58 -0400)]
Wait for frame visibility with timeout in w32term too

* src/w32term.c (syms_of_w32term) [x-wait-for-event-timeout]: New
variable.
(x_make_frame_visible): Wait for frame to become visible according to
its value.
(input_signal_count): Remove.

7 years agoBring back the busy wait after x_make_frame_visible (Bug#25521)
Noam Postavsky [Thu, 31 Aug 2017 03:12:22 +0000 (23:12 -0400)]
Bring back the busy wait after x_make_frame_visible (Bug#25521)

But wait specfically for a MapNotify event, and only for a
configurable amount of time.
* src/xterm.c (syms_of_xterm) [x-wait-for-event-timeout]: New
variable.
(x_wait_for_event): Use it instead of hardcoding the wait to 0.1s.
(x_make_frame_visible): Call x_wait_for_event at the end.
* etc/NEWS: Announce x_wait_for_event.

7 years ago; * src/gtkutil.c (xg_check_special_colors): Add another GTK+ FIXME.
Philipp Stephani [Fri, 29 Sep 2017 20:47:33 +0000 (22:47 +0200)]
; * src/gtkutil.c (xg_check_special_colors): Add another GTK+ FIXME.

7 years agoMerge branch 'emacs-26' of git.savannah.gnu.org:/srv/git/emacs into emacs-26
Eli Zaretskii [Fri, 29 Sep 2017 19:03:30 +0000 (22:03 +0300)]
Merge branch 'emacs-26' of git.savannah.gnu.org:/srv/git/emacs into emacs-26

7 years ago; Standardize license notices
Glenn Morris [Fri, 29 Sep 2017 16:49:19 +0000 (12:49 -0400)]
; Standardize license notices

7 years agoFix last doc string change in simple.el
Eli Zaretskii [Fri, 29 Sep 2017 12:59:17 +0000 (15:59 +0300)]
Fix last doc string change in simple.el

* lisp/simple.el (shell-command-saved-pos)
(region-extract-function, region-bounds): Doc fixes.  (Bug#28609)

7 years agoRevert "bug#28609: simple.el"
Eli Zaretskii [Fri, 29 Sep 2017 12:53:27 +0000 (15:53 +0300)]
Revert "bug#28609: simple.el"

This reverts commit a75ab3b3fb8ab69ef38a94403d061f88f3b5b63e.

7 years agobug#28609: simple.el
Devon Sean McCullough [Tue, 26 Sep 2017 14:51:04 +0000 (10:51 -0400)]
bug#28609: simple.el

Correct grammar; also, call a pair a pair.

(cherry picked from commit 25ef543a97a80718cc4eb33734d393420a43f41e)

7 years ago; * etc/NEWS: Fix last change.
Eli Zaretskii [Fri, 29 Sep 2017 10:27:42 +0000 (13:27 +0300)]
; * etc/NEWS: Fix last change.

7 years agoMerge branch 'emacs-26' of git.savannah.gnu.org:/srv/git/emacs into emacs-26
Eli Zaretskii [Fri, 29 Sep 2017 10:24:05 +0000 (13:24 +0300)]
Merge branch 'emacs-26' of git.savannah.gnu.org:/srv/git/emacs into emacs-26

7 years agoMerge branch 'emacs-26' into scratch/org-mode-merge
Rasmus [Fri, 29 Sep 2017 08:41:51 +0000 (10:41 +0200)]
Merge branch 'emacs-26' into scratch/org-mode-merge

7 years agoMerge branch 'emacs-26' of git.savannah.gnu.org:/srv/git/emacs into emacs-26
Eli Zaretskii [Fri, 29 Sep 2017 07:02:33 +0000 (10:02 +0300)]
Merge branch 'emacs-26' of git.savannah.gnu.org:/srv/git/emacs into emacs-26

7 years agoFix ert backtrace saving for non-`signal'ed errors (Bug#28333)
Noam Postavsky [Sat, 23 Sep 2017 15:40:14 +0000 (11:40 -0400)]
Fix ert backtrace saving for non-`signal'ed errors (Bug#28333)

* lisp/emacs-lisp/ert.el (ert--run-test-debugger): Take the frames
above the `debugger' frame, rather than assuming there will be a
`signal' frame.

7 years agoRevert "Fix build on macOS (bug#28571)"
Alan Third [Thu, 28 Sep 2017 21:27:02 +0000 (22:27 +0100)]
Revert "Fix build on macOS (bug#28571)"

This reverts commit fec63089d53d2196b0348086aeed70277fbc02c0.

Prematurely pushed.

7 years agoFix build on macOS (bug#28571)
Alan Third [Sun, 24 Sep 2017 11:01:03 +0000 (12:01 +0100)]
Fix build on macOS (bug#28571)

* src/conf_post.h (HAVE_FUTIMENS, HAVE_FUTIMESAT, HAVE_UTIMENSAT)
[DARWIN_OS]: Undefine.

7 years agoAdd tests for `css-current-defun-name'
Simen Heggestøyl [Thu, 28 Sep 2017 16:47:07 +0000 (18:47 +0200)]
Add tests for `css-current-defun-name'

* test/lisp/textmodes/css-mode-tests.el (css-test-current-defun-name)
(css-test-current-defun-name-nested)
(css-test-current-defun-name-complex): New tests for
`css-current-defun-name'.

7 years agoIn w32fullscreen_hook don't add decorations to undecorated frames
Martin Rudalics [Thu, 28 Sep 2017 08:10:21 +0000 (10:10 +0200)]
In w32fullscreen_hook don't add decorations to undecorated frames

* src/w32term.c (w32fullscreen_hook): Do not add (or try to
remove) decorations for undecorated frames.

7 years agoRevert "Split flymake.el into flymake-proc.el and flymake-ui.el"
João Távora [Wed, 27 Sep 2017 21:35:49 +0000 (22:35 +0100)]
Revert "Split flymake.el into flymake-proc.el and flymake-ui.el"

In other words, re-coalesce the two files,
lisp/progmodes/flymake-proc.el and lisp/progmodes/flymake-ui.el, back
into a single one, lisp/progmodes/flymake.el.

The changesets "Prefer HTTPS to FTP and HTTP in documentation" and
"allow nil init in flymake-allowed-file-name-masks to disable flymake"
are kept in place in the new lisp/progmodes/flymake.el.

This reverts Git commit eb34f7f5a29e7bf62326ecb6e693f28878be28cd.

Don't merge this back to master as development happening there builds
upon this work. See also
https://lists.gnu.org/archive/html/emacs-devel/2017-09/msg00932.html.

7 years agoRevert "Add flymake-backends defcustom"
João Távora [Wed, 27 Sep 2017 21:15:19 +0000 (22:15 +0100)]
Revert "Add flymake-backends defcustom"

This reverts Git commit 13993c46a21495167517f76d2e36b6c09ac5e89e.

Don't merge this back to master as development happening there builds
upon this work. See also
https://lists.gnu.org/archive/html/emacs-devel/2017-09/msg00932.html

7 years ago* src/editfns.c (styled_format): Fix typo in previous change.
Paul Eggert [Wed, 27 Sep 2017 00:15:56 +0000 (17:15 -0700)]
* src/editfns.c (styled_format): Fix typo in previous change.

7 years agoAvoid some unnecessary copying in Fformat etc.
Paul Eggert [Tue, 26 Sep 2017 23:31:57 +0000 (16:31 -0700)]
Avoid some unnecessary copying in Fformat etc.

This patch is just for performance; it should not affect behavior.
On my platform, it made the microbenchmark (format "%S" load-path)
run about 45% faster.  It should also speed up calls like (message
"%s" STRING).
* src/callint.c (Fcall_interactively):
* src/dbusbind.c (XD_OBJECT_TO_STRING):
* src/editfns.c (Fmessage, Fmessage_box):
* src/xdisp.c (vadd_to_log, Ftrace_to_stderr):
Use styled_format instead of Fformat or Fformat_message,
to avoid unnecessary copying.
* src/editfns.c (styled_format): New arg NEW_RESULT.
All uses changed.  Reuse an input string if it has the
right value and if !NEW_RESULT.
* src/lisp.h (style_format): New decl.

7 years agolisp/simple.el: Indicate when a list of pairs is meant in a docstring
John Wiegley [Tue, 26 Sep 2017 19:35:52 +0000 (12:35 -0700)]
lisp/simple.el: Indicate when a list of pairs is meant in a docstring

7 years ago; * src/gtkutil.c (xg_create_frame_widgets): Add FIXME re. X drawing
Philipp Stephani [Tue, 26 Sep 2017 18:34:27 +0000 (20:34 +0200)]
; * src/gtkutil.c (xg_create_frame_widgets): Add FIXME re. X drawing

7 years agobug#28609: simple.el
Devon Sean McCullough [Tue, 26 Sep 2017 14:51:04 +0000 (10:51 -0400)]
bug#28609: simple.el

Correct grammar; also, call a pair a pair.

7 years agoUse a separate syntax-ppss cache for narrowed buffers
Dmitry Gutov [Mon, 25 Sep 2017 23:49:00 +0000 (02:49 +0300)]
Use a separate syntax-ppss cache for narrowed buffers

* lisp/emacs-lisp/syntax.el (syntax-ppss-wide):
New variable, to contain the data from `syntax-ppss-last' and
`syntax-ppss-cache'.
(syntax-ppss-cache, syntax-ppss-last): Remove.
(syntax-ppss-narrow, syntax-ppss-narrow-start): New variables.
(syntax-ppss-flush-cache): Flush both caches.
(syntax-ppss--data): Return the appropriate last result and
buffer cache for the current restriction.
(syntax-ppss, syntax-ppss-debug): Use it (bug#22983).

7 years agoImprove python3-compatibility of fallback completion (Bug#28499)
Joerg Behrmann [Mon, 18 Sep 2017 14:59:49 +0000 (16:59 +0200)]
Improve python3-compatibility of fallback completion (Bug#28499)

* lisp/progmodes/python.el (python-eldoc-setup-code): Use
inspect.getfullargspec instead of inspect.getargspec to avoid a
deprecation warning on every usage of eldoc in python-mode.

Copyright-paperwork-exempt: yes

7 years agoFix subr-x-tests when running from elc
Noam Postavsky [Mon, 25 Sep 2017 11:15:51 +0000 (07:15 -0400)]
Fix subr-x-tests when running from elc

* test/lisp/emacs-lisp/subr-x-tests.el (subr-x-and-let*-test-group-1):
Use `eval' around the `should-error' cases.

7 years ago* lisp/eshell/esh-util.el (eshell-condition-case): Add debug declaration.
Noam Postavsky [Sat, 23 Sep 2017 14:04:36 +0000 (10:04 -0400)]
* lisp/eshell/esh-util.el (eshell-condition-case): Add debug declaration.

7 years agoMake sh-indentation into an alias for sh-basic-offset (Bug#21751)
Noam Postavsky [Wed, 30 Aug 2017 23:42:47 +0000 (19:42 -0400)]
Make sh-indentation into an alias for sh-basic-offset (Bug#21751)

* lisp/progmodes/sh-script.el (sh-indentation): Redefine as obsolete
variable alias for `sh-basic-offset'.
(sh-mode, sh-smie--indent-continuation)
(sh-smie-rc-rules, sh-basic-indent-line): Replace `sh-indentation'
with `sh-basic-offset'.

7 years agoFix loading of smie-config rules (Bug#24848)
Noam Postavsky [Wed, 30 Aug 2017 23:31:48 +0000 (19:31 -0400)]
Fix loading of smie-config rules (Bug#24848)

* lisp/emacs-lisp/smie.el (smie-config--setter): Use `set-default'
instead of `setq-default'.
(smie-config): Use `custom-initialize-set' instead of
`custom-initialize-default' as the :initialize argument.

* lisp/progmodes/sh-script.el (sh-learn-buffer-indent): Mention that
we call `smie-config-guess' so that the user will have a chance to
find the correct docstring to consult.  Remove hedging comments
regarding use of abnormal hooks.

7 years ago; Update NEWS for the change in eldoc-message
Dmitry Gutov [Mon, 25 Sep 2017 23:25:03 +0000 (02:25 +0300)]
; Update NEWS for the change in eldoc-message

7 years agoReset default-directory inside *xref-grep* buffer
Dmitry Gutov [Mon, 25 Sep 2017 22:44:54 +0000 (01:44 +0300)]
Reset default-directory inside *xref-grep* buffer

* lisp/progmodes/xref.el (xref-collect-matches):
Reset default-directory, too. (Bug#28575)

7 years ago* test/lisp/tramp-tests.el (tramp-test21-file-links): Special code for smb.
Michael Albinus [Mon, 25 Sep 2017 15:52:24 +0000 (17:52 +0200)]
* test/lisp/tramp-tests.el (tramp-test21-file-links): Special code for smb.

7 years agoLoosen strict parsing requirement for desktop files
Mark Oteiza [Mon, 25 Sep 2017 12:45:08 +0000 (08:45 -0400)]
Loosen strict parsing requirement for desktop files

There are other desktop-looking files, for instance those having to do
with MIME typess, that would benefit from being able to be read by this
function.  It helps to have some flexibility.
* lisp/xdg.el (xdg-desktop-read-file): Remove an error condition.
* test/lisp/xdg-tests.el: Remove a test.

7 years ago* lisp/xdg.el (xdg-thumb-uri): Fix doc string.
Mark Oteiza [Mon, 25 Sep 2017 12:44:23 +0000 (08:44 -0400)]
* lisp/xdg.el (xdg-thumb-uri): Fix doc string.

7 years agoFix documentation of `make-frame' and related variables and hooks
Martin Rudalics [Mon, 25 Sep 2017 08:09:32 +0000 (10:09 +0200)]
Fix documentation of `make-frame' and related variables and hooks

* lisp/frame.el (before-make-frame-hook)
(after-make-frame-functions, frame-inherited-parameters)
(make-frame): Fix doc-strings.
* doc/lispref/frames.texi (Creating Frames): Fix description
of `make-frame' and related variables and hooks.

7 years agoAccept new `always' value for option `buffer-offer-save'
Eric Abrahamsen [Sun, 24 Sep 2017 21:01:21 +0000 (14:01 -0700)]
Accept new `always' value for option `buffer-offer-save'

Also revert ee512e9a82

* lisp/files.el (buffer-offer-save): In addition to nil and t, now
  allows a third symbol value, `always'. A buffer where this option is
  set to `always' will always be offered for save by
  `save-some-buffers'.
  (save-some-buffers): Check the exact value of this buffer-local
  variable. No longer check the buffer name, or the value of
  `write-contents-functions'.
* doc/lispref/buffers.texi (Killing Buffers): Note change in manual.
* doc/lispref/files.texi (Saving Buffers): Remove note about buffer
  names.
* etc/NEWS: Mention in NEWS.

7 years agoImprove new NS scrolling variable names
Alan Third [Sun, 24 Sep 2017 21:35:21 +0000 (22:35 +0100)]
Improve new NS scrolling variable names

* src/nsterm.m (ns-use-system-mwheel-acceleration): Replace with
'ns-use-mwheel-acceleration'.
(ns-touchpad-scroll-line-height): Replace with
'ns-mwheel-line-height'.
(ns-touchpad-use-momentum): Replace with 'ns-use-mwheel-momentum'.
* etc/NEWS: Change variable names.

7 years agoDocument 'replace-buffer-contents' in the manual.
Philipp Stephani [Sun, 24 Sep 2017 17:32:16 +0000 (19:32 +0200)]
Document 'replace-buffer-contents' in the manual.

* doc/lispref/text.texi (Replacing): New node.

7 years agoMerge branch 'emacs-26' of git.savannah.gnu.org:/srv/git/emacs into emacs-26
Eli Zaretskii [Sat, 23 Sep 2017 19:12:49 +0000 (22:12 +0300)]
Merge branch 'emacs-26' of git.savannah.gnu.org:/srv/git/emacs into emacs-26

7 years agoFix undecorated frame resizing issues on NS (bug#28512)
Alan Third [Sat, 23 Sep 2017 18:43:58 +0000 (19:43 +0100)]
Fix undecorated frame resizing issues on NS (bug#28512)

* src/nsterm.m (EmacsView::updateFrameSize): Don't wait for the
toolbar on undecorated frames.
(EmacsView::initFrameFromEmacs): Group window flags correctly.

7 years agoFix doc string of 'dired-listing-switches'
Eli Zaretskii [Sat, 23 Sep 2017 14:23:35 +0000 (17:23 +0300)]
Fix doc string of 'dired-listing-switches'

* lisp/dired.el (dired-listing-switches): Fix the quoting
example.  (Bug#28569)

7 years ago; * doc/emacs/display.texi (Display Custom): Fix wording.
Eli Zaretskii [Sat, 23 Sep 2017 07:45:46 +0000 (10:45 +0300)]
; * doc/emacs/display.texi (Display Custom): Fix wording.

7 years ago; Spelling and URL fixes
Paul Eggert [Sat, 23 Sep 2017 07:34:01 +0000 (00:34 -0700)]
; Spelling and URL fixes

7 years agoDocumentation improvements for 'display-line-numbers'
Eli Zaretskii [Sat, 23 Sep 2017 07:07:11 +0000 (10:07 +0300)]
Documentation improvements for 'display-line-numbers'

* doc/emacs/display.texi (Display Custom): Document a few more
options for display-line-numbers.  (Bug#28533)  Fix a typo.

7 years ago; Fix typo
Mark Oteiza [Fri, 22 Sep 2017 20:34:31 +0000 (16:34 -0400)]
; Fix typo

* lisp/emacs-lisp/subr-x.el: Nix extra parenthesis.

7 years agoFix last change in bat-mode.el
Eli Zaretskii [Fri, 22 Sep 2017 17:41:10 +0000 (20:41 +0300)]
Fix last change in bat-mode.el

* lisp/progmodes/bat-mode.el (bat-font-lock-keywords): Fix last
change.  (Bug#28311)

7 years agoFix restoring in GUI sessions desktop saved in TTY sessions
Eli Zaretskii [Fri, 22 Sep 2017 14:52:47 +0000 (17:52 +0300)]
Fix restoring in GUI sessions desktop saved in TTY sessions

* lisp/frameset.el (frameset-filter-font-param): New function.
(frameset-persistent-filter-alist): Use it for processing the
'font' frame parameter.  (Bug#17352)

7 years agoImprove syntax highlighting in bat-mode
Eli Zaretskii [Fri, 22 Sep 2017 13:40:59 +0000 (16:40 +0300)]
Improve syntax highlighting in bat-mode

* lisp/progmodes/bat-mode.el (bat-font-lock-keywords): Improve
font-locking of environment variables.  Suggested by Achim Gratz
<Stromeko@nexgo.de>.  (Bug#28311)  (Bug#18405)

7 years agoDocument the 'list-FOO' convention
Eli Zaretskii [Fri, 22 Sep 2017 09:41:00 +0000 (12:41 +0300)]
Document the 'list-FOO' convention

* doc/lispref/tips.texi (Coding Conventions): Document the
list-FOO convention.

7 years agoExpose viewing conditions in CAM02-UCS metric
Mark Oteiza [Fri, 22 Sep 2017 02:47:24 +0000 (22:47 -0400)]
Expose viewing conditions in CAM02-UCS metric

Also add tests from the colorspacious library.  Finally, catch an
errant calculation, where degrees were not being converted to radians.
* src/lcms.c (deg2rad, default_viewing_conditions):
(parse_viewing_conditions): New functions.
(lcms-cam02-ucs): Add comments pointing to references used.  Expand
the docstring and explain viewing conditions.  JCh hue is given in
degrees and needs to be converted to radians.
(lcms-d65-xyz): Remove.  No need to duplicate this in Lisp or make the
API needlessly impure.
* test/src/lcms-tests.el: Reword commentary.
(lcms-rgb255->xyz): New function.
(lcms-cri-cam02-ucs): Fix let-binding.
(lcms-dE-cam02-ucs-silver): New test, assimilated from colorspacious.

7 years agoRevert "Set frame size to actual requested size (bug#18215)"
Alan Third [Thu, 21 Sep 2017 20:53:30 +0000 (21:53 +0100)]
Revert "Set frame size to actual requested size (bug#18215)"

This reverts commit d31cd79b40dbd5459b16505a4ee4340210499277.

See bug#28536. I misunderstood bug#18215. It wasn't a bug.

7 years agoAdd tests for Edebug
Gemini Lasswell [Thu, 21 Sep 2017 20:36:08 +0000 (13:36 -0700)]
Add tests for Edebug

* tests/lisp/emacs-lisp/edeug-tests.el: New file.
* tests/lisp/emacs-lisp/edebug-resources/edebug-test-code.el: New file.

7 years agoCatch more messages in ert-with-message-capture
Gemini Lasswell [Thu, 21 Sep 2017 20:35:45 +0000 (13:35 -0700)]
Catch more messages in ert-with-message-capture

* lisp/emacs-lisp/ert-x.el (ert-with-message-capture): Capture
messages from prin1, princ and print.
(ert--make-message-advice): New function.
(ert--make-print-advice): New function.

7 years ago; * lisp/mouse.el (secondary-selection-exist-p): Doc fix.
Eli Zaretskii [Thu, 21 Sep 2017 08:29:11 +0000 (11:29 +0300)]
; * lisp/mouse.el (secondary-selection-exist-p): Doc fix.

7 years agoSupport setting region from secondary selection and vice versa
Tak Kunihiro [Thu, 21 Sep 2017 08:26:00 +0000 (11:26 +0300)]
Support setting region from secondary selection and vice versa

* lisp/mouse.el (secondary-selection-exist-p): New function to
allow callers to tell existence of the secondary selection
in current buffer.
(secondary-selection-to-region): New function to set
beginning and end of the region from those of the secondary
selection.
(secondary-selection-from-region): New function to set
beginning and end of the secondary selection from those of
the region.  (Bug#27530)

* etc/NEWS: Mention the new functions.

7 years agoFix new copy-directory bug with empty dirs
Paul Eggert [Wed, 20 Sep 2017 18:49:12 +0000 (11:49 -0700)]
Fix new copy-directory bug with empty dirs

Problem reported by Afdam Plaice (Bug#28520) and by Eli Zaretskii
(Bug#28483#34).  This is another bug that I introduced in my
recent copy-directory changes.
* lisp/files.el (copy-directory): Work with empty subdirectories, too.
* test/lisp/files-tests.el (files-tests--copy-directory):
Test for this bug.

7 years ago* doc/lispref/strings.texi (Formatting Strings): Improve indexing.
Eli Zaretskii [Wed, 20 Sep 2017 13:40:20 +0000 (16:40 +0300)]
* doc/lispref/strings.texi (Formatting Strings): Improve indexing.

7 years agoFix 2 testsuite tests for MS-Windows
Eli Zaretskii [Wed, 20 Sep 2017 07:16:11 +0000 (10:16 +0300)]
Fix 2 testsuite tests for MS-Windows

* test/lisp/ibuffer-tests.el (test-buffer-list): Don't try to
create files with "*" in their names.
* test/src/editfns-tests.el (format-time-string-with-zone): Adapt
results to MS-Windows build.  Reported by Fabrice Popineau
<fabrice.popineau@gmail.com>.

7 years agoRename timer-list to list-timers
Mark Oteiza [Wed, 20 Sep 2017 02:21:37 +0000 (22:21 -0400)]
Rename timer-list to list-timers

* doc/emacs/anti.texi (Antinews):
* doc/lispref/os.texi (Timers):
* etc/NEWS:
* lisp/emacs-lisp/timer-list.el:
(timer-list-mode): Rename timer-list to list-timers.

7 years agoProvide native touchpad scrolling on macOS
Alan Third [Fri, 8 Sep 2017 18:26:47 +0000 (19:26 +0100)]
Provide native touchpad scrolling on macOS

* etc/NEWS: Describe changes.
* lisp/term/ns-win.el (mouse-wheel-scroll-amount,
mouse-wheel-progressive-speed): Set to smarter values for macOS
touchpads.
* src/nsterm.m (emacsView::mouseDown): Use precise scrolling deltas to
calculate scrolling for touchpads and mouse wheels.
(syms_of_nsterm): Add variables 'ns-use-system-mwheel-acceleration',
'ns-touchpad-scroll-line-height' and 'ns-touchpad-use-momentum'.
* src/keyboard.c (make_lispy_event): Pass on .arg when relevant.
* src/termhooks.h (event_kind): Update comments re. WHEEL_EVENT.
* lisp/mwheel.el (mwheel-scroll): Use line count.
* lisp/subr.el (event-line-count): New function.

7 years agoFix MinGW64 build broken by recent MinGW64 import libraries
Eli Zaretskii [Tue, 19 Sep 2017 17:31:02 +0000 (20:31 +0300)]
Fix MinGW64 build broken by recent MinGW64 import libraries

* configure.ac (W32_LIBS): Put -lusp10 before -lgdi32, as latest
MinGW64 import libraries require that.  (Bug#28493)

* src/Makefile.in: Adjust commentary to the new order of w32
libraries.

7 years agoFix crashes in 'move-point-visually' in minibuffer windows
Eli Zaretskii [Tue, 19 Sep 2017 17:11:42 +0000 (20:11 +0300)]
Fix crashes in 'move-point-visually' in minibuffer windows

* src/xdisp.c (Fmove_point_visually): Fix off-by-one error in
comparing against the last valid glyph_row of a window glyph
matrix.  (Bug#28505)

7 years ago* src/emacs.c (usage_message): Don't mention 'find-file'.
Eli Zaretskii [Tue, 19 Sep 2017 16:52:50 +0000 (19:52 +0300)]
* src/emacs.c (usage_message): Don't mention 'find-file'.

7 years agoFix a minor inaccuracy in the Emacs manual
Eli Zaretskii [Tue, 19 Sep 2017 16:48:27 +0000 (19:48 +0300)]
Fix a minor inaccuracy in the Emacs manual

* doc/emacs/cmdargs.texi (Action Arguments): Don't mention
'find-file', as the implementation has changed.  Reported by
Everton J. Carpes <everton.carpes@gmail.com> in
http://lists.gnu.org/archive/html/help-gnu-emacs/2017-09/msg00146.html.

7 years agoFix errors in flyspell-post-command-hook
Eli Zaretskii [Tue, 19 Sep 2017 16:32:09 +0000 (19:32 +0300)]
Fix errors in flyspell-post-command-hook

* lisp/textmodes/ispell.el (ispell-get-decoded-string): Handle the
case of a nil Nth element of the language dictionary slot.  This
avoids errors in 'flyspell-post-command-hook' when switching
dictionaries with some spell-checkers.  (Bug#28501)

7 years agoWork on Tramp's file-truename
Michael Albinus [Tue, 19 Sep 2017 16:12:35 +0000 (18:12 +0200)]
Work on Tramp's file-truename

* lisp/net/tramp-sh.el (tramp-perl-file-truename):
Check also for symlinks.
(tramp-sh-handle-file-truename): Move check for a symlink
cycle to the end.  Do not blame symlinks which look like a
remote file name.

* lisp/net/tramp.el (tramp-handle-file-truename): Expand result.

7 years agoFix bug with make-directory on MS-Windows root
Paul Eggert [Tue, 19 Sep 2017 08:47:39 +0000 (01:47 -0700)]
Fix bug with make-directory on MS-Windows root

* lisp/files.el (files--ensure-directory): Treat any error, not
just file-already-exists, as an opportunity to check whether DIR
is already a directory (Bug#28508).

7 years ago; Add files missing in ab351d442d7
Rasmus [Tue, 19 Sep 2017 07:00:00 +0000 (09:00 +0200)]
; Add files missing in ab351d442d7

7 years agoFix log-view-diff-common when point is after last entry
Tom Tromey [Tue, 19 Sep 2017 02:02:01 +0000 (20:02 -0600)]
Fix log-view-diff-common when point is after last entry

Bug#28466
* lisp/vc/log-view.el (log-view-diff-common): If point is after last
entry, look at the previous revision.

7 years agoAdapt fileio-tests--symlink-failure to Cygwin
Ken Brown [Mon, 18 Sep 2017 21:22:52 +0000 (17:22 -0400)]
Adapt fileio-tests--symlink-failure to Cygwin

* test/src/fileio-tests.el (fileio-tests--symlink-failure)
[CYGWIN]: Skip the case of a symlink target starting with '\';
this is treated specially on Cygwin.

7 years agoIgnore buffers whose name begins with a space in save-some-buffers
Eric Abrahamsen [Mon, 18 Sep 2017 20:29:44 +0000 (13:29 -0700)]
Ignore buffers whose name begins with a space in save-some-buffers

* lisp/files.el (save-some-buffers): Consider these buffers
  "internal", and don't prompt the user to save them.
* doc/lispref/files.texi: Document.

7 years agoImprove tramp-interrupt-process robustness
Michael Albinus [Mon, 18 Sep 2017 16:00:27 +0000 (18:00 +0200)]
Improve tramp-interrupt-process robustness

* lisp/net/tramp.el (tramp-interrupt-process): Wait, until the
process has disappeared.

7 years agoMinor Tramp doc update
Michael Albinus [Mon, 18 Sep 2017 16:00:07 +0000 (18:00 +0200)]
Minor Tramp doc update

* doc/misc/tramp.texi (Frequently Asked Questions):
Mention `vc-handled-backends'.

7 years agoFix gensym
Mark Oteiza [Mon, 18 Sep 2017 13:00:45 +0000 (09:00 -0400)]
Fix gensym

* lisp/subr.el (gensym): Actually implement the default prefix.
* test/lisp/subr-tests.el (subr-tests--gensym): New test.

7 years agoUpdate Org to v9.1.1
Rasmus [Mon, 18 Sep 2017 10:01:12 +0000 (12:01 +0200)]
Update Org to v9.1.1

Please see etc/ORG-NEWS for major changes.

7 years agoCleanup in files-tests.el
Michael Albinus [Mon, 18 Sep 2017 08:00:17 +0000 (10:00 +0200)]
Cleanup in files-tests.el

* test/lisp/files-tests.el (files-tests--make-directory)
(files-tests--copy-directory): Cleanup temporary directories.

7 years agoRemove old cl-assert calls in 'newline'
Paul Eggert [Mon, 18 Sep 2017 05:32:31 +0000 (22:32 -0700)]
Remove old cl-assert calls in 'newline'

* lisp/simple.el (newline): Remove cl-assert calls
that didn't seem to be helping us debug Bug#18913,
and that caused problems as reported in Bug#28280.
Suggested by Glenn Morris (Bug#28280#8).

7 years agoAvoid crash with C-g C-g in GC
Paul Eggert [Mon, 18 Sep 2017 05:01:56 +0000 (22:01 -0700)]
Avoid crash with C-g C-g in GC

Problem reported by Richard Stallman (Bug#17406).
Based on fix suggested by Eli Zaretskii (Bug#28279#16).
* src/term.c (tty_send_additional_strings):
Use only safe accessors, to avoid crash when C-g C-g in GC.

7 years agoFix format-time-string %Z bug with negative tz
Paul Eggert [Mon, 18 Sep 2017 03:38:12 +0000 (20:38 -0700)]
Fix format-time-string %Z bug with negative tz

* src/editfns.c (tzlookup): Fix sign error in %Z when a purely
numeric zone is negative (Bug#28746).
* test/src/editfns-tests.el (format-time-string-with-zone):
Add test for this bug.

7 years agomessage-citation-line-format %Z is now tz name
Paul Eggert [Mon, 18 Sep 2017 00:46:18 +0000 (17:46 -0700)]
message-citation-line-format %Z is now tz name

* etc/NEWS:
* lisp/gnus/message.el (message-citation-line-format):
Fix doc to match new behavior (Bug#28476).

7 years agoUse doc-view or pdf-tools on any window-system
Mark Oteiza [Sun, 17 Sep 2017 23:37:08 +0000 (19:37 -0400)]
Use doc-view or pdf-tools on any window-system

* lisp/net/mailcap.el (mailcap-mime-data): Simply check for
window-system.

7 years agoFix bug with min and max and NaNs
Paul Eggert [Sun, 17 Sep 2017 22:25:44 +0000 (15:25 -0700)]
Fix bug with min and max and NaNs

* src/data.c (minmax_driver): Fix bug with (min 0 NaN), which
mistakenly yielded 0.  Also, pacify GCC in a better way.
* test/src/data-tests.el (data-tests-min): Test for the bug.

7 years agoFix recently-introduced copy-directory bug
Paul Eggert [Sun, 17 Sep 2017 19:56:00 +0000 (12:56 -0700)]
Fix recently-introduced copy-directory bug

Problem reported by Andrew Christianson (Bug#28451):
* lisp/files.el (copy-directory): If COPY-CONTENTS, make the
destination directory if it does not exist, even if it is a
directory name.  Simplify, and omit unnecessary test for an
already-existing non-directory target, since make-directory
diagnoses that for us now.
* test/lisp/files-tests.el (files-tests--copy-directory):
Test for this bug.

7 years agoMerge from Gnulib
Paul Eggert [Sun, 17 Sep 2017 19:56:00 +0000 (12:56 -0700)]
Merge from Gnulib

This incorporates:
2017-09-16 manywarnings: port to GCC on 64-bit MS-Windows
2017-09-13 all: Replace many more http URLs by https URLs
* build-aux/config.guess, build-aux/config.sub:
* build-aux/gitlog-to-changelog, doc/misc/texinfo.tex:
* lib/allocator.h, lib/count-leading-zeros.h:
* lib/count-trailing-zeros.h, lib/dup2.c, lib/filevercmp.c:
* lib/fstatat.c, lib/fsync.c, lib/ftoastr.c, lib/ftoastr.h:
* lib/intprops.h, lib/signal.in.h, lib/stdio-impl.h, lib/stdio.in.h:
* lib/unistd.in.h, lib/utimens.c, m4/alloca.m4, m4/extern-inline.m4:
* m4/fstatat.m4, m4/gnulib-common.m4, m4/manywarnings.m4:
* m4/std-gnu11.m4, m4/sys_types_h.m4, m4/vararrays.m4:
Copy from Gnulib.
* lib/gnulib.mk.in: Regenerate.

7 years agoFix compatibility problem in Tramp
Michael Albinus [Sun, 17 Sep 2017 17:16:59 +0000 (19:16 +0200)]
Fix compatibility problem in Tramp

* lisp/net/tramp.el (tramp-interrupt-process): Better error handling.

* lisp/net/tramp-compat.el (default-toplevel-value): Move up.
(top): Do not call `tramp-change-syntax' anymore.
(tramp-compat-directory-name-p): New defalias.

* lisp/net/tramp-adb.el (tramp-adb-handle-copy-file):
* lisp/net/tramp-sh.el (tramp-sh-handle-copy-directory):
* lisp/net/tramp-smb.el (tramp-smb-handle-copy-directory)
(tramp-smb-handle-copy-file): Use it.

* test/lisp/net/tramp-tests.el (tramp-test28-interrupt-process):
Modify test.