Skip to content

Commit

Permalink
Make xwidget-webkit-enable-plugins a defcustom
Browse files Browse the repository at this point in the history
* lisp/xwidget.el (xwidget-webkit-enable-plugins): Make into
defcustom.
  • Loading branch information
larsmagne committed Aug 22, 2021
1 parent ff2124d commit 98e1752
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions etc/NEWS
Expand Up @@ -3840,7 +3840,10 @@ The new variable 'xwidget-webkit-download-dir' says where to download to.
'xwidget-webkit-clone-and-split-below',
'xwidget-webkit-clone-and-split-right'.

---
*** New variable 'xwidget-webkit-enable-plugins'.
If non-nil, enable plugins in xwidget. (This is only available on
macOS.)

+++
** On macOS, Emacs can now load dynamic modules with a ".dylib" suffix.
Expand Down
6 changes: 4 additions & 2 deletions lisp/xwidget.el
Expand Up @@ -302,9 +302,11 @@ XWIDGET instance, XWIDGET-EVENT-TYPE depends on the originating xwidget."

(defvar bookmark-make-record-function)
(when (memq window-system '(mac ns))
(defvar xwidget-webkit-enable-plugins nil
(defcustom xwidget-webkit-enable-plugins nil
"Enable plugins for xwidget webkit.
If non-nil, plugins are enabled. Otherwise, disabled."))
If non-nil, plugins are enabled. Otherwise, disabled."
:type 'boolean
:version "28.1"))

(define-derived-mode xwidget-webkit-mode
special-mode "xwidget-webkit" "Xwidget webkit view mode."
Expand Down

0 comments on commit 98e1752

Please sign in to comment.