1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-07 12:20:39 -08:00
Commit graph

65660 commits

Author SHA1 Message Date
Alain Schneble
b792ecea17 Make relative URL parsing and resolution consistent with RFC 3986 (bug#22044)
* test/lisp/url/url-parse-tests.el: Add tests covering url-generic-parse-url.
* test/lisp/url/url-expand-tests.el: Add tests covering url-expand-file-name.
* lisp/url/url-parse.el (url-generic-parse-url): Keep empty fragment
information in URL-struct.
* lisp/url/url-parse.el (url-path-and-query): Do not artificially turn empty
path and query into nil path and query, respectively.
* lisp/url/url-expand.el (url-expander-remove-relative-links): Do not turn
empty path into an absolute ("/") path.
* lisp/url/url-expand.el (url-expand-file-name): Properly resolve
fragment-only URIs. Do not just return them unchanged.
* lisp/url/url-expand.el (url-default-expander): An empty path in the relative
reference URI should not drop the last segment.
2015-12-26 00:50:25 +01:00
Lars Ingebrigtsen
0697719d73 Let url use default file modes when copying files
* lisp/url/url-handlers.el (url-copy-file): Use default file
modes when copying files (bug#11400).
2015-12-25 22:36:32 +01:00
Devon Sean McCullough
344303c8d9 Doc fix for url-http
* lisp/url/url-http.el (url-http): Document better return values
  (bug#13187) (tiny change)
2015-12-25 22:21:22 +01:00
Lars Ingebrigtsen
608b15d59d * eww.el (eww-display-html): Support <button> tags (bug#20485). 2015-12-25 21:44:57 +01:00
Lars Ingebrigtsen
a68633e774 Made ffap-url-p a defun instead of a defsubst
* lisp/ffap.el (ffap-url-p): Change from defsusbt to defun,
since there doesn't seem to be much of a reason for it to be a
defsubst (bug#18203).
2015-12-25 20:43:36 +01:00
Lars Ingebrigtsen
65c64058b8 Add a command to view files in the browser to dired
* lisp/dired.el (dired-mode-map): Add the `W' command
(bug#18810).
2015-12-25 20:36:54 +01:00
Lars Ingebrigtsen
b563715a2d Allow http://user:pass@foo/ URLs again
* lisp/url/url-auth.el (url-basic-auth): Allow explicit
user/passwords in URLs (bug#19046).
2015-12-25 20:21:46 +01:00
Lars Ingebrigtsen
596338b3b9 * eww.el (eww-mode-map): Fix command name of eww-toggle-colors. 2015-12-25 19:08:03 +01:00
Samer Masterson
7a7b5b492f Autoload url-insert-buffer-contents
* lisp/url/url-handlers.el: Add autoload cookie so that
`package-list-packages' doesn't bug out (bug#21927) (tiny change)
2015-12-25 19:04:55 +01:00
Lars Ingebrigtsen
6d124eef1c Allow toggling colors in eww
* doc/misc/eww.texi (Basics): Mention "C".

* lisp/net/eww.el (eww-toggle-colors): New command and keystroke.

* lisp/net/shr.el (shr-use-colors): New variable.
(shr-colorize-region): Use it.
2015-12-25 18:50:43 +01:00
Lars Ingebrigtsen
bdaff9c813 Follow meta refresh tags in eww
* eww.el (eww-tag-meta): Follow meta refresh tags (bug#22234).
2015-12-25 18:18:42 +01:00
Lars Ingebrigtsen
a8627008ab More eww file name coding fixes
* eww.el (eww-decode-url-file-name): Use the base coding
system to check for encodability.
2015-12-25 08:31:10 +01:00
Lars Ingebrigtsen
2a0f18d9b6 Always save eww history
* eww.el (eww-setup-buffer): Always save history, even when
called from outside the eww buffer (bug#19638).
2015-12-25 07:56:08 +01:00
Lars Ingebrigtsen
9e089ec8a3 Default web pages to right-to-left
* eww.el (eww-mode): Most web pages are left-to-right, so make
that the default (bug#19801).

* shr.el (shr-tag-html): Respect "dir" attributes
(left-to-right, right-to-left).
2015-12-25 07:45:27 +01:00
Lars Ingebrigtsen
5e56f60695 Make toggling checkboxes work again
* eww.el (eww-update-field): Make toggling checkboxes work
again (bug#21881).
2015-12-25 06:47:28 +01:00
Lars Ingebrigtsen
9f0fd7cb1a Don't store cookies with empty names
* lisp/url/url-cookie.el (url-cookie-store): Refuse to store
cookies with empty names (bug#21936).
2015-12-25 06:33:25 +01:00
Lars Ingebrigtsen
248da292fe Stop rendering HTML before specdlr exhaustion
Fixes: 22117

* shr.el (shr-descend): Stop rendering before we run out of
specpdl room (bug#22117).
2015-12-25 06:19:34 +01:00
Lars Ingebrigtsen
fe4606f93b Use cl-reduce, not reduce. 2015-12-25 06:04:01 +01:00
Lars Ingebrigtsen
cdaf33029d Allow several <tbody> tags in shr
* shr.el (shr-table-body): New function to find the real body
of a table.
(shr-tag-table): Use it to render several <tbody> tags in a
table (bug#22170).
2015-12-25 06:01:19 +01:00
Lars Ingebrigtsen
edfdd0a6cb Make prettier unique file names in eww
(eww-make-unique-file-name): Make unique file names by making
files like foo(2).jpg instead of foo(1)(2).jpg.
2015-12-24 22:47:58 +01:00
Lars Ingebrigtsen
af22a010d8 Decode hex-encoded URLs before using them as file names
* eww.el (eww-decode-url-file-name): New function.
(eww-download-callback): Use it to decode file names before
saving them.
2015-12-24 22:21:24 +01:00
Ashish SHUKLA
60c0f1a18a Add FreeBSD cert bundle
* doc/misc/emacs-gnutls.texi (Help For Users): Document
FreeBSD bundle.

* lisp/net/gnutls.el (gnutls-trustfiles): Add FreeBSD cert bundle.
2015-12-24 18:54:41 +01:00
Lars Ingebrigtsen
45ebbc0301 Allow overriding shr functions from eww
* eww.el (eww-display-html): Allow overriding elements in
`shr-external-rendering-functions'.
2015-12-24 17:34:31 +01:00
Lars Ingebrigtsen
821107d53c Ignore invalid SVG images
* shr.el (shr-tag-svg): Ignore SVG images that have no width
or height, because these can't be displayed by ImageMagick,
anyway.
2015-12-24 14:40:16 +01:00
Lars Ingebrigtsen
b05471e42c shr table rendering fix
* shr.el (shr-tag-table): Allow rendering body-less tables
that have headers.
2015-12-24 14:00:38 +01:00
Sam Steingold
1dcf9a5d2a clipboard should still work even if interprogram-* is disabled
(clipboard-yank): When `interprogram-cut-function' is nil,
bind it to `gui-selection-value' - the default value.
(clipboard-kill-region, clipboard-kill-ring-save): When
`interprogram-paste-function' is nil, bind it to `gui-select-text' -
the default value.
2015-12-22 12:02:30 -05:00
Phillip Lord
138480a97b Fix bootstrap issue with dired-loaddefs
* lisp/dired.el: Autoloads for secondary files loaded optionally.
2015-12-18 21:19:35 +00:00
Phillip Lord
2f55a230d7 dired generate autoloads to non-versioned file.
* lisp/dired.el: Remove autoloads.
* lisp/Makefile.in: Add dired to autogenel.
* lisp/dired-aux.el,lisp/dired-x.el: Update file local.
* test/lisp/dired-tests.el: Add new test.
2015-12-17 20:42:16 +00:00
Phillip Lord
ee85661174 eieio generate autoloads to non-versioned file.
* lisp/Makefile.in: eieio-loaddefs add to autogenel.
* lisp/emacs-lisp/eieio.el,lisp/emacs-lisp/eieio-core.el:
  Remove autoloads.
* lisp/emacs-lisp/eieio-compat.el,lisp/emacs-lisp/eieio-custom.el,
  lisp/emacs-lisp/eieio-opt.el: Update file local.
* test/lisp/emacs-lisp/eieio-tests/eieio-tests.el: New test.
2015-12-17 20:42:15 +00:00
Phillip Lord
459cf7cb92 htmlfontify generate autoload to non-versioned file.
* lisp/Makefile.in: Add htmlfontity-loaddefs to autogenel.
* lisp/hfy-cmap.el: Update file local.
* lisp/htmlfontify.el: Remove autoloads, add require.
* test/lisp/htmlfontify-tests.el: Test autoload functionality.
2015-12-17 20:42:15 +00:00
Phillip Lord
a014779ffa ibuffer generate autoloads to non-versioned file.
* lisp/Makefile.in: Add ibuffer-loaddefs to autogenel.
* lisp/ibuf-ext.el: Update file local.
* lisp/ibuffer.el: Remove autoloads and add a require.
* test/lisp/ibuffer-tests.el: Test that autoload is working.
2015-12-17 20:42:15 +00:00
Phillip Lord
ef69697161 rmail generate autoloads to non-versioned file.
* lisp/Makefile.in: Add rmail-loaddefs.el to autogenel.
* lisp/mail/rmail.el: Remove autoloads, add require.
* lisp/mail/rmailedit.el,lisp/mail/rmailkwd.el,
  lisp/mail/rmailmm.el,lisp/mail/rmailmsc.el,
  lisp/mail/rmailsort.el,lisp/mail/rmailsum.el,
  lisp/mail/undigest.el: Update file-local.
* test/lisp/mail/rmail-tests.el:
2015-12-17 20:42:15 +00:00
Phillip Lord
88492253bf Add autoload-force target.
* lisp/Makefile.in (autoload-force): New target.
2015-12-17 20:42:15 +00:00
Phillip Lord
0eb57910ab ps-print generate autoloads to non versioned file.
* lisp/Makefile.in: Add ps-print-loaddefs.el to autogen list.
* lisp/ps-print.el: Remove autoloads.
* lisp/ps-mule.el: Update file-local.
* test/lisp/ps-print-tests.el: Test autoload functionality.
2015-12-17 20:42:15 +00:00
Phillip Lord
a2e6ed34b6 reftex generate autoloads to non versioned file.
* lisp/Makefile.in: Add reftex-loaddefs to autogen files
* lisp/textmodes/reftex.el: Remove autoloads.
* lisp/textmodes/reftex-auc.el,lisp/textmodes/reftex-cite.el,
  lisp/textmodes/reftex-dcr.el,lisp/textmodes/reftex-global.el,
  lisp/textmodes/reftex-index.el,lisp/textmodes/reftex-parse.el,
  lisp/textmodes/reftex-ref.el,lisp/textmodes/reftex-sel.el,
  lisp/textmodes/reftex-toc.el: Update autoload file-local.
* test/lisp/textmodes/reftex-tests.el: Add test of an autoloaded
  function.
2015-12-17 20:42:14 +00:00
Stefan Monnier
6148555ee5 * lisp/calculator.el (calculator-define-key): Undo last change
Make map argument mandatory instead (bug#22106).
(calculator-add-operators): Pass the argument that's not optional any more.
2015-12-07 09:09:13 -05:00
Artur Malabarba
bd6695f3f5 * lisp/emacs-lisp/let-alist.el: Now an Elpa :core package 2015-12-01 13:56:30 +00:00
Glenn Morris
cb0aa29a9b ; Auto-commit of loaddefs files. 2015-12-01 06:18:24 -05:00
Stefan Monnier
cbfb129555 * lisp/progmodes/which-func.el: Improve disabling the mode
Use lexical-binding.
(which-func-modes, which-func-non-auto-modes, which-func-maxout)
(which-func, which-func-format): Remove redundant :group arg.
(which-func-try-to-enable): New function.
(which-func-ff-hook, which-function-mode): Use it.
(mode-line-misc-info): Add ourselves here instead of in bindings.el.
* lisp/bindings.el (mode-line-misc-info): Remove which-func-mode entry.
2015-11-30 10:52:12 -05:00
Stefan Monnier
c77b816bc3 * lisp/calculator.el (calculator-define-key): Silence warning
...about unknown calculator-mode-map.
2015-11-30 08:02:55 -05:00
Eli Barzilay
f248292ede * lisp/calculator.el: more improvements and bugfixes.
- Mark `calculator-paste-decimals' as obsolete.  (It wasn't having an
  effect anyway.)

- Simplify `calculator-number-to-string' by throwing most of the work
  onto `number-to-string', leaving just some tweaks for decimal inputs.
  This leads to some minor changes, for example, pasting "1x1" in hex
  mode would warn that "x" is ignored and result in "11" (and it wasn't
  done in decimal mode), whereas now it just ignores everything from the
  "x" and on and result in a "1" just like in decimal input mode.  Also,
  overflows are left for `number-to-string' to deal with.

- `calculator-paste' is very simple as a result.

- Extend the simplified `calculator-paste': with a prefix argument it
  pastes a string as if the characters were entered.  This can be used
  to reduce expressions, but note that it's a simple literal operation,
  so precedence can be messed, a number can be paster while entering a
  number, spaces and newlines matter, etc.

- Fix a minor bug where "e+" in hex mode wouldn't use "+" as an
  operator.

- Fix a bug in `calculator-put-value': avoid grouping in the display
  that is used to construct `calculator-curnum'.  This would trigger
  when pasting or getting a value from a register in some radix mode
  with a large enough value.  Another fix: make the output radix equal
  the input one, otherwise numbers could be converted twice.
2015-11-29 17:30:52 -05:00
Eli Barzilay
1b4570bc08 * lisp/calculator.el: Re-do key bindings.
Use a helper function that arranges a parent keymap that binds alternate
case keys so if some letter key is unbound and it's un/shifted version
is, it will get used.  This makes the global-map trickery unnecessary.

Also switch to passing strings that name keys through `kbd'.
2015-11-29 12:49:06 -05:00
Eli Barzilay
e875e68b32 * lisp/calculator.el: improve radix modes
Fix prompt for some input radix with decimal output (eg, "BD" instead of
the incorrect "B="); also, some minor docstring tweaks for these.
2015-11-29 12:49:06 -05:00
Eli Barzilay
5d74a02eb7 * lisp/calculator.el: better reading of register names
Use `register-read-with-preview' with a dynamically bound
`register-alist' and a proper preview function to read register names.
2015-11-29 12:49:06 -05:00
Eli Barzilay
fb9ed79c39 * lisp/calculator.el: General improvements
Use things like `when', `unless', and `push'.

Improve `calculator-last-input' so it doesn't barf when hitting `F1' in
non-electric mode.
2015-11-29 12:49:06 -05:00
Artur Malabarba
8eaba112c9 * lisp/emacs-lisp/package.el: Require url-handlers 2015-11-27 11:02:05 +00:00
Juanma Barranquero
1e4010a128 * lisp/emacs-lisp/package.el: Declare `url-insert-buffer-contents' 2015-11-27 10:22:03 +01:00
Stefan Monnier
82a8ad2049 * lisp/emacs-lisp/eieio.el: Add some default implementations
(standard-class): Mark it obsolete.
(slot-missing): Give it a default implementation.
(destructor): Simplify and mark it obsolete.
(object-print): Give it a default implementation.
(eieio-change-class): Rename from change-class.
(change-class): Redefine as obsolete alias.
2015-11-25 17:03:27 -05:00
Michael Albinus
91cad2b327 Merge from scratch/kqueue
bec57a4 Some final fixes in file notification before merging with master
0247489 Rework file notifications, kqueue has problems with directory monitors
5154781 Continie with pending events
6b490c0 Improve loops in file-notify-test06-many-events
c8e266f Handle more complex rename operation in kqueue
5044bdf New test with a larger number of events.
65ba5a9 Further fixes for kqueue.
13f3508 Code cleanup of kqueue.c
99aa855 Doc changes for kqueue
8deebe1 Finish implementation in kqueue.c
90d6c69 * lisp/filenotify.el (file-notify-add-watch): Fix thinko.
e95b309 More work on kqueue
41d9bd0 Implement directory events
c571fc1 Build fixes for kqueue support.
e0a68f2 Continue kqueue implementation
7543d1c Work on kqueue
e3354e2 Add kqueue support
c6457ce Minor fix to comment indentation and typo in last commit
b92307f linum-mode plays more nicely with other margin-setting extensions
58e6235 * lisp/image-mode.el: Support encrypted file
9375652 * lisp/progmodes/verilog-mode.el (verilog-save-buffer-state): Add backquote
47f83b6 ; ChangeLog.2 fixes
7cc233e * lisp/emacs-lisp/package.el: Fix a decoding issue
5f9153f * lisp/emacs-lisp/package.el: Refactor -with-work-buffer-async
353f5e7 * lisp/progmodes/verilog-mode.el: Use with-silent-modifications
70f1fda ; Auto-commit of ChangeLog files.
ae0653b * CONTRIBUTE: Remove information about feature freeze.
9459456 Merge branch 'release-process-lowercase'
9a4aa0f Document the release process
f8cc14b * admin/release-process: Rename from admin/FOR-RELEASE.
dcd5877 gitmerge: Fix git log command
2ac79ae gitmerge: Try to detect cherry-picks
5f7a2a9 Increment Emacs version on master branch
ed2e7e2 Mention CONTRIBUTE in README
9e00a02 Update verilog-mode.el to 2015-11-09-b121d60-vpo.
138ad3d ; Fix warnings
7126e9a ; Update xref-etags-mode for the latest change
246d660 Use generic dispatch for xref backends
31f6e93 Support rectangular regions for more commands
f103a27 Handle multiple matches on the same line; add highlighting
fe973fc Replace xref-match-bounds with xref-match-length
92a5010 Merge from gnulib
04ac097 Spruce up ftfont.c memory allocation
4c4b520 Port recent XCB changes to 64-bit ‘long int’
4f0ce9c * src/undo.c (run_undoable_change): Now static.
695a6f9 Remove support for ':timeout' from w32 tray notifications
a731c2f * test/automated/simple-test.el: Add test for bug#20698 (bug#21885)
2b4c0c0 * lisp/progmodes/elisp-mode.el: Declare function `project-roots'
66b9f7b * src/undo.c: Small fixes for previous change
2fac30e Add a few more variables to redisplay--variables
04f69f1 * lisp/loadup.el: Enlarge the size of the hash table to 80000.
e221d32 Fix point positioning after transposing with negative arg
35f5afb Fix last change in shr.el
508e77b Fix last change
d60ed3f Another fix for MinGW64 and Cygwin builds due to notifications
805a39b Remove intern calls and XXX comments from Fx_export_frames
9463abf shr: don't invoke unbound function (Bug#21895)
6e5186e * test/automated/keymaps-test.el: Fix test to make it repeatable
0c92826 * test/automated/cl-lib-tests.el (cl-lib-struct-constructors): Small fix
39dbd1c : Tests for undo-auto functionality.
20aa42e ; Merge branch 'fix/no-undo-boundary-on-secondary-buffer-change'
44dfa86 The heuristic that Emacs uses to add an `undo-boundary' has been reworked, as it interacts poorly with functions on `post-command-hook' or `after-change-functions'.
d2f73db Bind [?\S-\ ] to previous line command in Dired-like modes.
c1bc6e5 Fix the MinGW64 and Cygwin-w32 builds
1e363a8 Enable sorting of JSON object keys when encoding
9dd7da9 * test/automated/keymap-tests.el: New test file
aa17de9 Speed up x_real_pos_and_offsets using XCB
a838c83 Enable use of XCB for checking window manager state
c7f2b6a Detect XCB and save a connection handle
e1c27db Reduce some data dependencies between X calls
25e32bd Use color cache for creating bitmap
851be0f Add "^" to the interactive specs of `dired-next/previous-line'
055ca3a Sync with soap-client repository, version 3.0.2
e0f64e7 CC Mode: Respect users' settings of open-paren-in-column-0-is-defun-start.
952395d * lisp/obarray.el: Fix shadowed variables
436d330 Avoid error in submitting a form with EWW
e887f6e ; * doc/lispref/os.texi: Fix indentation of sample code.
51d840a Rename seq-p and map-p to seqp and mapp
23036ba Rename obarray-p to obarrayp
20aea42 Rename obarray-foreach to obarray-map
a3b2101 New file with obarray functions.
9d43941 Implement tray notifications for MS-Windows
2015-11-25 15:24:27 +01:00
Michael Albinus
bec57a486a Some final fixes in file notification before merging with master
* lisp/filenotify.el (file-notify--rm-descriptor): Remove WHAT arg.
(file-notify-callback): Improve check for `stopped' event.  Call
`file-notify-rm-watch' rather than `file-notify--rm-descriptor'.
(file-notify-add-watch): In case FILE is not a directory, call the
file monitor for the kqueue backend.  Otherwise, call the
directory monitor for the upper directory.

* src/inotify.c (inotifyevent_to_event): Extract file name from
watch_object if the event doesn't provide it.
(Finotify_add_watch): Add file name to watch_object.

* test/automated/file-notify-tests.el (file-notify--test-timeout):
Use different timeouts for different libraries.
(file-notify--test-with-events): Suppress lock files.  Flush
outstanding events before running the body.
(file-notify-test02-events, file-notify-test04-file-validity): Do
not skip cygwin tests.  Add additional test for file creation.
Adapt expected result for different backends.
(file-notify-test03-autorevert): Some of the tests don't work for
w32notify.
(file-notify-test06-many-events): Rename into both directions.
2015-11-25 15:07:12 +01:00