diff options
author | Artur Malabarba <bruce.connor.am@gmail.com> | 2015-02-26 23:17:14 -0300 |
---|---|---|
committer | Artur Malabarba <bruce.connor.am@gmail.com> | 2015-02-26 23:17:14 -0300 |
commit | ee0e79475ed49f0e28c530994beebbafd1d77ca8 (patch) | |
tree | 4366b16ccefd389b401734e385e2fb44d5a8c370 /sx-search.el | |
parent | e19068da5bc6ab29b3a0cd21daed3cf98708df39 (diff) | |
parent | be15643b64b64e5fcbcdc213c90a5fa9cd41e9df (diff) |
Merge branch 'handle-html-tags' into print-question-without-temp-buffer
Diffstat (limited to 'sx-search.el')
-rw-r--r-- | sx-search.el | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/sx-search.el b/sx-search.el index b33efff..b245cbe 100644 --- a/sx-search.el +++ b/sx-search.el @@ -126,9 +126,15 @@ prefix argument, the user is asked for everything." (let ((tag (save-excursion (when pos (goto-char pos)) (or (get-text-property (point) 'sx-tag) - (thing-at-point 'symbol))))) - (sx-search (or sx-question-list--site - (sx-assoc-let sx-question-mode--data .site_par)) + (thing-at-point 'symbol)))) + (meta (save-excursion + (when pos (goto-char pos)) + (get-text-property (point) 'sx-tag-meta))) + (site (replace-regexp-in-string + (rx string-start "meta.") "" + (or sx-question-list--site + (sx-assoc-let sx-question-mode--data .site_par))))) + (sx-search (concat (when meta "meta.") site) nil tag))) (provide 'sx-search) |