comparison lisp/simple.el @ 1771:3f0f18d4eb8c

* simple.el (set-goal-column): Make this command disabled by default.
author Jim Blandy <jimb@redhat.com>
date Thu, 14 Jan 1993 14:50:16 +0000
parents 05492c456293
children 3e4f8b1da4e9
comparison
equal deleted inserted replaced
1770:29bcc2c88773 1771:3f0f18d4eb8c
1 ;;; simple.el --- basic editing commands for Emacs 1 ;;; simple.el --- basic editing commands for Emacs
2 2
3 ;; Copyright (C) 1985, 1986, 1987, 1992 Free Software Foundation, Inc. 3 ;; Copyright (C) 1985, 1986, 1987, 1992, 1993 Free Software Foundation, Inc.
4 4
5 ;; This file is part of GNU Emacs. 5 ;; This file is part of GNU Emacs.
6 6
7 ;; GNU Emacs is free software; you can redistribute it and/or modify 7 ;; GNU Emacs is free software; you can redistribute it and/or modify
8 ;; it under the terms of the GNU General Public License as published by 8 ;; it under the terms of the GNU General Public License as published by
1289 (beginning-of-line) 1289 (beginning-of-line)
1290 (setq arg (1+ arg)))) 1290 (setq arg (1+ arg))))
1291 (move-to-column (or goal-column temporary-goal-column)) 1291 (move-to-column (or goal-column temporary-goal-column))
1292 nil) 1292 nil)
1293 1293
1294 ;;; Many people have said they rarely use this feature, and often type
1295 ;;; it by accident. Maybe it shouldn't even be on a key.
1296 (put 'set-goal-column 'disabled t)
1294 1297
1295 (defun set-goal-column (arg) 1298 (defun set-goal-column (arg)
1296 "Set the current horizontal position as a goal for \\[next-line] and \\[previous-line]. 1299 "Set the current horizontal position as a goal for \\[next-line] and \\[previous-line].
1297 Those commands will move to this position in the line moved to 1300 Those commands will move to this position in the line moved to
1298 rather than trying to keep the same horizontal position. 1301 rather than trying to keep the same horizontal position.