unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* keyword face for function [dump]
@ 2020-07-24  2:53 Emanuel Berg via Users list for the GNU Emacs text editor
  0 siblings, 0 replies; only message in thread
From: Emanuel Berg via Users list for the GNU Emacs text editor @ 2020-07-24  2:53 UTC (permalink / raw)
  To: help-gnu-emacs

See dump [1] of this piece of code:

(defun w3m-kill-url-dwim ()
  (interactive)
  ;; ask on gmane.emacs.help - why is `w3m-anchor' in
  ;; font-lock-keyword-face 2 lines below? (line 65)
  ;; dump: https://dataswamp.org/~incal/figures/emacs/face.png
  (let*((url (or (w3m-anchor) (thing-at-point 'url) w3m-current-url))
        (cmd (format "echo \"%s\" | xi" url)) )
    (kill-new url)
    (shell-command cmd) )
  (message "%s" (current-kill 0)) ) ; [2]


[1] https://dataswamp.org/~incal/figures/emacs/face.png

[2] https://dataswamp.org/~incal/emacs-init/w3m/w3m-my.el

-- 
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-07-24  2:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-24  2:53 keyword face for function [dump] Emanuel Berg via Users list for the GNU Emacs text editor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).