summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAndreas Politz <politza@hochschule-trier.de>2015-02-13 00:07:32 +0100
committerAndreas Politz <politza@hochschule-trier.de>2015-02-13 00:07:32 +0100
commit2b2010b31d53661dd9631c2967330160e59baeff (patch)
tree5fe9a21a08ec8a1197e3df19711c4a0bc604c5c5 /test
parentf4c00bbfcbabbf93b3944fa615b9cc0b8d1bc5ca (diff)
Implemented a heuristic backward search.
* lisp/pdf-sync.el: (pdf-sync-backward-hook): Added hook as option for word-wise searching. (pdf-sync-minor-mode-map): Add seemingly standard binding C-mouse1 for backward searches. (pdf-sync-backward-use-heuristic): New variable. If this is non-nil the backward search uses a heuristic which will in most cases locate the character position. (pdf-sync-backward-text-translations): New variable describing a mapping between utf8 character and latex macros. (pdf-sync-backward-text-flush-regexp): Regexp for deleting unhelpfull character from the PDF's text when backward-searching. (pdf-sync-backward-source-flush-regexp): Regexp for deleting unhelpfull LaTeX fragments when backward-searching. (pdf-sync-backward-search): Use the heuristic. (pdf-sync-backward-correlate): Now returns a function (instead of line, column), which when called will move to the correct position. (pdf-sync-backward--find-position pdf-sync-backward--get-source-context, pdf-sync-backward--source-strip-comments, pdf-sync-backward--get-text-context, pdf-sync-backward--tokenize): New functions for the heuristic backward search. (pdf-sync-backward-debug-minor-mode, pdf-sync-backward-debug-wrapper, pdf-sync-backward-debug-explain): Debug functions.
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions