Skip to content

Instantly share code, notes, and snippets.

@hannes-brt
Created November 26, 2010 19:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hannes-brt/717152 to your computer and use it in GitHub Desktop.
Save hannes-brt/717152 to your computer and use it in GitHub Desktop.
URL escapes and unescapes strings
;; Interactive functions to hexify and unhexify urls
(defun hexify-region (start end)
(interactive "r")
(let ((hex-string (url-hexify-string
(filter-buffer-substring start end))))
(delete-region start end)
(insert hex-string)))
(defun unhexify-region (start end)
(interactive "r")
(let ((hex-string (url-unhex-string
(filter-buffer-substring start end))))
(delete-region start end)
(insert hex-string)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment