1. 27 Feb, 2019 1 commit
  2. 15 Feb, 2019 1 commit
  3. 08 Feb, 2019 3 commits
    • Eli Zaretskii's avatar
      Minor fixes for last change · 24905e92
      Eli Zaretskii authored
      * etc/NEWS: Announce the change in EWW download behavior.
      
      * lisp/net/eww.el (eww-download): Doc fix.  (Bug#34291)
      24905e92
    • Nick Drozd's avatar
      Download of URL in EWW falls back on current URL · 51e6e069
      Nick Drozd authored
      * lisp/net/eww.el (eww-download): If there's no URL at point,
      download the current URL instead.  Previous behavior was to
      signal an error if there was no URL at point.  (Bug#34291)
      * doc/misc/eww.texi (Basics): Update documentation.
      51e6e069
    • Nick Drozd's avatar
      Fix downloading of URLs that end in a slash · 46095a7d
      Nick Drozd authored
      * lisp/net/eww.el (eww-download-callback): Fix download URL
      file name.  Previously this wasn't handling download URLs
      correctly, resulting in all downloaded pages being named
      "!", "!(1)", etc.  (Bug#34291)
      46095a7d
  4. 01 Jan, 2019 1 commit
  5. 24 Sep, 2018 1 commit
    • Paul Eggert's avatar
      file-attributes cleanup · 662bee7d
      Paul Eggert authored
      Mostly, this replaces magic-number calls like (nth 4 A) with
      more-informative calls like (file-attribute-access-time A).
      It also fixes some documentation and minor timestamp coding
      issues that I noticed while looking into this.
      * doc/lispref/files.texi (File Attributes):
      * lisp/files.el (file-attribute-size)
      (file-attribute-inode-number, file-attribute-device-number):
      * src/dired.c (Fdirectory_files_and_attributes)
      (Ffile_attributes):
      Mention which attributes must be integers, or nonnegative integers,
      as opposed to merely being numbers.  Remove no-longer-correct
      talk about representing large integers as conses of integers.
      * doc/lispref/files.texi (Magic File Names):
      * doc/misc/gnus.texi (Low-level interface to the spam-stat dictionary):
      * lisp/autorevert.el (auto-revert-find-file-function)
      (auto-revert-tail-mode, auto-revert-handler):
      * lisp/auth-source.el (auth-source-netrc-parse):
      * lisp/cedet/ede/files.el (ede--inode-for-dir):
      * lisp/cedet/semantic/db-file.el (object-write):
      * lisp/cedet/semantic/db-mode.el (semanticdb-kill-hook):
      * lisp/cedet/semantic/db.el (semanticdb-needs-refresh-p)
      (semanticdb-synchronize):
      * lisp/cedet/srecode/table.el (srecode-mode-table-new):
      * lisp/desktop.el (desktop-save, desktop-read):
      * lisp/dired-aux.el (dired-file-set-difference)
      (dired-do-chxxx, dired-do-chmod, dired-copy-file-recursive)
      (dired-create-files):
      * lisp/dired.el (dired-directory-changed-p, dired-readin):
      * lisp/dos-w32.el (w32-direct-print-region-helper):
      * lisp/emacs-lisp/autoload.el (autoload-generate-file-autoloads)
      (autoload-find-destination, update-directory-autoloads):
      * lisp/emacs-lisp/shadow.el (load-path-shadows-same-file-or-nonexistent):
      * lisp/epg.el (epg--start, epg-wait-for-completion):
      * lisp/eshell/em-ls.el (eshell-ls-filetype-p)
      (eshell-ls-applicable, eshell-ls-size-string)
      (eshell-ls-file, eshell-ls-dir, eshell-ls-files)
      (eshell-ls-entries):
      * lisp/eshell/em-pred.el (eshell-predicate-alist)
      (eshell-pred-file-type, eshell-pred-file-links)
      (eshell-pred-file-size):
      * lisp/eshell/em-unix.el (eshell-shuffle-files, eshell/cat)
      (eshell-du-sum-directory, eshell/du):
      * lisp/eshell/esh-util.el (eshell-read-passwd)
      (eshell-read-hosts):
      * lisp/files.el (remote-file-name-inhibit-cache)
      (find-file-noselect, insert-file-1, dir-locals-find-file)
      (dir-locals-read-from-dir, backup-buffer)
      (file-ownership-preserved-p, copy-directory)
      (read-file-modes):
      * lisp/find-lisp.el (find-lisp-format):
      * lisp/gnus/gnus-agent.el (gnus-agent-unfetch-articles)
      (gnus-agent-read-agentview, gnus-agent-expire-group-1)
      (gnus-agent-request-article, gnus-agent-regenerate-group)
      (gnus-agent-update-files-total-fetched-for)
      (gnus-agent-update-view-total-fetched-for):
      * lisp/gnus/gnus-cache.el (gnus-cache-read-active)
      (gnus-cache-update-file-total-fetched-for)
      (gnus-cache-update-overview-total-fetched-for):
      * lisp/gnus/gnus-cloud.el (gnus-cloud-file-new-p):
      * lisp/gnus/gnus-score.el (gnus-score-score-files):
      * lisp/gnus/gnus-start.el (gnus-save-newsrc-file)
      (gnus-master-read-slave-newsrc):
      * lisp/gnus/gnus-sum.el (gnus-summary-import-article):
      * lisp/gnus/gnus-util.el (gnus-file-newer-than)
      (gnus-cache-file-contents):
      * lisp/gnus/mail-source.el (mail-source-delete-old-incoming)
      (mail-source-callback, mail-source-movemail):
      * lisp/gnus/nneething.el (nneething-create-mapping)
      (nneething-make-head):
      * lisp/gnus/nnfolder.el (nnfolder-read-folder):
      * lisp/gnus/nnheader.el (nnheader-file-size)
      (nnheader-insert-nov-file):
      * lisp/gnus/nnmail.el (nnmail-activate):
      * lisp/gnus/nnmaildir.el (nnmaildir--group-maxnum)
      (nnmaildir--new-number, nnmaildir--update-nov)
      (nnmaildir--scan, nnmaildir-request-scan)
      (nnmaildir-request-update-info)
      (nnmaildir-request-expire-articles):
      * lisp/gnus/nnmh.el (nnmh-request-list-1)
      (nnmh-request-expire-articles, nnmh-update-gnus-unreads):
      * lisp/gnus/nnml.el (nnml-request-expire-articles):
      * lisp/gnus/spam-stat.el (spam-stat-save, spam-stat-load)
      (spam-stat-process-directory, spam-stat-test-directory):
      * lisp/ido.el (ido-directory-too-big-p)
      (ido-file-name-all-completions):
      * lisp/image-dired.el (image-dired-get-thumbnail-image)
      (image-dired-create-thumb-1):
      * lisp/info.el (info-insert-file-contents):
      * lisp/ls-lisp.el (ls-lisp-insert-directory)
      (ls-lisp-handle-switches, ls-lisp-classify-file)
      (ls-lisp-format):
      * lisp/mail/blessmail.el:
      * lisp/mail/feedmail.el (feedmail-default-date-generator)
      (feedmail-default-message-id-generator):
      * lisp/mail/mailabbrev.el (mail-abbrevs-sync-aliases)
      (mail-abbrevs-setup):
      * lisp/mail/mspools.el (mspools-size-folder):
      * lisp/mail/rmail.el (rmail-insert-inbox-text):
      * lisp/mail/sendmail.el (sendmail-sync-aliases):
      * lisp/mh-e/mh-alias.el (mh-alias-tstamp):
      * lisp/net/ange-ftp.el (ange-ftp-parse-netrc)
      (ange-ftp-write-region, ange-ftp-file-newer-than-file-p)
      (ange-ftp-cf1):
      * lisp/net/eudcb-mab.el (eudc-mab-query-internal):
      * lisp/net/eww.el (eww-read-bookmarks):
      * lisp/net/netrc.el (netrc-parse):
      * lisp/net/newst-backend.el (newsticker--image-get):
      * lisp/nxml/rng-loc.el (rng-get-parsed-schema-locating-file):
      * lisp/obsolete/fast-lock.el (fast-lock-save-cache):
      * lisp/obsolete/vc-arch.el (vc-arch-state)
      (vc-arch-diff3-rej-p):
      * lisp/org/ob-eval.el (org-babel--shell-command-on-region):
      * lisp/org/org-attach.el (org-attach-commit):
      * lisp/org/org-macro.el (org-macro-initialize-templates):
      * lisp/org/org.el (org-babel-load-file)
      (org-file-newer-than-p):
      * lisp/org/ox-html.el (org-html-format-spec):
      * lisp/org/ox-publish.el (org-publish-find-date)
      (org-publish-cache-ctime-of-src):
      * lisp/pcmpl-gnu.el (pcomplete/tar):
      * lisp/pcmpl-rpm.el (pcmpl-rpm-packages):
      * lisp/play/cookie1.el (cookie-snarf):
      * lisp/progmodes/cmacexp.el (c-macro-expansion):
      * lisp/ps-bdf.el (bdf-file-mod-time):
      * lisp/server.el (server-ensure-safe-dir):
      * lisp/simple.el (shell-command-on-region):
      * lisp/speedbar.el (speedbar-item-info-file-helper)
      (speedbar-check-obj-this-line):
      * lisp/thumbs.el (thumbs-cleanup-thumbsdir):
      * lisp/time.el (display-time-mail-check-directory)
      (display-time-file-nonempty-p):
      * lisp/url/url-cache.el (url-is-cached):
      * lisp/url/url-file.el (url-file-asynch-callback):
      * lisp/vc/diff-mode.el (diff-delete-if-empty):
      * lisp/vc/pcvs-info.el (cvs-fileinfo-from-entries):
      * lisp/vc/vc-bzr.el (vc-bzr-state-heuristic):
      * lisp/vc/vc-cvs.el (vc-cvs-checkout-model)
      (vc-cvs-state-heuristic, vc-cvs-merge-news)
      (vc-cvs-retrieve-tag, vc-cvs-parse-status, vc-cvs-parse-entry):
      * lisp/vc/vc-hg.el (vc-hg--slurp-hgignore-1)
      (vc-hg--ignore-patterns-valid-p)
      (vc-hg--cached-dirstate-search, vc-hg-state-fast):
      * lisp/vc/vc-hooks.el (vc-after-save):
      * lisp/vc/vc-rcs.el (vc-rcs-workfile-is-newer):
      * lisp/vc/vc-svn.el (vc-svn-merge-news, vc-svn-parse-status):
      * lisp/vc/vc.el (vc-checkout, vc-checkin, vc-revert-file):
      * lisp/xdg.el (xdg-mime-apps):
      Prefer (file-attribute-size A) to (nth 7 A), and similarly
      for other file attributes accessors.
      * doc/lispref/files.texi (File Attributes):
      * doc/lispref/intro.texi (Version Info):
      * doc/lispref/os.texi (Idle Timers):
      * lisp/erc/erc.el (erc-string-to-emacs-time):
      * lisp/files.el (file-attribute-access-time)
      (file-attribute-modification-time)
      (file-attribute-status-change-time):
      * lisp/net/tramp-compat.el:
      (tramp-compat-file-attribute-modification-time)
      (tramp-compat-file-attribute-size):
      * src/buffer.c (syms_of_buffer):
      * src/editfns.c (Fget_internal_run_time):
      * src/fileio.c (Fvisited_file_modtime)
      (Fset_visited_file_modtime):
      * src/keyboard.c (Fcurrent_idle_time):
      * src/process.c (Fprocess_attributes):
      Defer implementation details about timestamp format to the
      section that talks about timestamp format, to make it easier
      to change the documentation later if timestamp formats are
      extended.
      * lisp/gnus/gnus-util.el (gnus-file-newer-than):
      * lisp/speedbar.el (speedbar-check-obj-this-line):
      * lisp/vc/vc-rcs.el (vc-rcs-workfile-is-newer):
      Prefer time-less-p to doing it by hand.
      * lisp/ls-lisp.el (ls-lisp-format): Inode numbers are no longer conses.
      * lisp/vc/vc-bzr.el (vc-bzr-state-heuristic):
      Use eql, not eq, to compare integers that might be bignums.
      * lisp/org/ox-publish.el (org-publish-cache-ctime-of-src):
      Prefer float-time to doing time arithmetic by hand.
      662bee7d
  6. 03 May, 2018 1 commit
    • Basil L. Contovounesios's avatar
      Fix off-by-one history pruning (bug#31211) · f2c74543
      Basil L. Contovounesios authored
      * lisp/subr.el (add-to-history): Clarify docstring.
      Protect against negative history-length and unnecessary variable
      modification, as per read_minibuf.
      
      * lisp/ido.el (ido-record-command):
      * lisp/international/mule-cmds.el (deactivate-input-method):
      (set-language-environment-input-method):
      * lisp/isearch.el (isearch-done):
      * lisp/minibuffer.el (read-file-name-default):
      * lisp/net/eww.el (eww-save-history):
      * lisp/simple.el (edit-and-eval-command, repeat-complex-command):
      (command-execute, kill-new, push-mark):
      * src/callint.c (Fcall_interactively):
      * src/minibuf.c (read_minibuf): Delegate to add-to-history.
      
      * test/lisp/simple-tests.el (command-execute-prune-command-history):
      * test/src/callint-tests.el
      (call-interactively-prune-command-history): New tests.
      f2c74543
  7. 17 Apr, 2018 1 commit
    • Basil L. Contovounesios's avatar
      Modernise face specs and set version tags in eww/shr · 3dfec182
      Basil L. Contovounesios authored
      * lisp/net/shr.el (shr-strike-through, shr-link, shr-selected-link):
      Set :version tag (bug#31200).
      
      * lisp/net/eww.el (eww-form-text, eww-form-textarea):
      * lisp/net/shr.el (shr-strike-through, shr-link, shr-selected-link):
      Use (DISPLAY . PLIST) face spec syntax as recommended in
      '(elisp) Defining Faces'.
      3dfec182
  8. 15 Apr, 2018 1 commit
  9. 13 Apr, 2018 7 commits
    • Lars Ingebrigtsen's avatar
      Don't bind image commands on eww non-image links · 0263216e
      Lars Ingebrigtsen authored
      * lisp/net/eww.el (eww-link-keymap): Only inherit the normal shr
      keymap.
      (eww-image-link-keymap): New keymap with the image bindings.
      (eww-tag-a): Use the appropriate one on links (bug#30148).
      0263216e
    • Lars Ingebrigtsen's avatar
      Use a separate history for the eww prompt · 013bb209
      Lars Ingebrigtsen authored
      * lisp/net/eww.el (eww-prompt-history): A separate history
      variable for the interactive eww prompt.
      (eww): Use it.
      013bb209
    • Peder O. Klingenberg's avatar
      Change gnutls-verify-error to be first-match · 9822a6a5
      Peder O. Klingenberg authored
      * doc/misc/url.texi (Customization): Describe the new user
      option url-lastloc-privacy-level.
      
      * lisp/net/eww.el (eww-render): Set url-current-lastloc to the
      url we are rendering, to get the referer header right on
      subsequent requests.
      
      * lisp/url/url-http.el (url-http--get-referer): New function
      to determine which referer to send, if any, considering the
      users privacy settings and the target url we are visiting.
      (url-http-referer): New variable keeping track of the referer
      computed by url-http--get-referer
      (url-http-create-request): Use url-http-referer instead of the
      optional argument to set up the referer header.  Leave
      checking of privacy settings to url-http--get-referer.
      (url-http): Set up url-http-referer by using
      url-http--get-referer.
      
      * lisp/url/url-queue.el (url-queue): New struct member
      context-buffer for keeping track of the context a queued job
      started from.
      (url-queue-retrieve): Store the current buffer in the queue
      object.
      (url-queue-start-retrieve): Make sure url-retrieve is called
      in the context of the original buffer, if available.
      
      * lisp/url/url-util.el (url-domain): New function to determine
      the domain of a given URL.
      
      * lisp/url/url-vars.el (url-current-lastloc): New variable to
      keep track of the desired "last location" (referer header).
      (url-lastloc-privacy-level): New custom setting for more
      fine-grained control over how lastloc (referer) is sent to
      servers (Bug#27012).
      9822a6a5
    • Lars Ingebrigtsen's avatar
      Make #anchors work again in eww · fa416937
      Lars Ingebrigtsen authored
      * lisp/net/eww.el (eww-render): When we have a #link link, then
      url.el will say that we have a redirect to a non-#link link, so
      get the anchor before url.el mangles the URL (bug#28441).
      (eww-display-html): ... and don't get it here, because it's gone
      by now.
      
      Test URL: http://www.gnu.org/s/hyperbole/#summary
      fa416937
    • Lars Ingebrigtsen's avatar
      When opening external links in eww, blink the link · 4f4c7b80
      Lars Ingebrigtsen authored
      * lisp/net/eww.el (eww-follow-link): Ditto.
      
      * lisp/net/shr.el (shr-selected-link): New face (bug#25096).
      (shr--blink-link): New function to blink links.
      (shr--current-link-region): New utility function.
      (shr-browse-url): Use it to blink external links.
      
      Blinking the link allows the user to get immediate feedback that the
      action has been performed.  Opening the external browser may take a
      while, and may not be obvious that is going on.
      4f4c7b80
    • Lars Ingebrigtsen's avatar
      Remove unused local variable · 93678bff
      Lars Ingebrigtsen authored
      93678bff
    • Lars Ingebrigtsen's avatar
      Make eww render <select> elements again · 45c4c03f
      Lars Ingebrigtsen authored
      * lisp/net/eww.el (eww-tag-select): Actually render <select>
      elements (bug#25703).
      45c4c03f
  10. 12 Apr, 2018 1 commit
  11. 02 Mar, 2018 1 commit
    • Eli Zaretskii's avatar
      Fix downloading non-text files in EWW · 04da8f4c
      Eli Zaretskii authored
      * lisp/net/eww.el (eww-download-callback): Bind
      coding-system-for-read to 'no-conversion', to avoid any code- or
      EOL-conversions in downloaded files.  (Bug#30664)
      04da8f4c
  12. 01 Jan, 2018 1 commit
  13. 23 Dec, 2017 1 commit
  14. 13 Sep, 2017 1 commit
    • Paul Eggert's avatar
      Prefer HTTPS to FTP and HTTP in documentation · bc511a64
      Paul Eggert authored
      Most of this change is to boilerplate commentary such as license URLs.
      This change was prompted by ftp://ftp.gnu.org's going-away party,
      planned for November.  Change these FTP URLs to https://ftp.gnu.org
      instead.  Make similar changes for URLs to other organizations moving
      away from FTP.  Also, change HTTP to HTTPS for URLs to gnu.org and
      fsf.org when this works, as this will further help defend against
      man-in-the-middle attacks (for this part I omitted the MS-DOS and
      MS-Windows sources and the test tarballs to keep the workload down).
      HTTPS is not fully working to lists.gnu.org so I left those URLs alone
      for now.
      bc511a64
  15. 12 Sep, 2017 1 commit
    • Mark Oteiza's avatar
      Update uses of if-let and when-let · 370d0e7a
      Mark Oteiza authored
      * 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.
      370d0e7a
  16. 04 Sep, 2017 1 commit
    • Mark Oteiza's avatar
      Hexify strings in EWW search queries · 132f4472
      Mark Oteiza authored
      Previously, inputting "cats & dogs" would lose dogs because the
      ampersand signifies a query parameter.  Instead, hexify each word while
      preserving quotes with split-string.
      * lisp/net/eww.el (eww--dwim-expand-url): Join hexified words together
      with + separators, instead of replacing whitespace with +.
      132f4472
  17. 02 Jul, 2017 1 commit
  18. 05 Apr, 2017 1 commit
    • Tom Tromey's avatar
      enable mhtml-mode by default · 59409f40
      Tom Tromey authored
      * lisp/files.el (auto-mode-alist): Reference mhtml-mode, not
      html-mode.
      (magic-fallback-mode-alist): Likewise.
      * lisp/net/eww.el (eww-view-source): Use mthml-mode.
      59409f40
  19. 11 Mar, 2017 1 commit
  20. 18 Feb, 2017 1 commit
  21. 28 Jan, 2017 1 commit
  22. 27 Jan, 2017 1 commit
  23. 26 Jan, 2017 1 commit
  24. 24 Jan, 2017 2 commits
  25. 16 Jan, 2017 1 commit
  26. 01 Jan, 2017 1 commit
  27. 04 Nov, 2016 1 commit
  28. 02 Nov, 2016 2 commits
    • Mark Oteiza's avatar
      Revert change to eww-suggest-uris · 62a6e28e
      Mark Oteiza authored
      The introduced append is ugly and can yield '(nil); doing delq on it
      would be hacks on hacks.
      * lisp/net/eww.el: Require cl-lib at run time.
      (eww-suggest-uris): Restore eww-current-url, reverting previous change.
      (eww): Remove erroneous append.
      (eww-open-in-new-buffer): Check if the return from eww-suggested-uris is
      equal to eww-current-url, which is nil anyways if we are not in an EWW
      buffer.
      62a6e28e
    • Mark Oteiza's avatar
      Add eww-open-in-new-buffer to EWW · bbc218b9
      Mark Oteiza authored
      * doc/misc/eww.texi (Basic): Document new command and key.
      * etc/NEWS: Mention new key and its purpose.
      * lisp/net/eww.el (eww-suggest-uris): Remove eww-current-url.
      (eww): Append (eww-current-url) to the prompt defaults.
      (eww-open-in-new-buffer): New command.
      (eww-mode-map): Bind it and add a menu item.
      bbc218b9
  29. 05 May, 2016 1 commit
  30. 01 Mar, 2016 1 commit