view lisp/unused.el @ 32024:a0ba404b97a5

(search_file_line): Fix skipping of whitespace. (get_quoted_string): Fix limit on memchr search. (set_bdf_font_info): Use unsigned chars. Negate yoffset. (w32_init_bdf_font): Initialize codepoint and bitmap heaps. (w32_free_bdf_font): Free bitmaps and codepoints on heaps. (get_cached_font_char, cache_char_offset): Use macro BDF_CODEPOINT_RANGE_COVER_P. (cache_char_offset): Use HeapAlloc to allocate codepoints on own heap. (clear_cached_bitmap_slots): New function. (GET_HEX_VALUE): G-Z, g-z are not hex. (w32_get_bdf_glyph): Convert to DIB format. Return bytes read. (get_bitmap_with_cache): Use new cache implementation. (create_offscreen_bitmap): New function. (w32_BDF_TextOut): Use it. Draw glyphs as DIBs.
author Jason Rumney <jasonr@gnu.org>
date Fri, 29 Sep 2000 21:23:10 +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