Function: tildify-region

tildify-region is an autoloaded, interactive and byte-compiled function defined in tildify.el.gz.

Signature

(tildify-region BEG END &optional DONT-ASK)

Documentation

Add hard spaces in the region between BEG and END.

See variables tildify-pattern, tildify-space-string, and tildify-ignored-environments-alist for information about configuration parameters. This function performs no refilling of the changed text. If DONT-ASK is set, or called interactively with prefix argument, user won't be prompted for confirmation of each substitution.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/tildify.el.gz
;;; *** Interactive functions ***

;;;###autoload
(defun tildify-region (beg end &optional dont-ask)
  "Add hard spaces in the region between BEG and END.
See variables `tildify-pattern', `tildify-space-string', and
`tildify-ignored-environments-alist' for information about configuration
parameters.
This function performs no refilling of the changed text.
If DONT-ASK is set, or called interactively with prefix argument, user
won't be prompted for confirmation of each substitution."
  (interactive "*rP")
  (let (case-fold-search (count 0) (ask (not dont-ask)))
    (tildify--foreach-region
      (lambda (beg end)
        (let ((aux (tildify-tildify beg end ask)))
          (setq count (+ count (car aux)))
          (if (not (eq (cdr aux) 'force))
              (cdr aux)
            (setq ask nil)
            t)))
      beg end)
    (message "%d spaces replaced." count)))