🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #87507

minor add-log generalization

#87507
From: boris
Date: Mon, 19 Sep 1994 16:09
40 lines
2285 bytes
In GNU Emacs 19.27.3 (sparc-sun-sunos4.1.3, X toolkit) of Mon Sep 19 1994 on raccoon.cs.rochester.edu

Here is a minor improvement to add-log.el.  I often use
lisp-interaction-mode for editing elisp.  This lets add-log do its
thing properly when invoked from a lisp-interaction-mode buffer.

Change log entry and diff follow.

Mon Sep 19 11:25:11 1994  Boris Goldowsky  <boris@cs.rochester.edu>

	* add-log.el.gz (add-log-current-defun): Deal with
	lisp-interaction-mode like lisp-mode.

*** /scratch/boris/emacs/lisp/add-log.el.orig	Mon Sep 19 11:18:42 1994
--- /scratch/boris/emacs/lisp/add-log.el	Mon Sep 19 11:16:25 1994
***************
*** 300,306 ****
    (condition-case nil
        (save-excursion
  	(let ((location (point)))
! 	  (cond ((memq major-mode '(emacs-lisp-mode lisp-mode scheme-mode))
  		 ;; If we are now precisely a the beginning of a defun,
  		 ;; make sure beginning-of-defun finds that one
  		 ;; rather than the previous one.
--- 300,307 ----
    (condition-case nil
        (save-excursion
  	(let ((location (point)))
! 	  (cond ((memq major-mode '(emacs-lisp-mode lisp-mode scheme-mode
! 						    lisp-interaction-mode))
  		 ;; If we are now precisely a the beginning of a defun,
  		 ;; make sure beginning-of-defun finds that one
  		 ;; rather than the previous one.


--
Boris Goldowsky                        The only way you'll end up in a corner
                                        Is by walking in too straight of a li
boris@cs.rochester.edu                    --Claudia Schmidt                 n
57 Glasgow Street, Rochester, NY 14608                                      e
Technical Details
Message-ID: <199409191528.LAA18357@raccoon.cs.rochester.edu>
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!howland.reston.ans.net!math.ohio-state.edu!cis.ohio-state.edu!cs.rochester.edu!boris

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,16e2a96a17f884f5,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1994-09-20 02:30:18 PST
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!howland.reston.ans.net!math.ohio-state.edu!cis.ohio-state.edu!cs.rochester.edu!boris
From: boris@cs.rochester.edu
Newsgroups: gnu.emacs.bug
Subject: minor add-log generalization
Date: 19 Sep 1994 12:09:59 -0400
Organization: GNUs Not Usenet
Lines: 41
Sender: daemon@cis.ohio-state.edu
Approved: bug-gnu-emacs@prep.ai.mit.edu
Distribution: gnu
Message-ID: <199409191528.LAA18357@raccoon.cs.rochester.edu>