From aeceef58977febd65dbea53ad1d3e63ca32dad67 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Fri, 1 Mar 1996 07:43:44 +0000 Subject: [PATCH] In M-x c-indent-command, if point is in the line's indentation, move it to the end of the indentation. --- v7/src/edwin/c-mode.scm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/v7/src/edwin/c-mode.scm b/v7/src/edwin/c-mode.scm index 7ce269606..dce20c6d5 100644 --- a/v7/src/edwin/c-mode.scm +++ b/v7/src/edwin/c-mode.scm @@ -1,8 +1,8 @@ ;;; -*-Scheme-*- ;;; -;;; $Id: c-mode.scm,v 1.53 1995/02/02 21:22:52 cph Exp $ +;;; $Id: c-mode.scm,v 1.54 1996/03/01 07:43:44 cph Exp $ ;;; -;;; Copyright (c) 1986, 1989-95 Massachusetts Institute of Technology +;;; Copyright (c) 1986, 1989-96 Massachusetts Institute of Technology ;;; ;;; This material was developed by the Scheme project at the ;;; Massachusetts Institute of Technology, Department of @@ -296,7 +296,9 @@ The relative indentation among the lines of the expression are preserved." "#"))) ((or (ref-variable c-tab-always-indent) (within-indentation? point)) - (c-indent-line point)) + (c-indent-line point) + (if (within-indentation? point) + (set-current-point! (indentation-end point)))) (else ((ref-command insert-tab))))))) -- 2.25.1