Article View: gnu.epoch.misc
Article #198oui oui oui
From: Marc Andreessen
Date: Mon, 14 Sep 1992 09:18
Date: Mon, 14 Sep 1992 09:18
73 lines
3603 bytes
3603 bytes
Here's some old mail from Lynn Slater that may help fix problems wrt
``marker does not point anywhere''. (I haven't seen the problem
myself, so I don't know if this fixes it for sure.)
------------------------------------------------------------------------------
Return-Path: <epoch-m@cs.uiuc.edu>
Date: Thu, 4 Jun 92 09:16 PDT
From: lrs@indetech.com (Lynn Slater)
To: esh@moe.tekbspa.com
Cc: epoch@cs.uiuc.edu
In-Reply-To: <ESH.92Jun3105242@moe.tekbspa.com> "uunet!moe.tekbspa.com!esh"
Subject: imouse.el problems
> loop yelling about no mark in this buffer. I have not found a way out of
I do not know about who ic complaining, but an old emacs fix I have will
put a mark in all buffers, which should eliminate the symptom if not the
problem.
;;;;;;;;;;;;;;;;;;;;;;;;;;; -*- Mode: Emacs-Lisp -*- ;;;;;;;;;;;;;;;;;;;;;;;;;;
;; mark.el -- Makes all buffers have a mark
;;
;; AFSID : $__Header$
;; Author : Lynn Slater x2048
;; Created On : Tue Jan 22 18:39:38 1991
;; Last Modified By: Lynn Slater x2048
;; Last Modified On: Tue Feb 12 14:09:51 1991
;; Update Count : 2
;; Status : Unknown, Use with caution!
;;
;; PURPOSE
;; The interactive function barfs on "\nr" if the region is not set
;; yet. I consider this to be a defect in emacs because
;; 1. There is not a "safe" alternative to \nr
;; 2. As a user, I always think that I have a region
;; 3. As a developer, I cannot write functions that use the region in
;; some cases and not in others. The scribe-comment command above
;; does not use the region unless there is an argu<ement, but you
;; cannot call the function immediately after finding a file because
;; the region is not set, even if you were using the regionless operation.
;; Perhaps I can get around this by adopting a convention that
;; all functions that use the region must use it all the time and
;; must be called by functions that check for the region. (Note that
;; there is no function that can check for the region without also
;; generating a disturbing message to the user in case of error.)
;;
;; The solution is to be sure that there is always a region!
;; This should go into the filesys stuff, but for now, I shall
;; do it using a provided hook. Hopefully the scribe mode stuff is
;; loaded before the hook is checked.
;; TABLE OF CONTENTS
;; HISTORY
;; 22-Jan-1991 Lynn Slater x2048
;; documented better
;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(defun push-mark-quietly (&optional location message)
"An arguementless version of push mark that generates no message by default."
(push-mark location (not message)))
(if (not (memq 'push-mark-quietly find-file-hooks))
(setq find-file-hooks (cons 'push-mark-quietly find-file-hooks)))
------------------------------------------------------------------------------
Marc
--
Marc Andreessen
Epoch Development Team
University of Illinois at Urbana-Champaign
marca@ncsa.uiuc.edu
Technical Details
Message-ID:
<9209142318.AA08208@wintermute.ncsa.uiuc.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!paladin.american.edu!europa.asd.contel.com!darwin.sura.net!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!ncsa.uiuc.edu!marcaReferences:
<m0ltKUU-00000oC@rascal.indetech.com>Show Full Headers
Complete Article Headers
Newsgroups: gnu.epoch.misc Path: arc1-ca.pugleaf.net!sparky!uunet!paladin.american.edu!europa.asd.contel.com!darwin.sura.net!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!ncsa.uiuc.edu!marca From: marca@ncsa.uiuc.edu (Marc Andreessen) Subject: oui oui oui Message-ID: <9209142318.AA08208@wintermute.ncsa.uiuc.edu> Sender: daemon@cis.ohio-state.edu Organization: GNUs Not Usenet References: <m0ltKUU-00000oC@rascal.indetech.com> Distribution: gnu Date: Mon, 14 Sep 1992 09:18:20 GMT Lines: 74