Lars Magne Ingebrigtsen
c6b7ccaaf6
Rename :content-type to :format in `create-image'
2013-08-13 22:13:02 +02:00
Lars Magne Ingebrigtsen
21c58ae2a8
Make shr feed Content-Type to the image-creating libraries
...
This finally makes it possible to display icons.
* net/eww.el (eww-display-image): Ditto.
* net/shr.el (shr-parse-image-data): New function to grab both the
data itself and the Content-Type.
(shr-put-image): Use it.
2013-08-13 20:09:50 +02:00
Glenn Morris
af1c6c8493
Fix some custom types
...
* gnus/gnus.el (gnus-valid-select-methods): Fix type.
* gnus/nnimap.el (nnimap-request-articles-find-limit): Fix type, version.
* net/shr.el (shr-table-horizontal-line): Fix custom type.
2013-08-13 00:18:50 -07:00
Lars Magne Ingebrigtsen
3e41a054bf
* net/eww.el (eww-display-html): Ignore coding system errors.
...
One web site uses "utf-8lias" as the coding system.
2013-08-11 23:51:10 +02:00
Stefan Monnier
54bd972f15
* lisp/subr.el (define-error): New function.
...
* doc/lispref/control.texi (Signaling Errors): Refer to define-error.
(Error Symbols): Add `define-error'.
* doc/lispref/errors.texi (Standard Errors): Don't refer to `error-conditions'.
* lisp/progmodes/ada-xref.el (ada-error-file-not-found): Rename from
error-file-not-found and define with define-error.
* lisp/emacs-lisp/cl-lib.el (cl-assertion-failed): Move here from subr.el
and define with define-error.
* lisp/userlock.el (file-locked, file-supersession):
* lisp/simple.el (mark-inactive):
* lisp/progmodes/js.el (js-moz-bad-rpc, js-js-error):
* lisp/progmodes/ada-mode.el (ada-mode-errors):
* lisp/play/life.el (life-extinct):
* lisp/nxml/xsd-regexp.el (xsdre-invalid-regexp, xsdre-parse-error):
* lisp/nxml/xmltok.el (xmltok-markup-declaration-parse-error):
* lisp/nxml/rng-util.el (rng-error):
* lisp/nxml/rng-uri.el (rng-uri-error):
* lisp/nxml/rng-match.el (rng-compile-error):
* lisp/nxml/rng-cmpct.el (rng-c-incorrect-schema):
* lisp/nxml/nxml-util.el (nxml-error, nxml-file-parse-error):
* lisp/nxml/nxml-rap.el (nxml-scan-error):
* lisp/nxml/nxml-outln.el (nxml-outline-error):
* lisp/net/soap-client.el (soap-error):
* lisp/net/gnutls.el (gnutls-error):
* lisp/net/ange-ftp.el (ftp-error):
* lisp/mpc.el (mpc-proc-error):
* lisp/json.el (json-error, json-readtable-error, json-unknown-keyword)
(json-number-format, json-string-escape, json-string-format)
(json-key-format, json-object-format):
* lisp/jka-compr.el (compression-error):
* lisp/international/quail.el (quail-error):
* lisp/international/kkc.el (kkc-error):
* lisp/emacs-lisp/ert.el (ert-test-failed):
* lisp/calc/calc.el (calc-error, inexact-result, math-overflow)
(math-underflow):
* lisp/bookmark.el (bookmark-error-no-filename):
* lisp/epg.el (epg-error): Define with define-error.
2013-08-09 17:22:44 -04:00
Lars Magne Ingebrigtsen
2122cb6dd2
Further shr width computation fixes
...
(shr-make-table-1): Redo last change to fix the real problem in
colspan handling.
2013-08-07 00:05:33 +02:00
Lars Magne Ingebrigtsen
ec6a2d7a5a
shr table rendering touch-ups
...
* net/shr.el (shr-render-td): Remove debugging.
(shr-render-td): Make width computation consistent by defaulting
all zero-width columns to 10 characters. This may not be optimal,
but it's at least consistent.
2013-08-06 23:28:38 +02:00
Dmitry Antipov
290d5b5890
Do not call to `selected-window' where it is assumed by default.
...
Affected functions are `window-minibuffer-p', `window-dedicated-p',
`window-hscroll', `window-width', `window-height', `window-buffer',
`window-frame', `window-start', `window-point', `next-window'
and `window-display-table'.
* abbrev.el (abbrev--default-expand):
* bs.el (bs--show-with-configuration):
* buff-menu.el (Buffer-menu-mouse-select):
* calc/calc.el (calc):
* calendar/calendar.el (calendar-generate-window):
* calendar/diary-lib.el (diary-simple-display, diary-show-all-entries)
(diary-make-entry):
* comint.el (send-invisible, comint-dynamic-complete-filename)
(comint-dynamic-simple-complete, comint-dynamic-list-completions):
* completion.el (complete):
* dabbrev.el (dabbrev-expand, dabbrev--make-friend-buffer-list):
* disp-table.el (describe-current-display-table):
* doc-view.el (doc-view-insert-image):
* ebuff-menu.el (Electric-buffer-menu-mouse-select):
* ehelp.el (with-electric-help):
* emacs-lisp/easy-mmode.el (easy-mmode-define-navigation):
* emacs-lisp/edebug.el (edebug-two-window-p, edebug-pop-to-buffer):
* emacs-lisp/helper.el (Helper-help-scroller):
* emulation/cua-base.el (cua--post-command-handler-1):
* eshell/esh-mode.el (eshell-output-filter):
* ffap.el (ffap-gnus-wrapper):
* help-macro.el (make-help-screen):
* hilit-chg.el (highlight-compare-buffers):
* hippie-exp.el (hippie-expand, try-expand-dabbrev-visible):
* hl-line.el (global-hl-line-highlight):
* icomplete.el (icomplete-simple-completing-p):
* isearch.el (isearch-done):
* jit-lock.el (jit-lock-stealth-fontify):
* mail/rmailsum.el (rmail-summary-scroll-msg-up):
* lisp/mouse-drag.el (mouse-drag-should-do-col-scrolling):
* mpc.el (mpc-tagbrowser, mpc):
* net/rcirc.el (rcirc-any-buffer):
* play/gomoku.el (gomoku-max-width, gomoku-max-height):
* play/landmark.el (landmark-max-width, landmark-max-height):
* play/zone.el (zone):
* progmodes/compile.el (compilation-goto-locus):
* progmodes/ebrowse.el (ebrowse-view/find-file-and-search-pattern):
* progmodes/etags.el (find-tag-other-window):
* progmodes/fortran.el (fortran-column-ruler):
* progmodes/gdb-mi.el (gdb-mouse-toggle-breakpoint-fringe):
* progmodes/verilog-mode.el (verilog-point-text):
* reposition.el (reposition-window):
* rot13.el (toggle-rot13-mode):
* server.el (server-switch-buffer):
* shell.el (shell-dynamic-complete-command)
(shell-dynamic-complete-environment-variable):
* simple.el (insert-buffer, set-selective-display)
(delete-completion-window):
* speedbar.el (speedbar-timer-fn, speedbar-center-buffer-smartly)
(speedbar-recenter):
* startup.el (fancy-splash-head):
* textmodes/ispell.el (ispell-command-loop):
* textmodes/makeinfo.el (makeinfo-compilation-sentinel-region):
* tutorial.el (help-with-tutorial):
* vc/add-log.el (add-change-log-entry):
* vc/compare-w.el (compare-windows):
* vc/ediff-help.el (ediff-indent-help-message):
* vc/ediff-util.el (ediff-setup-control-buffer, ediff-position-region):
* vc/ediff-wind.el (ediff-skip-unsuitable-frames)
(ediff-setup-control-frame):
* vc/emerge.el (emerge-position-region):
* vc/pcvs-util.el (cvs-bury-buffer):
* window.el (walk-windows, mouse-autoselect-window-select):
* winner.el (winner-set-conf, winner-undo): Related users changed.
2013-08-05 18:26:57 +04:00
Dmitry Antipov
12b4c0ea03
Do not call to `selected-frame' where it is assumed by default.
...
Affected functions are `raise-frame', `redraw-frame',
`frame-first-window', `frame-terminal' and `delete-frame'.
* lisp/calendar/appt.el (appt-disp-window):
* lisp/epg.el (epg-wait-for-completion):
* lisp/follow.el (follow-delete-other-windows-and-split)
(follow-avoid-tail-recenter):
* lisp/international/mule.el (set-terminal-coding-system):
* lisp/mail/rmail.el (rmail-mail-return):
* lisp/net/newst-plainview.el (newsticker--buffer-set-uptodate):
* lisp/progmodes/f90.el (f90-add-imenu-menu):
* lisp/progmodes/idlw-toolbar.el (idlwave-toolbar-toggle):
* lisp/server.el (server-switch-buffer):
* lisp/simple.el (delete-completion-window):
* lisp/talk.el (talk):
* lisp/term/xterm.el (terminal-init-xterm-modify-other-keys)
(xterm-turn-on-modify-other-keys, xterm-remove-modify-other-keys):
* lisp/vc/ediff-util.el (ediff-status-info, ediff-show-diff-output):
* lisp/vc/ediff.el (ediff-documentation): Related users changed.
* lisp/frame.el (selected-terminal): Remove the leftover.
2013-08-05 14:35:55 +04:00
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