Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!EDDIE.MIT.EDU!harvard!wjh12!mathsoft!slack From: harvard!wjh12!mathsoft!slack@EDDIE.MIT.EDU (Josiah Slack) Newsgroups: gnu.emacs.bug Subject: bug in c-macro-expand Message-ID: <8906211734.AA08056@mathsoft.COM> Date: 21 Jun 89 17:34:07 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 21 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)))))