1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-22 21:50:45 -08:00
Commit graph

1828 commits

Author SHA1 Message Date
Lars Magne Ingebrigtsen
48494e063a (shr-make-table-1): Ensure that we don't infloop on degenerate widths. 2013-07-19 16:07:43 +02:00
Michael Albinus
e06ec67f56 * filenotify.el (file-notify--library): Renamed from
`file-notify-support'.  Do not autoload.  Adapt all uses.
(file-notify-supported-p): New defun.

* autorevert.el (auto-revert-use-notify): Use
`file-notify-supported-p' instead of `file-notify-support'.  Adapt
docstring.
(auto-revert-notify-add-watch): Use `file-notify-supported-p'.

* net/tramp.el (tramp-file-name-for-operation):
Add `file-notify-supported-p'.

* net/tramp-sh.el (tramp-sh-handle-file-notify-supported-p):
New defun.
(tramp-sh-file-name-handler-alist): Add it as handler for
`file-notify-supported-p '.

* net/tramp-adb.el (tramp-adb-file-name-handler-alist):
* net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist):
* net/tramp-smb.el (tramp-smb-file-name-handler-alist):
Add `ignore' as handler for `file-notify-*' functions.
2013-07-18 12:03:49 +02:00
Paul Eggert
8abee653a2 Spelling fixes for "does not exists". 2013-07-15 21:39:23 -07:00
Michael Albinus
f6dd8b3647 * net/tramp-sh.el (tramp-sh-handle-vc-registered): Use `ignore-error'. 2013-07-14 20:45:50 +02:00
Michael Albinus
88f6a93389 * net/tramp.el (tramp-methods): Extend docstring.
(tramp-connection-timeout): New defcustom.
(tramp-error-with-buffer): Reset timestamp only when appropriate.
(with-tramp-progress-reporter): Simplify.
(tramp-process-actions): Improve messages.

* net/tramp-gvfs.el (tramp-gvfs-maybe-open-connection):
* net/tramp-sh.el (tramp-maybe-open-connection):
Use `tramp-connection-timeout'.
(tramp-methods) [su, sudo, ksu]: Add method specific timeouts.  (Bug#14808)
2013-07-11 11:52:54 +02:00
Michael Albinus
500dd7a35d Fix last patch. 2013-07-10 17:18:39 +02:00
Michael Albinus
525c5c7704 Improve error messages. (Bug#14808)
* net/tramp.el (tramp-current-connection): New defvar, moved from
tramp-sh.el.
(tramp-message-show-progress-reporter-message): Removed, not
needed anymore.
(tramp-error-with-buffer): Show message in minibuffer.  Discard
input before waiting.  Reset connection timestamp.
(with-tramp-progress-reporter): Improve messages.
(tramp-process-actions): Use progress reporter.  Delete process in
case of error.  Improve messages.

* net/tramp-sh.el (tramp-barf-if-no-shell-prompt): Use
condition-case.  Call `tramp-error-with-buffer' with vector and buffer.
(tramp-current-connection): Removed.
(tramp-maybe-open-connection): The car of
`tramp-current-connection' are the first 3 slots of the vector.
2013-07-10 16:58:26 +02:00
Michael Albinus
12580a07f4 Add comment. 2013-07-10 16:07:17 +02:00
Lars Magne Ingebrigtsen
2d756ae0d8 * net/shr.el (shr-map): Reinstate the `u' key binding
It's been used a while.
2013-07-08 13:19:51 +02:00
Michael Albinus
54a4248627 * net/tramp-sh.el (tramp-sh-file-gvfs-monitor-dir-process-filter):
(tramp-sh-file-inotifywait-process-filter): Handle file names with spaces.
2013-07-06 18:17:16 +02:00
Michael Albinus
47bd930132 Add TODO entry. 2013-07-06 18:12:04 +02:00
Michael Albinus
c074775889 Fix previous patch. 2013-07-05 17:17:16 +02:00
Michael Albinus
ddbdfd6f90 * net/tramp-sh.el (tramp-sh-handle-file-notify-add-watch): Support
both "gvfs-monitor-dir" and "inotifywait".
(tramp-sh-file-inotifywait-process-filter): Renamed from
`tramp-sh-file-notify-process-filter'.
(tramp-sh-file-gvfs-monitor-dir-process-filter)
(tramp-get-remote-gvfs-monitor-dir): New defuns.
2013-07-05 15:34:01 +02:00
Michael Albinus
864c58ca5f * filenotify.el: New package.
* autorevert.el (top): Require filenotify.el.
(auto-revert-notify-enabled): Remove.  Use `file-notify-support'
instead.
(auto-revert-notify-rm-watch, auto-revert-notify-add-watch)
(auto-revert-notify-handler): Use `file-notify-*' functions.

* subr.el (file-notify-handle-event): Move function to filenotify.el.

* net/tramp.el (tramp-file-name-for-operation): Handle
`file-notify-add-watch' and `file-notify-rm-watch'.

* net/tramp-sh.el (tramp-sh-file-name-handler-alist): Add handler
for `file-notify-add-watch' and `file-notify-rm-watch'.
(tramp-process-sentinel): Improve trace.
(tramp-sh-handle-file-notify-add-watch)
(tramp-sh-file-notify-process-filter)
(tramp-sh-handle-file-notify-rm-watch)
(tramp-get-remote-inotifywait): New defuns.
2013-07-04 11:39:36 +02:00
Lars Magne Ingebrigtsen
2fae38e5f9 Fix shr table rendering infloop
* net/shr.el (shr-make-table-1): Add a sanity check that allows
progression on degenerate tables.
(shr-rescale-image): ImageMagick animated images currently doesn't
work.
2013-06-30 15:11:41 +02:00
Ivan Kanis
eadb606887 * net/shr.el (shr-render-region): New function. 2013-06-28 09:57:49 +02:00
Ivan Kanis
75dbaf9d8b * net/eww.el: Autoload `eww-browse-url'. 2013-06-28 09:54:42 +02:00
Lars Magne Ingebrigtsen
7f13406b7a * net/shr.el (add-face-text-property): Removed compat definition. 2013-06-27 11:01:08 +02:00
Leo Liu
99906aa0d9 * net/eww.el (eww-read-bookmarks): Check file size. 2013-06-27 12:27:53 +08:00
Lars Magne Ingebrigtsen
47fd571be7 (eww-bookmark-browse): Don't bug out if it's the only window. 2013-06-26 19:14:46 +02:00
Lars Magne Ingebrigtsen
a285ce999f (eww-add-bookmark): Remove newlines from the title. 2013-06-26 18:59:21 +02:00
Lars Magne Ingebrigtsen
2b4f050643 Add bookmark support to eww
* net/eww.el (eww-mode): Undo isn't necessary in eww buffers,
probably.
(eww-mode-map): Add a menu bar.
(eww-add-bookmark): New command.
(eww-bookmark-mode): New mode and commands.
2013-06-26 18:54:48 +02:00
Lars Magne Ingebrigtsen
23a75d7f59 (eww-mode-map): Add a menu bar. 2013-06-26 15:07:24 +02:00
Lars Magne Ingebrigtsen
843571cba9 Implement a command and mode for displaying and editing cookies 2013-06-26 14:54:33 +02:00
Lars Magne Ingebrigtsen
26bf2b82d8 (eww-render): Move the history reset to the correct buffer. 2013-06-26 00:29:01 +02:00
Lars Magne Ingebrigtsen
8308f18498 * net/eww.el: Rework history traversal.
When going forward/back, put these actions into the history, too, so
that they can be replayed.
2013-06-26 00:24:43 +02:00
Ivan Kanis
bfbc93a1de * net/eww.el (eww-download): New command and keystroke.
* net/eww.el (eww-make-unique-file-name): Create a unique file
name before saving to entering `y' accidentally asynchronously.
2013-06-25 21:50:05 +02:00
Lars Magne Ingebrigtsen
16f74f10ba Use `w' for copying URLs in shr and eww
* net/eww.el (eww-mode-map): Ditto.

* net/eww.el (eww-copy-page-url): Changed name of command.

* net/shr.el (shr-map): Change `shr-copy-url' from `u' to `w' to
be more consistent with Info and dired.
2013-06-25 21:25:14 +02:00
Lars Magne Ingebrigtsen
d3f0f918e9 (eww-forward-url) Allow going forward in the history, too.
This may not be the most intuitive way to implement this.  Perhaps
following links should flush "forwards"...
2013-06-25 17:39:13 +02:00
Lars Magne Ingebrigtsen
e82b099100 (eww) Reimplement the history functionality
* net/eww.el (eww-back-url): Implement the history by stashing all
the data into a list.
2013-06-25 16:59:13 +02:00
Lars Magne Ingebrigtsen
be549ce6f9 * net/eww.el (eww): Start of strings is \\`, not ^. 2013-06-24 19:42:22 +02:00
Ivan Kanis
5196f88a95 * net/shr.el (shr-browse-url): Fix interactive spec. 2013-06-24 19:41:26 +02:00
Ivan Kanis
71d4c19d3d * net/eww.el (eww): Add a trailing slash to domain names. 2013-06-24 19:38:51 +02:00
Lars Magne Ingebrigtsen
bdaa086b77 * net/shr.el (shr-browse-url): Use an external browser if given a prefix. 2013-06-24 16:03:26 +02:00
Lars Magne Ingebrigtsen
0ebd92a3e9 * net/eww.el (eww-external-browser): Moved to shr. 2013-06-24 15:57:35 +02:00
Ivan Kanis
b89fc1569b eww improvements
* net/eww.el (eww): Work more correctly for file: URLs.
(eww-detect-charset): Allow quoted charsets.
(eww-yank-page-url): New command and keystroke.
2013-06-24 15:42:07 +02:00
Lars Magne Ingebrigtsen
f3f9606c7a Implement :max-width/:max-height for (ImageMagic) images
* doc/lispref/display.texi (ImageMagick Images): Mention :max-width and
:max-height.

* lisp/net/shr.el (shr-rescale-image): Use the new
:max-width/:max-height functionality.

* src/image.c (compute_image_size): New function to implement
:max-width and :max-height.
(imagemagick_load_image): Use it.
2013-06-23 21:24:27 +02:00
Ivan Kanis
e854cfc719 * net/eww.el: Bind `C-c C-c' to "submit" in all form keymaps. 2013-06-23 20:29:30 +02:00
Ivan Kanis
f865b4741c eww.el: Add a command to browse using and external browser
(eww-external-browser): New variable.
(eww-mode-map): New keystroke.
(eww-browse-with-external-browser): New command.
2013-06-23 20:27:58 +02:00
Ivan Kanis
a3ca09b9fa eww.el: If given a non-domain text, search for the term
* net/eww.el (eww-search-prefix): New variable.
(eww): Use it.
2013-06-23 20:22:28 +02:00
Lars Magne Ingebrigtsen
d80a808f8d lisp/net/eww.el (eww-update-header-line-format): Quote % characters 2013-06-21 07:52:47 +00:00
Gnus developers
970ad972b9 Merge changes made in Gnus master
2013-06-19  Lars Magne Ingebrigtsen  <larsi@gnus.org>
* net/eww.el (eww-process-text-input): Display passwords as asterisks.
* net/shr.el (shr-make-table-1): Protect against invalid column-spans.

2013-06-19  Tom Tromey  <tromey@redhat.com>
* net/eww.el (eww-top-url): Remove.
(eww-home-url, eww-start-url, eww-contents-url): New defvars.
(eww-render): Set new variables.  Don't set eww-top-url.
(eww-handle-link): Handle "prev", "home", and "contents".
Downcase the rel text.
(eww-top-url): Choose best top URL.

2013-06-19  Lars Magne Ingebrigtsen  <larsi@gnus.org>
* net/eww.el: Rewrite to implement form elements "by hand" instead of
relying in widget.el.  Using widget.el leads to too many
user interface inconsistencies.
(eww-self-insert): Implement entering commands in text fields.
(eww-process-text-input): New function to make text input field editing
work.
(eww-submit): Rewrite to use the new-style form methods.
(eww-select-display): Display the correct selected item.
(eww-change-select): Implement changing the select value.
(eww-toggle-checkbox): Implement radio/checkboxes.
(eww-update-field): Fix compilation error.
(eww-tag-textarea): Implement <textarea>.
* net/shr.el (shr-urlify): Use `keymap' instead of `local-map' so that we
don't shadow mode-specific bindings.
* net/eww.el (eww-browse-url): Don't push stuff onto history if there's
nothing to push.
* net/shr.el (shr-map): Bind [down-mouse-1] to browse URLs.
2013-06-19 22:28:04 +00:00
Michael Albinus
15b263dcf8 * net/tramp-adb.el (tramp-adb-get-toolbox): Remove function, it is
not needed.

* net/tramp-sh.el (tramp-find-shell): Don't set "busybox" property.
2013-06-19 15:14:24 +02:00
Lars Magne Ingebrigtsen
8f5297f7cc Use eww-browse-url' instead of eww'
* net/browse-url.el (browse-url-browser-function):
`eww-browse-url' has the right calling signature, `eww' does not.
2013-06-19 09:37:45 +02:00
Michael Albinus
e59dfb0ecd * net/secrets.el (secrets-struct-secret-content-type): Replace
check of introspection data by a test call of "CreateItem".  Some
servers do not offer introspection.
2013-06-19 08:24:12 +02:00
Gnus developers
924d699786 Merge changes made in Gnus master
2013-06-18 Teodor Zlatanov <tzz@lifelogs.com>
* auth-source.el (auth-source-netrc-parse-entries): Remove debugging.

2013-06-18 Lars Magne Ingebrigtsen <larsi@gnus.org>
* net/shr.el (shr-make-table-1): Implement <td rowspan>.
(shr-table-horizontal-line): Allow nil as a value, and change the default.
(shr-insert-table-ruler): Respect the nil value.

2013-06-18 Tom Tromey <tromey@barimba>
* net/eww.el (eww-next-url, eww-previous-url, eww-up-url, eww-top-url):
  New defvars.
(eww-open-file): New defun.
(eww-render): Initialize new variables.
(eww-display-html): Handle "link" and "a".
(eww-handle-link, eww-tag-link, eww-tag-a): New defuns.
(eww-mode-map): Move "p" to "l".  Bind "p", "n", "t", and "u".
(eww-back-url): Rename from eww-previous-url.
(eww-next-url, eww-previous-url, eww-up-url, eww-top-url): New defuns.
2013-06-18 22:38:34 +00:00
Glenn Morris
4ba54f7d9d Move some files from gnus/ to net/
Ref: http://lists.gnu.org/archive/html/emacs-devel/2013-06/msg00567.html
2013-06-18 14:04:09 -04:00
Michael Albinus
7946c240f9 Fix typo. 2013-06-18 16:16:12 +02:00
Lars Magne Ingebrigtsen
57ff04e08d (browse-url-browser-function): Add `eww' as a possible choice. 2013-06-18 01:59:09 +02:00
Juri Linkov
c048c02287 * lisp/net/webjump.el (webjump-sample-sites): Add DuckDuckGo. 2013-06-18 01:45:14 +03:00