aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/net (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Ignore invalid base64 encoded embedded imagesLars Magne Ingebrigtsen2016-03-201-1/+2
| | | | | * lisp/net/shr.el (shr-image-from-data): Ignore invalid base64 encoded embedded images (bug#22928).
* Render empty <ul><li><ul> correctlyLars Magne Ingebrigtsen2016-03-201-0/+4
| | | | | * lisp/net/shr.el (shr-tag-ul): Render empty <ul><li><ul> correctly (bug#22964).
* Fix <p> and <div> newlines with or without <li> in shrLars Magne Ingebrigtsen2016-03-201-3/+12
| | | | | | | | | * lisp/net/shr.el (shr-ensure-newline): Respect that we're in a <li>, if we are, and don't insert newlines there. (shr-ensure-paragraph): When mixing newlines and paragraph ensurements, don't insert too many blank lines. (shr-tag-div): A <div> shouldn't introduce a paragraph, but a new line.
* Remove code left over from when overlays were used for paddingLars Magne Ingebrigtsen2016-03-201-26/+0
| | | | | | * lisp/net/shr.el (shr-previous-newline-padding-width): Remove. (shr-remove-trailing-whitespace): Ditto. (shr-insert-document): Don't call them.
* Remove trailing blank lines in shrLars Magne Ingebrigtsen2016-03-201-0/+14
| | | | | | * lisp/net/shr.el (shr--remove-blank-lines-at-the-end): New function. (shr-insert-document): Use it to remove trailing blank lines at the end of documents, since these never seem to be very useful.
* Sync with soap-client repository, version 3.1.1Thomas Fitzsimmons2016-03-161-56/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/soap-client.el (soap-encode-xs-complex-type): Fix error message. (soap-find-port): Delete trailing whitespace. (soap-find-operation): Fix documentation and rename parameter. (soap-find-port): Likewise. (soap-operation-arity): Likewise. * lisp/net/soap-client.el: Update copyright years. (soap-warning): Fix docstring quoting. (soap-decode-date-time): Likewise. (soap-validate-xs-simple-type): Remove tabs for indentation. * lisp/net/soap-inspect.el: Update copyright years. * lisp/net/soap-client.el (soap-encode-xs-basic-type): Do not assume xsd:base64Binary values are UTF-8 strings. (soap-decode-xs-basic-type): Likewise. (soap-invoke): Document xsd:base64Binary handling. * lisp/net/soap-client.el (soap-find-port, soap-find-operation) (soap-operation-arity): new defuns (soap-invoke-internal): use soap-find-port, soap-find-operation. Co-authored-by: Alex Harsanyi <AlexHarsanyi@gmail.com>
* Update handling of <bdo> per Unicode 9.0Eli Zaretskii2016-03-121-2/+2
| | | | | * lisp/net/shr.el (shr-tag-bdo): Wrap in FSI..PDI as well, per Unicode 9.0 changes in UAX#9, paragraph 2.7.
* Remove compat code in TrampMichael Albinus2016-03-111-37/+29
| | | | | * lisp/net/tramp-sh.el (tramp-open-connection-setup-interactive-shell): Remove compat code.
* Assume getaddrinfo in C codePaul Eggert2016-03-071-2/+2
| | | | | | | | | | | | | | * admin/CPP-DEFINES, configure.ac: Remove HAVE_GETADDRINFO, HAVE_H_ERRNO. All uses removed. * doc/lispref/processes.texi (Network, Network Processes), etc/NEWS: Say that port numbers can be integer strings. * lib-src/pop.c (h_errno) [!WINDOWSNT && !HAVE_H_ERRNO]: Remove decl. (socket_connection): Assume HAVE_GETADDRINFO. * lisp/mpc.el (mpc--proc-connect): * lisp/net/network-stream.el (open-network-stream): It’s now OK to use integer strings as port numbers. * src/process.c (conv_numerical_to_lisp) [!HAVE_GETADDRINFO]: Remove. (Fmake_network_process): Assume HAVE_GETADDRINFO.
* Remove support for IRIXPaul Eggert2016-03-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | The IRIX port wasn’t really working anyway, and the code was getting in the way of other changes (e.g., getaddrinfo fixes). IRIX’s supplier dropped support for IRIX in 2013. * admin/CPP-DEFINES: * configure.ac (opsys): * doc/lispref/os.texi (System Environment): * etc/MACHINES, etc/PROBLEMS: * lisp/find-dired.el (find-grep-options): * lisp/lpr.el (lpr-lp-system): * lisp/ls-lisp.el (ls-lisp-emulation): * lisp/mail/rmail.el (rmail-spool-directory): * lisp/net/net-utils.el (ping-program-options): * lisp/progmodes/gud.el (gud-irix-p, gud-dbx-use-stopformat-p): * lisp/progmodes/ps-mode.el (ps-mode-print-function): * src/conf_post.h [IRIX6_5]: * src/emacs.c (Vsystem_type): * src/filelock.c (get_boot_time_1): * src/process.c (process_send_signal): * src/unexelf.c (unexec): Omit IRIX-specific code and/or documentation. * configure.ac (NON_GCC_TEST_OPTIONS, IRIX6_5, PREFER_VSUSP): Remove. All uses removed. * etc/NEWS: Document the change.
* Allow making TLS negotiation blockingLars Magne Ingebrigtsen2016-03-051-1/+3
| | | | | | | | | | | * lisp/net/gnutls.el (gnutls-negotiate): Make negotiation blocking. * src/gnutls.c (Fgnutls_boot): Provide a new keyword, :complete-negotiation, to specify that we want complete negotiation even if the socket is non-blocking. (gnutls_try_handshake): Complete negotiation if given that keyword. * src/process.h (L): Added gnutls_complete_negotiation_p.
* Merge from origin/emacs-25John Wiegley2016-03-031-5/+11
|\ | | | | | | | | cb1e3da Also allow setting the paragraph direction to nil bbe8a89 Made the new OS X visible bell more visible.
| * Also allow setting the paragraph direction to nilLars Ingebrigtsen2016-03-011-5/+11
| | | | | | | | | | * lisp/net/eww.el (eww-toggle-paragraph-direction): Also allow setting the paragraph direction to nil ("auto").
| * Use the correct background color when filling nested <divs>Lars Ingebrigtsen2016-02-291-1/+2
| | | | | | | | | | | | | | | | | | * lisp/net/shr.el (shr-face-background): Return the first background, because that's the one that's visible (bug#22680). Backport: (cherry picked from commit cad0bc70558f9c28c808711c5295dec9fc5ad6e5)
| * Make <div> in <li> not insert extra newlinesLars Ingebrigtsen2016-02-291-1/+1
| | | | | | | | | | | | | | | | | | * lisp/net/shr.el (shr-tag-div): Make <div> in <li> not insert extra newlines (bug#19587). Backport: (cherry picked from commit 379a846b8548dc32a9019ef0a37c02f62cd9bad1)
* | Merge from origin/emacs-25John Wiegley2016-03-031-1/+12
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b13cab6 Add a eww command to toggle paragraph direction 4e46128 * nextstep/WISHLIST: Merge into etc/TODO and remove. 9e078e5 Fix char signedness issue in bidi code 064adf6 * lib-src/pop.c (socket_connection): Fix format string. 14060a9 Avoid inflooping in thing-at-point-looking-at 098d47b * lisp/emacs-lisp/derived.el (define-derived-mode): Revert indent change. b5db8e0 etc/PROBLEMS: Mention problems with using file descriptors ec10ef9 * lisp/apropos.el (apropos-variable): Doc fix. (Bug#22813). d2dd614 Remove unneeded workaround in xftfont.c 9b7593c ; * etc/NEWS: Reflect latest changes in saveplace. fde0cd1 * lisp/saveplace.el (save-place-local-mode): New minor mode 06a872b Fix redisplay on a TTY after 'make-frame' 95f5a43 Make double-click-1 work with unbalanced parens in CC Mode. Fixes bug#5560. 7d206fc Input method polish-slash should not use keyboard translation 8be32cf Fix an assertion 040e0d6 Fix 'toggle-save-place' 5244db2 * src/keyboard.c: Don't inadvertently set immediate_echo (bug#22581)
| * Add a eww command to toggle paragraph directionLars Ingebrigtsen2016-02-281-1/+12
| | | | | | | | | | | | | | * lisp/net/eww.el (eww-toggle-paragraph-direction): New command and keystroke. * doc/misc/eww.texi (Advanced): Mention the `D' command.
* | Fix issue of inserting images on some systemsAlain Schneble2016-03-031-1/+1
| | | | | | | | | | | | | | | | * lisp/net/shr.el (shr-tag-img): Construct a non-empty range to pass to shr-image-fetched, to indicate where to insert the image. Fixes the issue introduced with commit 80852f843e69b81618f29cfb9aa4b074946cb3c4 (bug#22789).
* | Support <bdo> and <bdi>Lars Ingebrigtsen2016-03-011-0/+18
| | | | | | | | | | * lisp/net/shr.el (shr-tag-bdo): New function. (shr-tag-bdi): Ditto.
* | Respect <html dir=auto>Lars Ingebrigtsen2016-03-011-1/+3
| | | | | | | | | | * lisp/net/shr.el (shr-tag-html): Respect the "auto" directional HTML setting.
* | Default bidi paragraph direction to nilLars Ingebrigtsen2016-03-011-2/+2
| | | | | | | | | | | | | | * lisp/net/eww.el (eww-display-html): Default bidi rendering to nil, so that possibly more Arabic web pages render correctly (bug#22786). (eww-setup-buffer): Ditto.
* | Use the correct background color when filling nested <divs>Lars Ingebrigtsen2016-02-291-1/+2
| | | | | | | | | | * lisp/net/shr.el (shr-face-background): Return the first background, because that's the one that's visible (bug#22680).
* | Make <div> in <li> not insert extra newlinesLars Ingebrigtsen2016-02-291-1/+1
| | | | | | | | | | * lisp/net/shr.el (shr-tag-div): Make <div> in <li> not insert extra newlines (bug#19587).
* | Move `o' to `O' in shr-mapLars Ingebrigtsen2016-02-241-1/+1
| | | | | | | | | | * lisp/net/shr.el (shr-map): `shr-save-contents' has moved from `o' to `O' to avoid collisions with `image-map'.
* | Move low-level library files from the lisp/gnus directoryLars Ingebrigtsen2016-02-247-0/+3901
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The files moved from lisp/gnus are: auth-source.el -> / compface.el -> /image ecomplete.el -> / flow-fill.el -> /mail gravatar.el -> /image gssapi.el -> /net html2text.el -> /net ietf-drums.el -> /mail mail-parse.el -> /mail mail-prsvr.el -> /mail mailcap.el -> /net plstore.el -> / pop3.el -> /net qp.el -> /mail registry.el -> / rfc1843.el -> /international rfc2045.el -> /mail rfc2047.el -> /mail rfc2231.el -> /mail rtree.el -> / sieve-manage.el -> /net sieve-mode.el -> /net sieve.el -> /net starttls.el -> /net utf7.el -> /international yenc.el -> /mail
* | Merge from origin/emacs-25John Wiegley2016-02-222-17/+24
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a9c48d5 Additional fixes for file notification 6bd9d69 Fix documentation of 'global-disable-point-adjustment' 8c22ac9 ; Spelling fix 2975784 Set file modes of pinentry socket for extra safety 2667b3e Clarify GnuPG version compatibility chapter 5e34c36 Revert "Change the default socket location for pinentry" e19c1c3 Kill off xref--display-history 5698947 Keep the xref buffer visible until the user quits it explicitly e34fbde Change the default socket location for pinentry 5f89658 Mention how to enable pinentry feature db51224 Sync with gnulib aa5a794 Remove `semanticdb-save-all-db-idle' from `auto-save-hook' 2d8b2fd Restore point when writing semantic table to disk 27d3430 Mention pinentry.el in epa manual 5baa001 Fix Bug#22736 7261355 Grammar fix in doc string d0f3b18 Naming fix for consistency 74ec92d Prefer customized value for GnuPG executable ea0b604 Fix memory reservation on MS-Windows c5f72aa Update NextStep readme and add wish list. 6de26a7 Report also result in `file-notify--test-event-handler' 5d17ae7 Improve file-notify-test08-watched-file-in-watched-dir 1cb1268 Fix todo-mode item date editing bugs 1e996cf Fix "[:upper:]" for non-ASCII characters 896f993 Allow customising the article mode cursor behavior 24c1c1d Use pop-to-buffer-same-window in woman.el 2a75f64 New filenotify test for bug#22736 c9bccf7 Report critical battery errors d675db9 Make eww message toggling message clearer 5e0bb40 * lisp/calc/calc-units.el (math-standard-units): Update to 2014 CODATA adjustment. fa8fd65 ; Improve character-folding entries in NEWS 3722a69 Fix bugs in window resizing code 289d5c6 Fix decoding DOS EOL in a unibyte buffer 2abcb06 Correct c-parse-state cache manipulation error. 14aec91 Take advantage of new GnuPG version check function e80c2a7 Make GnuPG version check robuster 15a9464 Fix x-load-color-file pointer signedness 132dbf0 * lisp/time-stamp.el (time-stamp-time-zone): Fix doc string punct. 78ab6f1 Follow convention for greek letter constants. 106b5bb Add Stefan-Boltzmann constant to calc units table. b96baa8 * lisp/calc/calc-units.el (math-build-units-table-buffer): Use special-mode. 5f91cf9 Avoid loading cl-lib for term/xterm.elc, eg in -Q -nw. (Bug#22669) 2d40f7d Fix soffice UserInstallation-URL for Windows b1a3ebe Fix display of <pre> elements 57d0e3d ; * lisp/help-fns.el: Remove outdated comment. 7a0628d ; * admin/make-tarball.txt: Mention cleaning.
| * Set file modes of pinentry socket for extra safetyDaiki Ueno2016-02-221-11/+14
| | | | | | | | | | | | | | * lisp/net/pinentry.el: Require 'cl-lib for `cl-letf'. (pinentry-start): Change the file modes of the socket file to 0700. This is just for extra safety since the parent directory is already protected with `server-ensure-safe-dir'.
| * Revert "Change the default socket location for pinentry"Daiki Ueno2016-02-221-20/+21
| | | | | | | | | | This reverts commit e34fbdee8aca84b98393b06b2450837d175999ca. It turned out that the address is fixed in Pinentry itself.
| * Change the default socket location for pinentryDaiki Ueno2016-02-221-21/+20
| | | | | | | | | | | | | | | | | | * lisp/net/pinentry.el: Require 'cl-lib for `cl-letf'. (pinentry--socket-dir): Change the default from /tmp/emacsXXX to ~/.emacs.d/pinentry. (pinentry-start): Change the file modes of the socket file to 0700. This is just for extra safety since the parent directory is already protected with `server-ensure-safe-dir'.
| * Mention how to enable pinentry featureDaiki Ueno2016-02-221-1/+2
| | | | | | | | | | * etc/NEWS: Mention "gpgconf --reload gpg-agent". * lisp/net/pinentry.el: Likewise.
| * Make eww message toggling message clearerKaushal Modi2016-02-191-5/+4
| | | | | | | | | | | | | | * lisp/net/eww.el (eww-toggle-fonts): Make the message clearer. Copyright-paperwork-exempt: Yes
| * Fix display of <pre> elementsLars Ingebrigtsen2016-02-161-0/+4
| | | | | | | | | | | | * lisp/net/eww.el (eww-display-html): Remove CRLF before parsing so that <pre> elements don't render with ^M at the end of the lines.
* | Fix merge conflicts in network-stream-tests.elLars Ingebrigtsen2016-02-222-86/+130
|\ \
| * | Call the network security manager after doing TLS negotiationLars Ingebrigtsen2016-02-151-21/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/network-stream.el (network-stream-open-tls): Postpone NSM verification when running async. * src/process.c (Fset_process_filter): This function doesn't need to wait. (connect_network_socket): Set the process status to "run" only after TLS negotiation. (wait_for_socket_fds): Take a name parameter for more debugging. (wait_reading_process_output): Don't change status to "run" unless TLS negotiation has finished. (send_process): Wait for the process here instead of send_process_string. (connect_network_socket): Call the network security manager.
| * | Remove some #ifdefs and update documentationLars Ingebrigtsen2016-02-151-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/processes.texi (Network Processes): Remove mention of `dns'. * lisp/net/network-stream.el (open-network-stream): Remove mention of `dns'. * src/process.c (Fset_process_filter) (Fset_process_window_size, Fprocess_contact) (Fprocess_datagram_address, Fset_process_datagram_address) (Fset_network_process_option, Fprocess_send_region) (Fprocess_send_string, Fset_process_coding_system) (Fset_process_filter_multibyte): Remove the #ifdef HAVE_GETADDRINFO_A checks. (Fprocess_send_string): Wait for TLS negotiation. (wait_for_tls_negotiation): New function. (send_process): Remove the TLS boot check. * src/process.c (Fmake_network_process): Ditto.
| * | Only do async DNS if requested with :nowait 'dnsLars Ingebrigtsen2016-02-051-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/processes.texi (Network Processes): Mention the dns value of :nowait. * src/process.c (Fmake_network_process): Only do async DNS if :nowait is `dns'.
| * | Doc fixes and refactorings based on comments from Eli ZaretskiiLars Ingebrigtsen2016-02-032-72/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/processes.texi (Network Processes): Clarify the meaning of :tls-parameters. * lisp/net/gnutls.el (open-gnutls-stream): Clarify :nowait. * lisp/net/gnutls.el (gnutls-boot-parameters): Factor out into own function. (gnutls-negotiate): Use it. (open-gnutls-stream): Ditto. * src/eval.c (vformat_string): Refactor out the printing bits from verror. (verror): Use it. * src/gnutls.c (boot_error): Mark failed processes with the real error message. * src/lisp.h: Declare vformat_string.
| * | Make network connections work again on non-glibc systemsLars Ingebrigtsen2016-02-012-11/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/gnutls.el (open-gnutls-stream): Pass the TLS keywords in directly so that they can be used when doing synchronous DNS on non-synchronous connections. * lisp/net/network-stream.el (open-network-stream): Allow passing in the TLS parameters directly. * src/process.c (conv_numerical_to_lisp): New function to convert numerical addresses to Lisp. (Fmake_network_process): Rework the non-HAVE_ADDRINFO code paths so that they work again. (syms_of_process): Build fix for non-glibc systems.
| * | Clean up dead codeLars Ingebrigtsen2016-02-011-7/+0
| | | | | | | | | | | | * lisp/net/gnutls.el (gnutls-async-sentinel): Remove.
| * | Rework the mechanisms for async GnuTLS connectionsLars Ingebrigtsen2016-01-311-10/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/gnutls.el (open-gnutls-stream): Compute the gnutls-boot parameters and pass them to the process object. (gnutls-negotiate): New parameter :return-keywords that won't connect to anything, just compute the keywords. * lisp/url/url-http.el (url-http): Revert async TLS sentinel hack, which is no longer necessary. * src/gnutls.c (Fgnutls_asynchronous_parameters): Rename from gnutls-mark-process. * src/process.c (connect_network_socket): If we're connecting to an asynchronous TLS socket, complete the GnuTLS boot sequence here. * src/process.h: New parameter gnutls_async_parameters.
| * | Remove debuggingLars Ingebrigtsen2016-01-311-1/+0
| | |
| * | Implement asynchronous GnuTLS connectionsLars Ingebrigtsen2016-01-312-8/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/misc/emacs-gnutls.texi (Help For Developers): Mention the nowait parameter. * lisp/net/gnutls.el (open-gnutls-stream): Allow asynchronous connections with the new nowait parameter. * lisp/net/network-stream.el (network-stream-open-tls): Pass on :nowait to open-gnutls-stream. * lisp/url/url-http.el (url-http): Don't overwrite the sentinel created by open-gnutls-stream. * src/gnutls.c (Fgnutls_mark_process): New function. * src/process.c (send_process): Don't write to GnuTLS sockets that haven't been initialised yed. * src/process.h: New slot gnutls_wait_p.
* | | Rework the image property getter/settersLars Ingebrigtsen2016-02-221-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/display.texi (Defining Images): Document the renamed `image-get/set-property' functions. * lisp/image.el (image--set-property): Rename from image-set-property. (image-property): Declare a setf form. (image-property): Rename from `image-get-property'.
* | | Add a frame around the placeholder image in shrLars Ingebrigtsen2016-02-201-1/+2
| | | | | | | | | | | | | | | * lisp/net/shr.el (shr-make-placeholder-image): Add a frame around the image.
* | | Use placeholder images in shr to avoid text moving aroundLars Ingebrigtsen2016-02-201-19/+92
| | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/shr.el (shr-rescale-image): Pass in width/height from the HTML. (shr-tag-img): Ditto. (shr-string-number): New function. (shr-make-placeholder-image): Make placeholder images. (shr-tag-img): Insert them if we have SVG support.
* | | Use open-network-stream instead of open-protocol-streamLars Ingebrigtsen2016-02-142-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/gnus/nnimap.el: Use open-network-stream instead of open-protocol-stream. * lisp/gnus/nntp.el: Ditto. * lisp/gnus/pop3.el: Ditto. * lisp/gnus/sieve-manage.el: Ditto. * lisp/net/network-stream.el (open-protocol-stream): Make obsolete.
* | | Don't use image-map if it isn't definedLars Ingebrigtsen2016-02-111-3/+2
| | | | | | | | | | | | | | | * lisp/net/shr.el (shr-image-map): Only use image-map as a parent if it's defined (bug#22614).
* | | * lisp/net/shr.el (image-map): Defvar it. (Bug#22614)Wolfgang Jenkner2016-02-101-0/+2
| | |
* | | Allow accessing the image commands via shrLars Ingebrigtsen2016-02-102-4/+16
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/gnus/mm-decode.el (mm-convert-shr-links): Allow accessing the image commands. * lisp/net/shr.el (shr-image-map): New map used for images. (shr-urlify): Don't overwrite image maps when applying URL maps.
* | | -Paul Eggert2016-02-091-7/+9
|\ \ \ | | |/ | |/|