That seemed to fix the problem.

Thanks for the help !

- Soumendra Daas

Brad Giaccio wrote:

> Well it must be a small world I just picked this up on comp.emacs.xemacs yesterday 
>it has to do with a problem involving tempo.el.  Here is the authors message:
> ------------------------
>
> Hi there, I'm the original author of tempo.el.  I just discovered that
> it is included in XEmacs too (although I would have guesed it).
> Unfortunately I also discovered that it has xemacs-related bugs.
>
> The problems occur when transient-mark-mode is used.  I don't use
> xemacs, and once upon a time someone sent me patches to autodetect the
> different ways of Emacs / XEmacs regarding transient-mark-mode.  But
> this doesn't seem to work anymore.
>
> My simple patch was to add two lines (marked with "+++" below) to
> tempo-insert-template.
>
> (defun tempo-insert-template (template on-region)
>   "Insert a template.
> TEMPLATE is the template to be inserted.  If ON-REGION is non-nil the
> `r' elements are replaced with the current region. In Transient Mark
> mode, ON-REGION is ignored and assumed true if the region is active."
>   (unwind-protect
>       (progn
>     (if (or (and (boundp 'transient-mark-mode) ; For Emacs
>              transient-mark-mode
> +++          (boundp 'mark-active)
>              mark-active)
>         (and (boundp 'zmacs-regions) ; For XEmacs
>              zmacs-regions (mark)))
>         (setq on-region t))
>     (and on-region
>          (set-marker tempo-region-start (min (mark) (point)))
>          (set-marker tempo-region-stop (max (mark) (point))))
>     (if on-region
>         (goto-char tempo-region-start))
>     (save-excursion
>       (tempo-insert-mark (point-marker))
>       (mapcar (function (lambda (elt)
>                   (tempo-insert elt on-region)))
>           (symbol-value template))
>       (tempo-insert-mark (point-marker)))
>     (tempo-forward-mark))
>     (tempo-forget-insertions)
>     ;; Should I check for zmacs here too???
>     (and (boundp 'transient-mark-mode)
>      transient-mark-mode
> +++  (fboundp 'deactivate-mark)
>      (deactivate-mark))))
>
> ------------------------
>
> On Wed, Nov 03, 1999 at 01:11:35PM -0800, Soumendra Daas wrote:
> > Hi,
> >
> > If  I set "transient-mark-mode" to 1 and then try to generate the code for a 
>console application
> > thorough the "File->JDE New->Console" menus, I get an emacs error saying :
> >
> > "Symbol's function definition is void: deactivate-mark"
> >
> > Any idea what this means and how to fix it ?
> >
> > BTW, if I use  GNU Emacs 20.3 (on the same platform and environment), I get the 
>correct desired
> > behavior. I am beginning to suspect that there is something flaky in our XEmacs 
>installation, but then
> > I am a newbie at Emacs ..
> >
> > I'll appreciate any help on this
> >
> > Thanks
> >
> >  - Soumendra Daas
> > [EMAIL PROTECTED]
> >

Reply via email to