Skip to content

Commit

Permalink
- Add document for search option `foreign-regexp/toggle-eval-replacem…
Browse files Browse the repository at this point in the history
…ent'.
  • Loading branch information
k-talo committed May 25, 2013
1 parent c0d760e commit f0f1d8c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions foreign-regexp.el
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,18 @@
;;
;; Toggle search option `foreign-regexp/toggle-eval-replacement'.
;;
;; When this search option is on, the replacement string for
;; a command `foreign-regexp/query-replace' will be evaluated
;; as expression. For example, these commands:
;;
;; For `Perl':
;; `M-s M-% ^ <RET> no strict 'vars';sprintf('%05d: ', ++$LINE) <RET>'
;;
;; For `Ruby':
;; `M-s M-% ^ <RET> $LINE||=0;sprintf('%05d: ', $LINE+=1) <RET>'
;;
;; put line number to beginning of each lines.
;;
;;
;; COMMANDS(4): CONSTRUCTING REGEXP
;; ================================
Expand Down

0 comments on commit f0f1d8c

Please sign in to comment.