Michael Albinus
a43dc4243c
Complete file name handlers.
...
* net/tramp.el (tramp-handle-set-visited-file-modtime)
(tramp-handle-verify-visited-file-modtime)
(tramp-handle-file-notify-rm-watch): New functions.
(tramp-call-process): Do not bind `default-directory'.
* net/tramp-adb.el (tramp-adb-file-name-handler-alist): Order
alphabetically.
[access-file, add-name-to-file, dired-call-process]:
[dired-compress-file, file-acl, file-notify-rm-watch]:
[file-ownership-preserved-p, file-selinux-context]:
[make-directory-internal, make-symbolic-link, set-file-acl]:
[set-file-selinux-context, set-visited-file-modtime]:
[verify-visited-file-modtime]: Add handler.
(tramp-adb-handle-write-region): Apply `set-visited-file-modtime'.
* net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
[file-notify-add-watch, file-notify-rm-watch]:
[set-file-times, set-visited-file-modtime]:
[verify-visited-file-modtime]: Add handler.
(with-tramp-gvfs-error-message)
(tramp-gvfs-handle-set-visited-file-modtime)
(tramp-gvfs-fuse-file-name): Remove.
(tramp-gvfs-handle-file-notify-add-watch)
(tramp-gvfs-file-gvfs-monitor-file-process-filter): New defuns.
(tramp-gvfs-handle-write-region): Fix error in moving tmpfile.
* net/tramp-sh.el (tramp-sh-file-name-handler-alist): Order
alphabetically.
[file-notify-rm-watch ]: Use default Tramp handler.
[executable-find]: Remove private handler.
(tramp-do-copy-or-rename-file-out-of-band): Do not bind
`default-directory'.
(tramp-sh-handle-executable-find)
(tramp-sh-handle-file-notify-rm-watch): Remove functions.
(tramp-sh-file-gvfs-monitor-dir-process-filter)
(tramp-sh-file-inotifywait-process-filter, tramp-set-remote-path):
Do not use `format' in `tramp-message'.
* net/tramp-smb.el (tramp-smb-file-name-handler-alist)
[file-notify-rm-watch, set-visited-file-modtime]:
[verify-visited-file-modtime]: Add handler.
(tramp-smb-call-winexe): Do not bind `default-directory'.
2013-08-01 13:10:31 +02:00
Dmitry Antipov
3b734d1c00
* lisp/emacs-lisp/re-builder.el (reb-color-display-p):
...
* lisp/files.el (save-buffers-kill-terminal):
* lisp/net/browse-url.el (browse-url):
* lisp/server.el (server-save-buffers-kill-terminal):
* lisp/textmodes/reftex-toc.el (reftex-toc, reftex-toc-revert):
Prefer nil to selected-frame for the first arg of frame-parameter.
2013-07-31 10:52:26 +04:00
Lars Magne Ingebrigtsen
ac38e731d9
Allow talking to STARTTLS servers that have no greeting
...
* net/network-stream.el (open-network-stream): Mention the new
:nogreeting parameter.
(network-stream-open-starttls): Use the :nogreeting parameter.
Fixes: debbugs:14938
2013-07-30 17:11:58 +02:00
Lars Magne Ingebrigtsen
1211de5030
* net/shr.el (shr-mouse-browse-url): Remove and use `shr-browse-url'.
2013-07-30 16:58:37 +02:00
Lars Magne Ingebrigtsen
997798bf65
(eww-setup-buffer): Switching to the buffer seems more natural than popping.
2013-07-30 16:31:51 +02:00
Lars Magne Ingebrigtsen
5a2a77359a
(shr-urlify): Highlight under mouse.
2013-07-30 16:27:04 +02:00
Lars Magne Ingebrigtsen
d50fceab31
* net/shr.el (shr-urlify): Put `follow-link' on URLs.
...
Fixes: debbugs:14815
2013-07-30 16:25:11 +02:00
Michael Albinus
78822e94cb
* net/tramp.el (tramp-use-ssh-controlmaster-options): New customer option.
...
* net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band)
(tramp-maybe-open-connection): Use it.
2013-07-29 09:47:53 +02:00
Michael Albinus
d5d3c58aac
* filenotify.el (file-notify-supported-p):
...
* net/tramp-sh.el (tramp-sh-handle-file-notify-supported-p):
Remove functions.
* autorevert.el (auto-revert-use-notify):
(auto-revert-notify-add-watch):
* net/tramp.el (tramp-file-name-for-operation):
* net/tramp-adb.el (tramp-adb-file-name-handler-alist):
* net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist):
* net/tramp-sh.el (tramp-sh-file-name-handler-alist):
* net/tramp-smb.el (tramp-smb-file-name-handler-alist):
Remove `file-notify-supported-p' entry.
2013-07-24 15:29:15 +02:00
Michael Albinus
80ff0c71ad
* net/tramp.el (tramp-handle-file-notify-add-watch): New defun.
...
* 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): Use it.
2013-07-23 16:06:02 +02:00
Lars Magne Ingebrigtsen
8ba8eec59b
* net/shr.el (shr-mouse-browse-url): New command and keystroke.
...
Fixes: debbugs:14815
2013-07-19 16:57:28 +02:00
Lars Magne Ingebrigtsen
dfbc66e3e4
eww textarea input fixup
...
* net/eww.el (eww-process-text-input): Allow inputting when the
point is at the start of the line, as the properties aren't
front-sticky.
2013-07-19 16:44:16 +02:00
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