emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/indent.el [lexbind]


From: Miles Bader
Subject: [Emacs-diffs] Changes to emacs/lisp/indent.el [lexbind]
Date: Mon, 25 Oct 2004 00:44:07 -0400

Index: emacs/lisp/indent.el
diff -c emacs/lisp/indent.el:1.51.2.5 emacs/lisp/indent.el:1.51.2.6
*** emacs/lisp/indent.el:1.51.2.5       Wed Oct  6 05:23:54 2004
--- emacs/lisp/indent.el        Mon Oct 25 04:22:23 2004
***************
*** 205,211 ****
  Interactively, WIDTH is the prefix argument, if specified.
  Without prefix argument, the command prompts for WIDTH."
    (interactive "r\nNSet left margin to column: ")
-   (if (interactive-p) (setq width (prefix-numeric-value width)))
    (save-excursion
      ;; If inside indentation, start from BOL.
      (goto-char from)
--- 205,210 ----
***************
*** 229,235 ****
  Interactively, WIDTH is the prefix argument, if specified.
  Without prefix argument, the command prompts for WIDTH."
    (interactive "r\nNSet right margin to width: ")
-   (if (interactive-p) (setq width (prefix-numeric-value width)))
    (save-excursion
      (goto-char from)
      (skip-chars-backward " \t")
--- 228,233 ----
***************
*** 289,300 ****
  the right margin width.
  If `auto-fill-mode' is active, re-fill the region to fit the new margin."
    (interactive "r\nP")
!   (if (interactive-p)
!       (setq inc (if inc (prefix-numeric-value current-prefix-arg)
!                 standard-indent)))
    (save-excursion
      (alter-text-property from to 'right-margin
!        (lambda (v) (+ inc (or v 0))))
      (if auto-fill-function
        (fill-region from to nil t t))))
  
--- 287,296 ----
  the right margin width.
  If `auto-fill-mode' is active, re-fill the region to fit the new margin."
    (interactive "r\nP")
!   (setq inc (if inc (prefix-numeric-value inc) standard-indent))
    (save-excursion
      (alter-text-property from to 'right-margin
!                        (lambda (v) (+ inc (or v 0))))
      (if auto-fill-function
        (fill-region from to nil t t))))
  




reply via email to

[Prev in Thread] Current Thread [Next in Thread]