[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How can function know its own name?
From: |
Jean Louis |
Subject: |
How can function know its own name? |
Date: |
Sat, 25 Jun 2022 23:21:20 +0300 |
I would like to invoke logging for specific functions automatically,
without specifying what to log, and my function should know which
function invoked it.
For example
(defun my-log (&optional function-name)
(log-to-database function-name))
(defun logged-function ()
(my-log (find-function-name)) ;; I would like at this point to recognize that
it was invoked from within logged-function?
(ignore))
Would this be possible somehow?
Jean
Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns
In support of Richard M. Stallman
https://stallmansupport.org/