aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Avoid an infloop in shr when filling text with :align-to propertiesLars Ingebrigtsen2019-08-231-0/+2
| | | | | | | | | | | | | | | * lisp/net/shr.el (shr-fill-line): Only join together URL buttons if there are any URL buttons.
| * | Fix Gnus display of timestamps that's less than a second oldLars Ingebrigtsen2019-08-231-1/+1
| | | | | | | | | | | | | | | * lisp/gnus/gnus-art.el (article-lapsed-string): The elapsed seconds may be a fractional second. In that case, just say "now".
| * | Really save games scores to the games scores directoryLars Ingebrigtsen2019-08-231-1/+2
| | | | | | | | | | | | | | | | | | * lisp/play/gamegrid.el (gamegrid-add-score-with-update-game-score): Save games scores to `gamegrid-user-score-file-directory' by default (bug#36971).
| * | Add imenu support to xrefDamien Cassou2019-08-232-2/+28
| | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/xref.el (xref--imenu-prev-index-position) (xref--imenu-extract-index-name): Add functions to get imenu support. (xref--xref-buffer-mode): Set imenu variables to the new functions. * etc/NEWS: Add corresponding entry (bug#36974).
| * | Give a better error message when reading invalid "\unicode" escapes.Lars Ingebrigtsen2019-08-231-1/+2
| | | | | | | | | | | | | | | * src/lread.c (read_escape): Give a clearer error message on Unicode escape sequences (bug#36988).
| * | Clarify doc string of cl-pushnewLars Ingebrigtsen2019-08-231-3/+6
| | | | | | | | | | | | | | | * lisp/emacs-lisp/cl-lib.el (cl-pushnew): Clarify doc string (bug#37016).
| * | Fix interaction between url-handler-mode and browse-urlLars Ingebrigtsen2019-08-231-1/+3
| | | | | | | | | | | | | | | * lisp/net/browse-url.el (browse-url): Don't expand any URLs (like "man:") that have a scheme when using `url-handler-mode' (bug#37056).
| * | Use ISO8601 time formats in tar-modeLars Ingebrigtsen2019-08-231-1/+4
| | | | | | | | | | | | | | | | | | * lisp/tar-mode.el (tar-clip-time-string): Make obsolete (bug#37130). (tar-header-block-summarize): Use ISO8601 time instead of home-brew format.
| * | Make dired recognize .lz filesLars Ingebrigtsen2019-08-231-0/+1
| | | | | | | | | | | | | | | * lisp/dired-aux.el (dired-compress-file-suffixes): Recognize .lz (lzip) compressed files (bug#37136).
| * | Fix too-long lines in nsm.elLars Ingebrigtsen2019-08-231-32/+37
| | | | | | | | | | | | | | | * lisp/net/nsm.el: Fix some too-long lines and some terminology in the doc strings/comments.
| * | Mention new NSM warningsLars Ingebrigtsen2019-08-231-1/+2
| | |
| * | Merge remote-tracking branch 'origin/netsec'Lars Ingebrigtsen2019-08-239-331/+1325
| |\ \
| | * | Tweak the warning display to be less like a TLS decoding pageLars Ingebrigtsen2019-08-231-17/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/nsm.el (nsm-parse-subject, nsm-certificate-part): Restore functions for parsing subjects. (nsm-format-certificate): Use them to display more user-friendly data. Also change the display to have fewer lines again so that the data of interest isn't pushed off the screen.
| | * | Change nsm-should-check to look at local subnetsRobert Pluim2019-08-072-44/+110
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/nsm.el (nsm-network-same-subnet): New function. Checks if an ip address is in the same subnet as another one. (nsm-should-check): Use nsm-network-same-subnet to see if we're connecting to a local subnet machine. Remove checks for RFC1918 addresses. * test/lisp/net/nsm-tests.el: New file. Test nsm-should-check functionality.
| | * | fixup! Implement hostname->ip lookup functionRobert Pluim2019-08-073-41/+25
| | | |
| | * | Don't check unibyte hostnames for pure-ASCIIRobert Pluim2018-07-172-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/process.c (network_lookup_address_info_1): Only check multibyte hostnames for pure-ASCII. * test/src/process-tests.el (unibyte-domain-name): Test unibyte domain names with network-lookup-address-info.
| | * | Add network-lookup-address-info descriptionRobert Pluim2018-07-171-0/+15
| | | | | | | | | | | | | | | | | | | | * doc/lispref/processes.texi (Misc Network): Document network-lookup-address-info.
| | * | Add tests for network-lookup-address-infoRobert Pluim2018-07-171-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * test/src/process-tests.el (lookup-family-specification): Test network-lookup-address-info api. (lookup-unicode-domains): Test that unicode domains fail. (lookup-google): Test that normal lookups succeed. (non-existent-lookup-failure): Check that known non-existent domains fail.
| | * | Refactor getaddrinfo usageRobert Pluim2018-07-171-34/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/process.c: (network_lookup_address_info_1): New function, does most of the work to call getaddrinfo. Now checks hostname for pure-ASCII. (Fmake_network_process): Use it. (Fnetwork_lookup_address_info): Likewise. Error check family argument.
| | * | Implement hostname->ip lookup functionRobert Pluim2018-07-164-24/+105
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/process.c (conv_sockaddr_to_lisp): Add include_port argument. Don't put a port in the result if this is false. (conv_addrinfo_to_lisp, Fprocess_datagram_address) (connect_network_socket, network_interface_list) (network_interface_info, server_accept_connection) (init_process_emacs): Update callers. (Fnetwork_lookup_address_info): New function. Performs hostname to ip address lookups. * src/w32.c (network_interface_get_info): Update callers of conv_sockaddr_to_lisp * etc/NEWS : mention addition of 'network-lookup-address-info'
| | * | Show full issuer and subject distinguished namesJimmy Yuen Ho Wong2018-07-141-37/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CAs like Let's Encrypt do not put O and OU into the Subject's DN. Similarly, O and OU are often used to indicate Domain Validated or Organization Validation as opposed to the actual OU. Issuer CN often contains the issuer's server or as an indication of Extended Validation certificate as opposed to the actual issuer organization. The Hostname part as extracted from the Subject is also confusing, as in the case of a hostname mismatch, the Subject's CN, which `nsm-format-certificate' naively calls the Hostname, will not actually match the hostname in the problem preamble. * lisp/net/nsm.el (nsm-format-certificate): Show full DN of Issuer and Subject. Remove Hostname. (nsm-certificate-part, nsm-parse-subject): Removed.
| | * | Full certificate chain details for NSMJimmy Yuen Ho Wong2018-07-142-36/+187
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/nsm.el (nsm-check-tls-connection): Fix issue with plural problems in message. Prefix every problem with a bullet. (nsm-query-user): Add new view the full certificate chain by pressing d. (nsm-format-certificate): Improve basic certificate and session info formatting. * src/gnutls.c (emacs_gnutls_certificate_export_pem): New function. (gnutls_certificate_details): Rename to emacs_gnutls_certificate_details. Add :pem to result list. (Fgnutls_format_certificate): New function for formatting a PEM to human-readable text.
| | * | Add option to bypass NSM TLS checks on local networksJimmy Yuen Ho Wong2018-07-142-3/+148
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/net-utils.el (nslookup-host-ipv4, nslookup-host-ipv6, ipv6-expand): New functions to lookup IPv4 and IPv6 addresses from DNS. * lisp/net/nsm.el (nsm-trust-local-network, nsm-should-check, nsm-check-tls-connection, nsm-check-plain-connection): New defcustom `nsm-trust-local-network' lets users customize whether NSM should check for TLS problems when connecting to the hosts on their local networks. `nsm-should-check' determines whether `nsm-check-tls-connection' and `nsm-check-plain-connection' should perform checks. localhost is implicitly trusted, thus checks are never performed there.
| | * | Revamp Network Security manager checks for TLSJimmy Yuen Ho Wong2018-07-142-277/+763
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/nsm.el (network-security-level, nsm-level, nsm-new-fingerprint-ok-p): Remove `paranoid' level and related code. * lisp/net/nsm.el (nsm-tls-checks, nsm-tls-check-version, nsm-tls-check-compression, nsm-tls-check-renegotiation-info-ext, nsm-tls-check-verify-cert, nsm-tls-check-same-cert, nsm-tls-check-null-suite, nsm-tls-check-export-kx, nsm-tls-check-anon-kx, nsm-tls-check-md5-sig, nsm-tls-check-rc4-cipher, nsm-tls-check-dhe-prime-kx, nsm-tls-check-sha1-sig, nsm-tls-check-ecdsa-cbc-cipher nsm-tls-check-dhe-kx, nsm-tls-check-rsa-kx, nsm-tls-check-3des-cipher, nsm-tls-check-cbc-cipher, nsm-save-fingerprint-maybe, nsm-tls-post-check-functions): New options and functions for checking TLS handshake problems. * lisp/net/nsm.el (nsm-check-certificate, network-security-protocol-checks, nsm-protocol-check--diffie-hellman-prime-bits, nsm-protocol-check--3des, nsm-protocol-check--rc4, nsm-protocol-check--signature-sha1, nsm-protocol-check--intermediate-sha1, nsm-protocol-check--ssl, nsm-check-protocol): Remove in favor of `nsm-tls-checks' and `nsm-tls-check-*' functions. * lisp/net/nsm.el (nsm-verify-connection): Ensure connection is checked even when `network-security-level' is `low'. * lisp/net/nsm.el (nsm-check-tls-connection): Batch all problems found before querying the user. * lisp/net/nsm.el (nsm--encryption): Renamed to `nsm-cipher-suite'. * lisp/net/nsm.el (nsm-fingerprint-ok-p): No longer prompt when certificate fingerprints mismatch. Returns a boolean instead when the fingerprint of the certificate received matches the saved fingerprints. * lisp/net/nsm.el (nsm-query): Change signature. Accepts a list of problems and a preformatted message instead of just a message format and the arguments for the message. * lisp/net/nsm.el (nsm-query-user): Change signature. Accepts a preformatted message and the peer status of the handshake instead of a message format, its arguments and the certificate for the host. * lisp/net/nsm.el (nsm-save-host): Change signature. Accepts a list of problems after the WHAT parameter. Saves multiple fingerprints for the same host in case the host load balances a TLS server with more than one certificates signed with different keys. Makes sure conditions are not removed when updating a fingerprint. * lisp/net/nsm.el (nsm-format-certificate): Display the TLS handshake's renegotiation info extension, compression level, encrypt-then-MAC extension, and key exchange prime bit length. * src/gnutls.c (gnutls-peer-status-warning-describe, gnutls-peer-status): Check for certificate verification problems introduced since GnuTLS 3.1. * src/gnutls.c (gnutls-peer-status): `:compression', `:encrypt-then-mac' and `:safe-renegotiation' are now contained in the peer status result return value.
| | * | Set standard value of `gnutls-min-primes-bits' to nilJimmy Yuen Ho Wong2018-07-141-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/gnutls.el (gnutls-min-prime-bits): Set standard value to nil in order to let GnuTLS manage the minimum DH prime bits accepted.
| | * | Check TLS certs against CRLJimmy Yuen Ho Wong2018-07-141-5/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/gnutls.el (gnutls-boot-parameters): Return `gnutls-crlfiles' in `:crlfiles'. (gnutls-crlfiles): New defcustom. (gnutls--get-files): New defun. (gnutls-trustfiles, gnutls-crlfiles): Delegate to `gnutls--get-files' to return a list of filenames, accepts glob pattern.
| * | | Enable sorting paragraphs when the final paragraph has no newlineLars Ingebrigtsen2019-08-231-5/+11
| | | | | | | | | | | | | | | | | | | | * lisp/sort.el (sort-paragraphs): Ensure that when sorting paragraphs, the final paragraph ends with a newline (bug#21785).
| * | | Signal an error on `M-x shell-mode'Lars Ingebrigtsen2019-08-221-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/shell.el (shell-mode): This mode can't usefully be called interactively (and is somewhat destructive, as it disables `undo'), and it's usually confused with `shell-script-mode' (bug#19812). So signal an error if it's used interactively.
| * | | Make ibuffer-mark-by-file-name-regexp work on the displayed file nameLars Ingebrigtsen2019-08-221-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/ibuf-ext.el (ibuffer-mark-by-file-name-regexp): Perform the matching on the abbreviated (i.e., displayed) file name, and not the complete name (bug#18859). This seems like the more expected action.
| * | | Have `M-x battery' list all batteries under GNU/LinuxLars Ingebrigtsen2019-08-232-12/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/battery.el (battery-upower-device): Remove (bug#25559). (battery--find-linux-sysfs-batteries): New function. (battery-status-function, battery-linux-sysfs): Use it to list all batteries, no matter what they're called.
| * | | Signal `invalid-read-syntax' for "trailing garbage"Lars Ingebrigtsen2019-08-231-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | * src/minibuf.c (string_to_object): Signal `invalid-read-syntax' instead of the generic `error' for "trailing garbage following expression" (bug#24649).
| * | | Fix skeleton edebug specLars Ingebrigtsen2019-08-231-2/+2
| | | | | | | | | | | | | | | | | | | | * lisp/skeleton.el (skeleton-edebug-spec): Fix edebug spec (bug#24779).
| * | | Run quit-window-hook from the correct bufferLars Ingebrigtsen2019-08-231-1/+4
| | | | | | | | | | | | | | | | | | | | * lisp/window.el (quit-window): Run the hook from the buffer specified by the WINDOW parameter.
| * | | Recompute user-emacs-directory-relative defcustoms one more timeEli Zaretskii2019-08-221-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/startup.el (command-line): Re-evaluate the custom-delayed predefined variables one more time after loading the user's init file. (Bug#37116)
| * | | Fix minor checkdoc errors in package.elStefan Kangas2019-08-221-3/+3
| | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/package.el (package-all-keywords) (package-menu--generate, package-archive-priority): Doc fixes.
| * | | Signal user-error on duplicate package refreshStefan Kangas2019-08-221-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/package.el (package-menu-refresh): Signal a user-error if there is already a refresh running in the background. Doc fix. (Bug#36707)
| * | | * doc/misc/efaq.texi: Note the inclusion year. (Bug#37142)Stefan Kangas2019-08-221-1/+1
| | | |
| * | | Improve documentation of 'ispell-skip-html'Eli Zaretskii2019-08-221-1/+6
| | | | | | | | | | | | | | | | | | | | * lisp/textmodes/ispell.el (ispell-skip-html): Doc fix. (Bug#37141)
| * | | * doc/misc/tramp.texi: Use @acronym{GVFS}.Michael Albinus2019-08-221-54/+56
| | | |
| * | | Fix Qunbound-Qnil confusion in clrhash patchPaul Eggert2019-08-221-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | Problem reported by Stefan Monnier. * src/fns.c (hash_clear): Fix typo I introduced in my previous patch here, by setting keys to Qunbound not Qnil.
| * | | Remove no-longer-needed workaround for GC bugPaul Eggert2019-08-211-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/keymap.c (describe_vector): Remove old workaround for GC bug. This workaround, introduced in 1993-02-19T05:43:54Z!rms@gnu.org, has not been needed for some time. Problem reported by Pip Cet in: https://lists.gnu.org/r/emacs-devel/2019-08/msg00316.html
| * | | Don’t debug fset by defaultPaul Eggert2019-08-212-12/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This GC bug seems to have been fixed, so the check is no longer needed in production code. From a suggestion by Pip Cet in: https://lists.gnu.org/r/emacs-devel/2019-08/msg00316.html * src/alloc.c (SUSPICIOUS_OBJECT_CHECKING) [!ENABLE_CHECKING]: Do not define. (find_suspicious_object_in_range, detect_suspicious_free): Expand to proper dummy expressions if !SUSPICIOUS_OBJECT_CHECKING. * src/data.c (Ffset): Convert test to an eassert.
| * | | Fix clrhash bug when hash table needs rehashingPaul Eggert2019-08-212-20/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem reported by Pip Cet in: https://lists.gnu.org/r/emacs-devel/2019-08/msg00316.html * src/fns.c (maybe_resize_hash_table): Prefer ASET to gc_aset where either will do. Simplify appending of Qunbound values. Put index_size calculation closer to where it’s needed. (hash_clear): If hash_rehash_needed_p (h), don’t clear the nonexistent hash vector. Use memclear to speed up clearing. * src/lisp.h (HASH_TABLE_SIZE): Check that the size is positive, and tell that to the compiler.
| * | | * src/buffer.c: Fix comment typo.Paul Eggert2019-08-211-1/+1
| | | |
| * | | Don’t hard-loop on cycles in ‘read’ etc.Paul Eggert2019-08-213-37/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem for ‘read’ reported by Pip Cet in: https://lists.gnu.org/r/emacs-devel/2019-08/msg00316.html * src/fns.c (Frequire): Protect against circular current-load-list. * src/lread.c (Fget_load_suffixes): Protect against circular load-suffixes or load-file-rep-suffixes. (Fload): Protect against circular loads-in-progress. (openp): Protect against circular PATH and SUFFIXES. (build_load_history): Protect against circular load-history or current-load-list. (readevalloop_eager_expand_eval): Protect against circular SUBFORMS. (read1): Protect against circular data. * test/src/lread-tests.el (lread-circular-hash): New test.
| * | | Make hide-ifdef-mode-prefix-key customisableLars Ingebrigtsen2019-08-211-11/+7
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/hideif.el (hide-ifdef-mode-prefix-key): Make into a defcustom since it seems like this is something that should be user-customisable (bug#8922).
| * | | Use `quit-window-hook' in Info instead of having its own commandLars Ingebrigtsen2019-08-212-13/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/misc/info.texi (Help-Q): Info now uses `quit-window'. * lisp/info.el (info-standalone): Adjust doc string. (Info-exit): Made into obsolete alias. (Info-mode-map): Bind "q" to `quit-window'. (Info-mode-menu): Adjust. (info-tool-bar-map): Ditto. (Info-mode): Adjust doc string. (Info-mode): If Info is standalone, kill Emacs on "q".
| * | | Adjust quit-window-hook documentationLars Ingebrigtsen2019-08-211-4/+4
| | | | | | | | | | | | | | | | | | | | * doc/lispref/windows.texi (Quitting Windows): Adjust documentation of quit-window-hook (bug#9867).
| * | | Mention quit-window-hook in "Standard Hooks"Lars Ingebrigtsen2019-08-211-0/+3
| | | | | | | | | | | | | | | | | | | | * doc/lispref/hooks.texi (Standard Hooks): Mention quit-window-hook (bug#9867).
| * | | Call `quit-window-hook' in the `quit-window' command onlyLars Ingebrigtsen2019-08-211-6/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/window.el (quit-restore-window): Don't run quit-window-hook here... (quit-window): ... but here instead. Callers that call the former programmatically can decide themselves whether to call the hook. (quit-window-hook): Fix doc string.