* add-log-current-defun-function for nxml-mode?
@ 2016-04-01 21:04 Stephen Leake
0 siblings, 0 replies; only message in thread
From: Stephen Leake @ 2016-04-01 21:04 UTC (permalink / raw)
To: emacs-devel
Does nxml provide a function for add-log-current-defun-function?
I came up with:
(defun nxml-current-element ()
"Return name of current element.
Suitable for `add-log-current-defun-function'."
(save-excursion
(nxml-backward-up-element)
(buffer-substring (point) xmltok-name-end)))
--
-- Stephe
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-04-01 21:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-01 21:04 add-log-current-defun-function for nxml-mode? Stephen Leake
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.