summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Add tests for color.elSimen Heggestøyl2017-09-132-3/+256
| | | | | | | | | * lisp/color.el (color-name-to-rgb, color-complement): Clarify in docstrings that RGB triplets should use four digits per component. (color-rgb-to-hsl): Break line to avoid "Hidden behind deeper element" warning. * test/lisp/color-tests.el: New file.
* Make gnutls-verify-error work again with url-retrieve-synchronouslyLars Ingebrigtsen2017-09-133-3/+10
| | | | | | | | | | | * lisp/url/url-gw.el (url-open-stream): Only use :nowait if we're doing async connections (bug#26835). * lisp/url/url-parse.el (url): Add an asynchronous slot. * lisp/url/url.el (url-asynchronous): New variable. (url-retrieve-internal): Store the value. (url-retrieve-synchronously): Bind the variable.
* Improve backward compatibility of tramp-testsMichael Albinus2017-09-131-51/+84
| | | | | | | | | * test/lisp/net/tramp-tests.el (seq): Don't require. (tramp--test-emacs26-p): New defun. (tramp-test10-write-region, tramp-test11-copy-file) (tramp-test12-rename-file, tramp-test15-copy-directory) (tramp-test21-file-links): Use it. (tramp-test16-file-expand-wildcards): Use `copy-sequence'.
* * lisp/net/trampver.el (customize-package-emacs-version-alist):Michael Albinus2017-09-131-1/+2
| | | | Add Tramp version integrated in Emacs 25.3.
* Add clarification to if-let* docstringMark Oteiza2017-09-131-4/+5
| | | | | | Also make its behaviour consistent with and-let* in that empty bindings results in success, not failure. * lisp/emacs-lisp/subr-x.el: Edit docstring, change else to then.
* Make fully qualified domain names more fully qualifiedLars Ingebrigtsen2017-09-131-1/+4
| | | | | * lisp/gnus/message.el (message-make-fqdn): Don't try to use a system-name without any periods as a fully qualified domain name.
* Remove unused file lib/getopt_.hPaul Eggert2017-09-131-285/+0
| | | | | * lib/getopt_.h: Remove. It was renamed to lib/getopt.in.h etc. on 2011-01-08, but I forgot to remove the old file.
* Remove "baroque" use of prefix argument from gensymMark Oteiza2017-09-133-11/+14
| | | | | | | | | 'cl-gensym' was simply moved here, but let us take an opportunity to shed some historical baggage. * lisp/subr.el (gensym): Remove special treatment of PREFIX as a number. Use "g" as prefix to differentiate from cl-gensym defaults. * doc/lispref/symbols.texi (Creating Symbols): Update accordingly. * lisp/emacs-lisp/cl-macs.el (cl--gensym-counter, cl-gensym): Restore.
* Provide an lcms2 featureMark Oteiza2017-09-131-0/+2
| | | | * src/lcms.c (syms_of_lcms2): Provide "lcms2".
* Add lcms2 interfaceMark Oteiza2017-09-137-7/+234
| | | | | | | | | | configure.ac: Add boilerplate for configuring and detecting liblcms2. etc/NEWS: Mention new configure option and color-distance change. src/Makefile.in: Add references to lcms.c and liblcms. src/emacs.c: Define lcms2 symbols. src/lcms.c: New file. src/lisp.h: Add declaration for lcms2. src/xfaces.c: Add optional METRIC argument.
* ; Fix previous commitMark Oteiza2017-09-131-6/+2
| | | | | | | Removing extraneous code, thanks to Michael Heerdegen. * lisp/emacs-lisp/subr-x.el (internal--listify): Remove latter condition which always evaluates to t. (internal--build-binding-value-form): Remove dead code.
* Add other D series white points and some simple conversionsMark Oteiza2017-09-131-0/+27
| | | | | | | * lisp/color.el (color-d75-xyz, color-d55-xyz, color-d50-xyz): New constants. (color-xyz-to-xyy, color-xyy-to-xyz, color-lab-to-lch): (color-lch-to-lab): New functions.
* Permit non-integral color gradientsMark Oteiza2017-09-131-3/+4
| | | | * lisp/color.el (color-gradient): Float the step-number.
* Protect against malformed MIME messages that cause inf-loop (bugfix)Katsumi Yamaoka2017-09-131-2/+3
| | | | | * lisp/gnus/gnus-art.el (gnus-article-mime-handles): Protect against malformed MIME messages that cause inf-loop.
* Merge from GnulibPaul Eggert2017-09-13150-157/+157
| | | | | | | This incorporates: 2017-09-13 all: prefer https: URLs This just changes http: to https: in comments, in files copied from Gnulib.
* Call vc-resynch-buffer in vc-git-resolve-when-doneDmitry Gutov2017-09-131-4/+5
| | | | | | * lisp/vc/vc-git.el (vc-git-resolve-when-done): Call vc-resynch-buffer on the current file (bug#28121). Move its autoload to before this function.
* Allow write-contents-functions to short-circuit buffer saveEric Abrahamsen2017-09-124-67/+122
| | | | | | | | | | | | | | | | Bug#28412 * lisp/files.el (basic-save-buffer): Re-arrange function so that write-contents-functions are run earlier. If they return non-nil, consider the buffer saved without requiring the buffer to be visiting a file. (save-some-buffers): This function should consider any buffer with a buffer-local value for write-contents-functions eligible for saving. * test/lisp/files-tests.el (files-test-no-file-write-contents): New test. * doc/lispref/files.texi (Saving Buffers): Mention in docs. * etc/NEWS: And in NEWS.
* * etc/NEWS.25: Copy from emacs-25 etc/NEWS.Paul Eggert2017-09-121-22/+17
|
* Less chatter for ’make info/dir’Paul Eggert2017-09-121-2/+1
| | | | | | * Makefile.in (${srcdir}/info/dir): Tweak shell command so that an ordinary make says just "GEN info/dir" rather than also having a seemingly-unrelated mv line.
* Tweak Gnus doc re gnus-copy-filePaul Eggert2017-09-121-1/+3
| | | | | | | * doc/misc/gnus.texi (Saving Articles): Document behavior with directory name targets (Bug#27986). Problem reported by Katsumi Yamaoka in: http://lists.gnu.org/archive/html/emacs-devel/2017-09/msg00216.html
* Update uses of if-let and when-letMark Oteiza2017-09-1213-57/+57
| | | | | | | | | | | | | | | | | | | | | | | | | * lisp/dom.el (dom-previous-sibling): * lisp/emacs-lisp/package.el (package--with-work-buffer): (package--sort-deps-in-alist, package--sort-by-dependence): (package-install-from-archive, package-install): (package-menu-execute, package-menu--populate-new-package-list): * lisp/filenotify.el (file-notify--rm-descriptor): (file-notify--event-watched-file, file-notify--event-file-name): (file-notify--event-file1-name, file-notify-rm-watch): (file-notify-valid-p): * lisp/gnus/message.el (message-toggle-image-thumbnails): * lisp/gnus/nnimap.el (nnimap-request-move-article): * lisp/ibuf-ext.el (ibuffer-repair-saved-filters): * lisp/mpc.el (mpc-format): * lisp/net/eww.el (eww-tag-meta, eww-process-text-input): (eww-save-history): * lisp/net/shr.el (shr-tag-base, shr-tag-object, shr-make-table-1): * lisp/progmodes/prog-mode.el (prettify-symbols--post-command-hook): * lisp/svg.el (svg-remove): * lisp/textmodes/css-mode.el (css--named-color): (css--colon-inside-funcall): * lisp/textmodes/sgml-mode.el (html-current-buffer-classes): (html-current-buffer-ids): Use if-let* and when-let* instead.
* Implement and-let*Mark Oteiza2017-09-123-190/+238
| | | | | | | | | | | | | | | | | | | | This also includes changes to if-let and when-let. The single tuple special case is ambiguous, and binding a symbol to nil is not as useful as binding it to its value outside the lexical scope of the binding. (Bug#28254) * etc/NEWS: Mention. * lisp/emacs-lisp/subr-x.el (internal--listify): (internal--build-binding-value-form): Extend to account for solitary symbols and (EXPR) items in binding varlist. (if-let*, when-let*): Nix single tuple case and incumbent bind-symbol-to-nil behavior. (and-let*): New macro. (if-let, when-let): Mark obsolete. Redefine in terms of if-let*, so they implicitly gain the new features without breaking existing code. * test/lisp/emacs-lisp/subr-x-tests.el: Adjust tests for: lack of single-tuple special case, lack of binding solitary symbols to nil, and the introduction of uninterned symbols for (EXPR) bindings. Add SRFI-2 test suite adapted to Elisp.
* Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacsEli Zaretskii2017-09-121-1/+1
|\
| * Don't match C++ template delims starting within a token. FIxes bug #28418.Alan Mackenzie2017-09-121-1/+1
| | | | | | | | | | | | * lisp/progmodes/cc-engine.el (c-restore-<>-properties): After failing an attempted match from the start of a token (in particular, "<<"), move to the next token rather than the nex character before searching for the next "<".
* | Fix minor typos in the Emacs manualEli Zaretskii2017-09-122-2/+2
|/ | | | | * doc/emacs/text.texi (Org Organizer): * doc/emacs/ack.texi (Acknowledgments): Fix spelling of Org nodes.
* Merge Emacs 25.3 fixesPaul Eggert2017-09-124-0/+57
| | | | | | | | | | | The security patches released for Emacs 25.3 were less drastic than what we had immediately put into master. Adjust master to match 25.3 (Bug#28350). * lisp/textmodes/enriched.el (enriched-translations): Re-enable FUNCTION and display translations that are safe. (enriched-handle-display-prop): Bring back. (enriched-decode-display-prop): Bring back, but disable the unsafe part.
* Move gensym to core ElispMark Oteiza2017-09-1212-32/+45
| | | | | | | | | | | | | | | | | | | | | * doc/lispref/symbols.texi (Creating Symbols): Mention gensym right after make-symbol. * etc/NEWS: Mention. * lisp/emacs-lisp/cl-macs.el (cl--gensym-counter): Alias to gensym-counter. (cl-gensym): Alias to gensym. * lisp/emacs-lisp/cl.el: Remove gensym from list of aliases. * lisp/emacs-lisp/edebug.el (edebug-make-enter-wrapper): * lisp/emacs-lisp/ert-x.el (ert-with-message-capture): (ert--expand-should-1, ert--expand-should): (ert--should-error-handle-error): * lisp/emacs-lisp/generator.el (cps--gensym): * lisp/emacs-lisp/gv.el (setf): * lisp/emacs-lisp/inline.el (inline--do-letlisteval): * lisp/emacs-lisp/pcase.el (pcase--make-docstring, pcase-dolist): (pcase--funcall, pcase--u1): Use gensym. * lisp/subr.el (gensym-counter): New variable. (gensym): New function, assimilated from cl-lib.
* Fix cl-gentempMark Oteiza2017-09-121-4/+5
| | | | | * lisp/emacs-lisp/cl-macs.el (cl--gentemp-counter): New variable. (cl-gentemp): Use it. Change prefix to "T".
* gnus-score-file-name: Do not append empty suffix.Sam Steingold2017-09-121-2/+2
|
* Extend tramp-tests according to bug#27986Michael Albinus2017-09-121-17/+78
| | | | | | | | * test/lisp/net/tramp-tests.el (tramp-test11-copy-file) (tramp-test12-rename-file, tramp-test15-copy-directory) (tramp-test21-file-links): Extend tests. (tramp-test13-make-directory, tramp-test14-delete-directory): Specifiy error symbol in `should-error'.
* Add cl-print method for hash tablesMark Oteiza2017-09-111-0/+10
| | | | * lisp/emacs-lisp/cl-print.el (cl-print-object): New method.
* Add docstrings to cl-print entry pointsMark Oteiza2017-09-111-1/+8
| | | | | * lisp/emacs-lisp/cl-print.el (cl-print-compiled): Fix docstring. (cl-prin1, cl-prin1-to-string): Add docstrings.
* ; Fix previous commitMark Oteiza2017-09-111-1/+1
| | | | | The printer otherwise includes the 0x prefix. * lisp/emacs-lisp/cl-print.el: Add 0x to format.
* Improve reproducibility of generated leim-list.elGlenn Morris2017-09-111-1/+1
| | | | | * lisp/international/quail.el (quail-update-leim-list-file): Sort the quail directory listing, for more stable output.
* ; * lisp/files.el (basic-save-buffer-2): Fix typo.Philipp Stephani2017-09-111-1/+1
|
* Include sxhash of object with printed bytecodeMark Oteiza2017-09-111-1/+1
| | | | | | | | This printing, while succint, is rather opaque. At least give an immediate clue of whether different byte code printouts are for the same or different byte code objects. * lisp/emacs-lisp/cl-print.el (cl-print-object): Add object sxhash to printed token "#<bytecode>".
* Update documentation of 'max-lisp-eval-depth'Eli Zaretskii2017-09-111-1/+1
| | | | | * doc/lispref/eval.texi (Eval): Update the documented default value of 'max-lisp-eval-depth'.
* Another place to produce debugging output in etagsEli Zaretskii2017-09-111-0/+3
| | | | | * lib-src/etags.c (Ruby_functions): One more place to print debugging output under --debug.
* Improve documentation of etags-related featuresEli Zaretskii2017-09-111-12/+19
| | | | | | * doc/emacs/maintaining.texi (Looking Up Identifiers): Document 'xref-prompt-for-identifier'. (Bug#28403) (Etags Regexps): Document \D back references in etags regexps.
* Fix macOS compatibility versions for vibrant dark theme (bug#28415)Alan Third2017-09-111-9/+9
| | | | | * src/nsterm.m (ns_set_appearance, EmacsView::initFrameFromEmacs): Change macOS compatibility from 10.9 to 10.10.
* Further optimization in Tramp's file name decompositionMichael Albinus2017-09-114-205/+195
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/tramp.el (tramp-syntax): Recompute all file name components. Call `custom-set-variables' after loading. (tramp-build-prefix-format, tramp-build-prefix-regexp) (tramp-build-method-regexp) (tramp-build-postfix-method-format) (tramp-build-postfix-method-regexp) (tramp-build-prefix-ipv6-format) (tramp-build-prefix-ipv6-regexp) (tramp-build-postfix-ipv6-format) (tramp-build-postfix-ipv6-regexp) (tramp-build-postfix-host-format) (tramp-build-postfix-host-regexp) (tramp-build-file-name-regexp) (tramp-build-completion-file-name-regexp): New defuns. (tramp-prefix-format, tramp-prefix-regexp) (tramp-method-regexp, tramp-postfix-method-format) (tramp-postfix-method-regexp, tramp-prefix-ipv6-format) (tramp-prefix-ipv6-regexp, tramp-postfix-ipv6-format) (tramp-postfix-ipv6-regexp, tramp-postfix-host-format) (tramp-postfix-host-regexp) (tramp-remote-file-name-spec-regexp) (tramp-file-name-structure, tramp-file-name-regexp) (tramp-completion-file-name-regexp): Convert defuns into defvars. (tramp-prefix-regexp-alist) (tramp-postfix-method-regexp-alist) (tramp-prefix-ipv6-regexp-alist) (tramp-postfix-ipv6-regexp-alist) (tramp-postfix-host-regexp-alist) (tramp-remote-file-name-spec-regexp-alist): Remove. (tramp-build-remote-file-name-spec-regexp) (tramp-build-file-name-structure): Simplify. (tramp-completion-file-name-regexp-alist): New defconst. (tramp-tramp-file-p, tramp-dissect-file-name) (tramp-make-tramp-file-name) (tramp-completion-make-tramp-file-name) (tramp-rfn-eshadow-update-overlay-regexp) (tramp-register-file-name-handlers) (tramp-completion-handle-file-name-all-completions) (tramp-completion-dissect-file-name, tramp-clear-passwd): * lisp/net/tramp-ftp.el (tramp-ftp-file-name-handler): * lisp/net/tramp-sh.el (tramp-sh-handle-vc-registered) (tramp-compute-multi-hops): Use variables but functions for file name components. * test/lisp/net/tramp-tests.el (tramp-test24-file-name-completion): Use variables but functions for file name components.
* Port tramp-tests to new copy-directory behaviorPaul Eggert2017-09-101-2/+3
| | | | | | * test/lisp/net/tramp-tests.el (tramp-test15-copy-directory): Use directory name as arg for copy-directory when we want the special behavior.
* Adjust thumbs to new rename-file behaviorPaul Eggert2017-09-102-12/+5
| | | | | | | | * etc/NEWS: Mention this. * lisp/thumbs.el (thumbs-rename-images): Treat the destination as special only if it is a directory name. When there is a marked list, turn the destination into a directory name if it is not already.
* Adjust ob-tangle to new copy-file behaviorPaul Eggert2017-09-101-0/+1
| | | | | * lisp/org/ob-tangle.el (org-babel-tangle-publish): Port to new copy-file behavior.
* Make gnus-copy-file act like copy-file etc.Paul Eggert2017-09-102-5/+2
| | | | | | * etc/NEWS: Mention this. * lisp/gnus/gnus-util.el (gnus-copy-file): Treat the destination as special only if it is a directory name.
* Make write-file act like copy-file etc.Paul Eggert2017-09-102-4/+5
| | | | | | | | Change write-file to be consistent with the new behavior of copy-file, etc. * etc/NEWS: Mention this. * lisp/files.el (write-file): Treat the destination as special only if it is a directory name.
* Make copy-directory act like copy-file etc.Paul Eggert2017-09-104-20/+19
| | | | | | | | | | Do the special dance with the destination only if it is a directory name, for consistency with copy-file etc. (Bug#27986). * doc/emacs/files.texi (Copying and Naming): * doc/lispref/files.texi (Create/Delete Dirs): * etc/NEWS: Document this. * lisp/files.el (copy-directory): Treat NEWNAME as special only if it is a directory name.
* Fix some make-directory bugsPaul Eggert2017-09-102-11/+41
| | | | | | | | * lisp/files.el (files--ensure-directory): New function. (make-directory): Use it to avoid bugs when (make-directory FOO t) is invoked on a non-directory, or on a directory hierarchy that is being built by some other process while Emacs is running. * test/lisp/files-tests.el (files-tests--make-directory): New test.
* Fix race with rename-file etc. with dir NEWNAMEPaul Eggert2017-09-105-41/+58
| | | | | | | | | | | | | | | | | | | | This changes the behavior of rename-file etc. slightly. The old behavior mostly disagreed with the documentation, and had a race condition bug that could allow attackers to modify victims' write-protected directories (Bug#27986). * doc/lispref/files.texi (Changing Files): Document that in rename-file etc., NEWFILE is special if it is a directory name. * etc/NEWS: Document the change in behavior. * src/fileio.c (directory_like): Remove. All uses removed. (expand_cp_target): Test only whether NEWNAME is a directory name, not whether it is currently a directory. This avoids a race. (Fcopy_file, Frename_file, Fadd_name_to_file, Fmake_symbolic_link): Document behavior if NEWNAME is a directory name. (Frename_file): Simplify now that the destdir behavior occurs only when NEWNAME is a directory name. * test/lisp/net/tramp-tests.el (tramp-test11-copy-file) (tramp-test12-rename-file, tramp--test-check-files): Adjust tests to match new behavior.
* Extend --debug printouts in etagsEli Zaretskii2017-09-101-5/+18
| | | | | * lib-src/etags.c (regex_tag_multiline, readline): Under "--debug", print tags found via regexps.