view lwlib/Makefile.in @ 18249:cb7e72b9a09d

Make view mode more similar to `less'. Changed documentation for most commands. (view-scroll-auto-exit): New variable, replaces view-mode-auto-exit. (view-mode-auto-exit): Variable deleted. (view-mode): Doesn't only toggle `view-mode', it also calls view-mode-enter or view-mode-exit. (view-buffer, view-buffer-other-window): New argument exit-action. (view-file, view-file-other-window, view-buffer-other-window) (view-buffer, view-mode-enter): Changed method used to restore windows when leaving view mode. (view-mode-exit): New function. (view-return-to-alist): New variable. (view-return-here, view-exit-position): Variables deleted. (view-remove-frame-by-deleting, view-exit-all-windows-at-exit): New option variables. (view-page-size, view-half-page-size): New variables. (view-scroll-size): Var deleted; replaced by the previous two. (view-mode-map): Make the bindings inside defvar. Added new commands and new key bindings. Added view-mode-exit to `change-major-mode-hook' to always leave view mode when changing major mode. (view-file-other-frame, view-buffer-other-frame): New commands. (View-leave, View-kill-and-leave, View-exit, View-exit-and-edit) (View-quit, View-quit-all): new commands for leaving view mode. (view-exit): Function deleted. (View-goto-percent, View-scroll-to-buffer-end): New commands. (view-try-extend-at-buffer-end): New option variable. (View-scroll-page-forward, View-scroll-page-backward) (View-scroll-page-forward-set-page-size) (View-scroll-page-backward-set-page-size, View-scroll-line-forward) (View-scroll-line-backward, View-scroll-half-page-forward) (View-scroll-half-page-backward) (View-revert-buffer-scroll-page-forward): New commands. (View-scroll-lines-forward, View-scroll-lines-backward) (View-scroll-lines-forward-set-scroll-size) (View-scroll-one-more-line): Commands deleted. (view-scroll-lines, view-end-message, view-page-size-default) (view-set-half-page-size-default, view-really-at-end) (view-recenter): New functions. (view-scroll-size): Variable deleted. (View-search-regexp-forward, View-search-regexp-backward) (View-search-last-regexp-forward, View-search-last-regexp-backward) (view-search): ! and @ are special at beginning of regexp. (view-search-no-match-lines): New function.
author Richard M. Stallman <rms@gnu.org>
date Sat, 14 Jun 1997 21:06:09 +0000
parents c32eccfde8a2
children 52ecc33827e0
line wrap: on
line source

# This was taken from the output of Imake
# and set up to be configured by ../configure.
# Some parts Copyright (c) 1992, 1993 Lucid, Inc.

srcdir=@srcdir@
VPATH=@srcdir@
C_SWITCH_X_SITE=@C_SWITCH_X_SITE@

CC=@CC@
CFLAGS=@CFLAGS@
CPP=@CPP@
LN_S=@LN_S@
RANLIB=@RANLIB@
# See below--@X_TOOLKIT_TYPE@ is used below.
USE_X_TOOLKIT=@X_TOOLKIT_TYPE@

              TOP = .

               AR = ar cq

               LN = ln -s
               RM = rm -f

     LUCID_OBJS = lwlib-Xlw.o xlwmenu.o lwlib-Xaw.o
     MOTIF_OBJS = lwlib-Xm.o
      OLIT_OBJS = lwlib-Xol.o lwlib-Xolmb.o

TOOLKIT_DEFINES = -DUSE_$(USE_X_TOOLKIT)
   TOOLKIT_OBJS = $(@X_TOOLKIT_TYPE@_OBJS)

           OBJS = lwlib.o $(TOOLKIT_OBJS) lwlib-utils.o

# ../src is needed to find config.h.
ALL_CFLAGS= $(C_SWITCH_SITE) $(C_SWITCH_SYSTEM) $(C_SWITCH_X_SITE) \
  $(C_SWITCH_X_SYSTEM) $(C_SWITCH_MACHINE) $(CPPFLAGS) $(CFLAGS) \
  -DEMACS_BITMAP_FILES -DHAVE_CONFIG_H -Demacs \
  -I. -I../src -I${srcdir} -I${srcdir}/../src

.c.o:
	$(CC) -c ${ALL_CFLAGS} $<

all:: liblw.a

liblw.a: $(OBJS)
	$(RM) $@
	$(AR) $@ $(OBJS)
	@echo Do not be alarmed if the following ranlib command
	@echo fails due to the absence of a ranlib program on your system.
	-$(RANLIB) $@ || true
#If running ranlib fails, probably there is none.
#That's ok.  So don't stop the build.

# Depend on Makefile so that we recompile if TOOLKIT_DEFINES changes.
lwlib.o:  $(srcdir)/lwlib.c  Makefile
	$(CC) -c $(TOOLKIT_DEFINES) $(ALL_CFLAGS) $(srcdir)/lwlib.c

xrdb-cpp.o:  $(srcdir)/xrdb-cpp.c
	$(CC) -c "-DCPP_PROGRAM=$(CPP)" $(ALL_CFLAGS) $(srcdir)/xrdb-cpp.c

lwlib-utils.o: lwlib-utils.h
lwlib.o:       lwlib.h lwlib-int.h
lwlib-Xlw.o:   lwlib.h lwlib-int.h
lwlib-Xaw.o:   lwlib.h lwlib-int.h
lwlib-Xm.o:    lwlib.h lwlib-int.h lwlib-utils.h
lwlib-Xol.o:   lwlib.h lwlib-int.h
lwlib-Xolmb.o: lwlib-Xolmb.h lwlib-XolmbP.h
xlwmenu.o: xlwmenu.c xlwmenu.h lwlib.h xlwmenuP.h

mostlyclean:
	$(RM) *.o core errs ,* *~ *.a .emacs_* make.log MakeOut \#*

clean: mostlyclean
distclean: clean
maintainer-clean: distclean

TAGS:
	../lib-src/etags -t *.[ch]
tags: TAGS
.PHONY: tags