view lisp/unused.el @ 2816:7c0be881a633

Install David Mackenzie's patches to make ${srcdir} work. * Makefile.in (srcdir, VPATH): Get this value from the top-level Makefile. (xmakefile): Use ${srcdir} to find the files from which we produce xmakefile. Edit the values for srcdir and VPATH into xmakefile. * ymakefile (srcdir, VPATH): New definitions for the Makefile to edit. (ALL_CFLAGS): Remove `-Is' and `-Im'; add `-I${srcdir}', and `-I.'. (emacs): Adjust dumping commands to deal with a separate source directory. (${etc}DOC): Pass `-d ${srcdir}' to make-docfile, to tell it where to find the source files. (prefix-args): Find the source code in ${srcdir}.
author Jim Blandy <jimb@redhat.com>
date Sat, 15 May 1993 23:21:35 +0000
parents 7e4999005da1
children 253f761ad37b
line wrap: on
line source

;;; unused.el --- editing commands in GNU Emacs that turned out not to be used.
;;; This file is in the public domain, as it was distributed in
;;; 1985 or 1986 without a copyright notice.  Written by RMS.

;; Maintainer: FSF
;; Keywords: emulations

;;; Commentary:

;; These were added with an eye to making possible a more CCA-compatible
;; command set; but that turned out not to be interesting.

;;; Code:

(defun mark-beginning-of-buffer ()
  "Set mark at the beginning of the buffer."
  (interactive)
  (push-mark (point-min)))

(defun mark-end-of-buffer ()
  "Set mark at the end of the buffer."
  (interactive)
  (push-mark (point-max)))

(defun upcase-char (arg)
  "Uppercasify ARG chars starting from point.  Point doesn't move"
  (interactive "p")
  (save-excursion
    (upcase-region (point) (progn (forward-char arg) (point)))))

(defun forward-to-word (arg)
  "Move forward until encountering the beginning of a word.
With argument, do this that many times."
  (interactive "p")
  (or (re-search-forward (if (> arg 0) "\\W\\b" "\\b\\W") nil t arg)
      (goto-char (if (> arg 0) (point-max) (point-min)))))

(defun backward-to-word (arg)
  "Move backward until encountering the end of a word.
With argument, do this that many times."
  (interactive "p")
  (forward-to-word (- arg)))

;;; unused.el ends here