Thread View: gnu.emacs.bug
2 messages
2 total messages
Started by d90-awe
Thu, 07 Jan 1993 15:32
quoted-insert inserts in overwrite-mode
Author: d90-awe
Date: Thu, 07 Jan 1993 15:32
Date: Thu, 07 Jan 1993 15:32
38 lines
1883 bytes
1883 bytes
"GNU Emacs 18.59.17 of Sun Nov 22 1992 on baki.nada.kth.se (berkeley-unix)"
The function self-insert-command inserts unless in overwrite-mode,
then it overwrites. But quoted-insert always inserts. It should
overwrite if in overwrite-mode.
Patch:
*** /tmp/simple.el Thu Jan 7 14:17:58 1993
--- /src/packages/gnu/emacs-18.59/lisp/simple.el Wed Apr 15 10:13:32 1992
***************
*** 43,54 ****
(defun quoted-insert (arg)
"Read next input character and insert it.
Useful for inserting control characters.
You may also type up to 3 octal digits, to insert a character with that code"
(interactive "*p")
! (let ((last-command-char (read-quoted-char)))
! (self-insert-command arg)))
(defun delete-indentation (&optional arg)
"Join this line to previous and fix up whitespace at join.
With argument, join this line to following line."
(interactive "*P")
--- 43,56 ----
(defun quoted-insert (arg)
"Read next input character and insert it.
Useful for inserting control characters.
You may also type up to 3 octal digits, to insert a character with that code"
(interactive "*p")
! (let ((char (read-quoted-char)))
! (while (> arg 0)
! (insert char)
! (setq arg (1- arg)))))
(defun delete-indentation (&optional arg)
"Join this line to previous and fix up whitespace at join.
With argument, join this line to following line."
(interactive "*P")
Re: quoted-insert inserts in overwrite-mode
Author: David desJardins
Date: Fri, 08 Jan 1993 16:29
Date: Fri, 08 Jan 1993 16:29
13 lines
1007 bytes
1007 bytes
d90-awe@nada.kth.se writes:
> The function self-insert-command inserts unless in overwrite-mode,
> then it overwrites. But quoted-insert always inserts. It should
> overwrite if in overwrite-mode.
I disagree that this is a bug, or that it should be fixed. I consider
it a feature: a way to insert characters when in overwrite mode or
picture mode.
Unless you want to add a new way to insert characters while in one of
these modes, please don't remove the old way.
David desJardins
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads