all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* a short comment to mark the occasion
@ 2020-04-08  3:57 Emanuel Berg via Users list for the GNU Emacs text editor
  0 siblings, 0 replies; only message in thread
From: Emanuel Berg via Users list for the GNU Emacs text editor @ 2020-04-08  3:57 UTC (permalink / raw)
  To: help-gnu-emacs

find or set a comment mark, with only one function to do
both things! Useful when you are proofreading/editing
a long document, e.g. a violent, immoral science fiction
novel featuring futuristic all-graphene sniper rifles
... and a hovercraft over an industrial swamp, where the
trajectory of the vehicle must be computed with the
outmost etc etc for the Kodak moment to appear... might
as well shoot - its not like a SINGLE BULLET ever
changed world history!

The comment style is LaTeX as it stands.

(defun find-here ()
  (interactive)
  (let ((start (point)))
    (goto-char (point-min))
    (let*((sign "%%%% hit123") ; change disaccording to need
          (hits (how-many sign (point-min) (point-max))) )
      (if (> hits 0)
          (progn
            (search-forward-regexp sign)
            (beginning-of-line)
            (recenter 1)
            (message "%d" hits) )
        (goto-char start)
        (insert sign) ))))
(defalias 'h #'find-here)

-- 
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-04-08  3:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-08  3:57 a short comment to mark the occasion Emanuel Berg via Users list for the GNU Emacs text editor

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.