[Date Prev][Date Next][Thread Prev][][Date Index][Thread Index]

Manually entering queries to `w3m-goto-url'

Function `w3m-goto-url' isn't allowing me to enter a question mark
character, not manually nor by pasting from the X11 clipboard[1]. This
character is used for php and other queries that can be appended to

In w3m.el, there is a defvar for `w3m-url-completion-map', so I tried
manually evaluating:

  #+BEGIN_SRC emacs-lisp
  (setq w3m-url-completion-map (let ((map (make-sparse-keymap)))
  				 (define-key map " " 'self-insert-command)
  				 (define-key map "?" 'self-insert-command)

This allowed the question mark character to be accepted, but I have no
idea if changing the defvar:

a] is the correct solution;
b] would break something somewhere else.

[1] My use-case is a bit weird in that I'm using emacs-nox inside an
    X11 environment, so YMMV.

CA45 09B5 5351 7C11 A9D1  7286 0036 9E45 1595 8BC0