Skip to main content

New answers tagged

0 votes

custom defconst

Following up on this, my solution was to use the below macro: (defmacro my-utils/defconst (const-name value description) "Automatically log the definition of a constant." `(...
simon.watson.sjw's user avatar
0 votes
Accepted

Getting the source file line number of the currently executing init file expression (formerly: Malformed macro)

This solution is based on preprocessing the current buffer. Assume that the text below is in a file named "solution.el". At the bottom of the file are three expressions, commented out. To ...
William R. Greene -- 'Bill''s user avatar
3 votes

Getting the source file line number of the currently executing init file expression (formerly: Malformed macro)

This is a moderately frequent confusion. current-line and point tell you the location of the cursor in the current buffer, that is true. But when you load a file, the current buffer does not hold the ...
db48x's user avatar
  • 18.4k

Top 50 recent answers are included