Development moved to https:/
Please follow there
Delivers a set of functions to return, mover over or
manipulate a given THING. THING may be a well known
form as word, paragraph, but also a char class as
`alnum' or a new defined thing.
For example `ar-alnum-atpt' will return all
alpha-numerical chars below and around cursor as a
string. `ar-bounds-
borders of that string as a list and so on.
Some examples how to set:
(global-set-key [(super \()] 'ar-parentize-
(global-set-key [(super \/)] 'ar-slash-
(global-set-key [(super \<)] 'ar-lesser-
(global-set-key [(super \>)] 'ar-greater-
(global-set-key [(super \[)] 'ar-bracket-
(global-set-key [(super \\)] 'ar-backslash-
(global-set-key [(super \{)] 'ar-brace-
Beside of <super>, the key already tells what to pick.
Quite often used are commands like this:
(global-set-key [(control c)(\")] 'ar-doublequote
(global-set-key [(control c)(\')] 'ar-singlequote
A whole bunch of commands are available:
ar-THING-atpt
ar-THING-
ar-THING-
ar-THING-
ar-THING-
ar-THING-end-atpt
ar-THING-
ar-THING-copy-atpt
ar-THING-kill-atpt
ar-THING-
ar-THING-
ar-THING-
ar-THING-sort-atpt
ar-THING-check-atpt
Also a couple of commands, whose use is much less probable:
ar-THING-slash-atpt
ar-THING-
ar-THING-
ar-THING-
ar-blok-THING-atpt
ar-THING-
ar-THING-
ar-THING-
ar-THING-
ar-THING-
ar-THING-
ar-THING-
ar-THING-
ar-THING-
ar-THING-brace-atpt
ar-THING-
ar-comment-
ar-commatize-
ar-quote-THING-atpt
ar-THING-
ar-THING-mark-atpt
ar-THING-hide-atpt
ar-THING-show-atpt
ar-THING-
ar-THING-
ar-THING-
ar-THING-
ar-THING-
ar-THING-trim-atpt
ar-THING-
ar-THING-
ar-underscore-
ar-whitespace-
If not delivered, all what's needed is a function, which will determine the beginning resp. the end of the object.
In pseudo-code:
(put 'MY-FORM 'beginning-op-at
(lambda () MY-FORWARD-
(put 'MY-FORM 'end-op-at
(lambda () MY-BACKWARD-
When done, it's should be available, i.e. copied and returned like this
(defun MY-FORM-atpt (&optional arg)
" "
(interactive "p")
(ar-th 'MY-FORM arg))
Other Files in this project:
thing-in-thing.el employs a defined THING within the
range of a second THING.
`ar-hide-
insides brackets within the given line. Resp.
`ar-show-
`ar-hide-
Caveat: thing-in-thing files deliver a large number of commands
resp. symbols, so `apropos'-output might get
cluttered.
Beside of `thing-
`ar-doubleslash
it's not recommended loading them all at the beginning.
Which implementations are to be expected, see the contents of lists at the bottom of
thingatpt-
For example `M-x ar-doubleslash-
which would turn an active region of
foo bar baz
into
\\(foo\\) \\(bar\\) \\(baz\\)
It resides in thing-classes-
It's in "ar-atpt-rest-list" were forms employing common items like
`word', `region', `line', `paragraph' are stored.
M-x find . -maxdepth 1 -type f -name "*.el" -print0 | xargs -0 -e grep -nH -e MY_FORMS_WANTED
called from inside thing-in-thing dired-directory should help.
Comment-lor.el: it's suffix `-lor' means
`line-or-region': If no active region exists, line is
commented or uncommented. Thus taking action to mark
a region is no longer needed.
Project information
- Maintainer:
- Andreas Roehler
- Driver:
- Andreas Roehler
- Licence:
- GNU GPL v2, GNU GPL v3
View full history Series and milestones
trunk series is the current focus of development.
All code Code
- Version control system:
- Bazaar
- Programming languages:
- Emacs Lisp, C, python
All questions Latest questions
-
center-text-inside-comment
Posted
All bugs Latest bugs reported
-
Bug #1238099: close-dwim
Reported -
Bug #1228775: v1.4, sh-beg-end not found
Reported -
Bug #637525: py-statement-at-point
Reported
All blueprints Latest blueprints
-
code-completion
Registered -
electric-thing
Registered -
Establish rules for related functions return values
Registered