New feature: copy links to OS clipboard #12
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
IMPORTANT: See below for 'issues'...
New function w3m--send-to-gui-clipboard
New defcustom w3m-gui-clipboard-commands
Feature applied to existing functions that copy link
information to the emacs kill-ring.
New docstrings for some functions
ISSUES
BUG! I'm still having trouble getting defcustom to do
what I want. In this case, customize-variable
improperly displays the car of each cons cell as the
first radio button on the list.
MISSING INFORMATION! I'm only familiar with linux, so I
wasn't able to populate w3m-gui-clipboard-commands for
other operating systems. Even if someone gives me a set
of command strings, I have no way of testing them.
Tsuchiya-san recently expressed interest in a 'private
browsing' mode for emacs-w3m.
This feature does make browsing a little less private
in that anything copied to the emacs kill-ring is
shared with the OS clipboard.
I can easily set a configuration value for the
feature, but it might be more forward-thinking to
label that value generically as something like
w3m-private-mode instead of something specific like
w3m-kill-ring-copies-to-os-clipboard.
It might just be best to wait until there exists a
more detailed specification or expectation of what
some private-mode would offer. For example, it may be
decided to allow the copies, and upon exit to clear
both the emacs kill-ring and the OS clipboard.