unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* shr-copy-url: arg misnamed?
@ 2018-09-22 16:12 T.V Raman
  2018-09-23 20:04 ` Noam Postavsky
  2018-09-23 20:57 ` Stefan Monnier
  0 siblings, 2 replies; 8+ messages in thread
From: T.V Raman @ 2018-09-22 16:12 UTC (permalink / raw)
  To: emacs-devel

Should the arg in this function be renamed?

The name "url" is confusing, and is likely being shadowed 
(defun shr-copy-url (url)
  "Copy the URL under point to the kill ring.
If IMAGE-URL (the prefix) is non-nil, or there is no link under
point, but there is an image under point then copy the URL of the
image under point instead."
  (interactive (list (shr-url-at-point current-prefix-arg)))
  (if (not url)
      (message "No URL under point")
    (setq url (url-encode-url url))
    (kill-new url)
    (message "Copied %s" url)))
-- 

-- 



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-09-25 14:27 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-22 16:12 shr-copy-url: arg misnamed? T.V Raman
2018-09-23 20:04 ` Noam Postavsky
2018-09-23 23:45   ` T.V Raman
2018-09-25  0:42     ` Noam Postavsky
2018-09-25  7:31     ` Andreas Schwab
2018-09-25 13:55       ` T.V Raman
2018-09-25 14:27         ` Noam Postavsky
2018-09-23 20:57 ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).