slack@EDDIE.MIT.EDU (Josiah Slack) (06/22/89)
I found that I was running into difficulties in using c-macro-expand when the definition of a macro had more than 1 line. I looked at the code in cmacexp.el, and was able to rewrite it so that it behaved itself in the situation mentioned above. I'm including a diff made from cmacexp.el as delivered and my modified version. cut here--------------------------------------------------------------------------------- 1,2c1 < ;;; 18jun89 js Fix bug whereby we only get the first line of a macro. < --- > 23,27c22,23 < (progn < (while < (search-forward "\\\n" nil t)) < (forward-line 1) < (setq last-needed (point))))) --- > (progn (forward-line 1) > (setq last-needed (point)))))