* lisp/thingatpt.el (thing-at-point): Accept optional second argument
authorSam Steingold <sds@gnu.org>
Wed, 8 May 2013 15:13:25 +0000 (11:13 -0400)
committerSam Steingold <sds@gnu.org>
Wed, 8 May 2013 15:13:25 +0000 (11:13 -0400)
commit72d3cfca0a6a0dafaaa0fa271ac1934c9f836134
tree726d4b5d5f00263c95e97dbd1bb65ea3d8bc6ef8
parent5cb15713d8575fae940c9f177874ea98e5e7c7e0
* lisp/thingatpt.el (thing-at-point): Accept optional second argument
NO-PROPERTIES to strip the text properties from the return value.
* lisp/net/browse-url.el (browse-url-url-at-point): Pass NO-PROPERTIES
to `thing-at-point' instead of stripping the properties ourselves.
Also, when `thing-at-point' fails to find a url, prepend "http://"
to the filename at point on the assumption that the user is
pointing at something like gnu.org/gnu.
lisp/ChangeLog
lisp/net/browse-url.el
lisp/thingatpt.el