X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/ae940284fa77a6928f5162b7de859e67bdc7506c..004dedd364f5944b51b61acf90c4976f9c974ba9:/lisp/longlines.el diff --git a/lisp/longlines.el b/lisp/longlines.el index 9ef0638c56..387ce394f5 100644 --- a/lisp/longlines.el +++ b/lisp/longlines.el @@ -1,6 +1,6 @@ ;;; longlines.el --- automatically wrap long lines -*- coding:utf-8 -*- -;; Copyright (C) 2000, 2001, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. +;; Copyright (C) 2000-2001, 2004-2011 Free Software Foundation, Inc. ;; Authors: Kai Grossjohann ;; Alex Schroeder @@ -370,7 +370,7 @@ If BEG and END are nil, the point and mark are used." "Turn all newlines in the buffer into hard newlines." (longlines-decode-region (point-min) (point-max))) -(defun longlines-encode-region (beg end &optional buffer) +(defun longlines-encode-region (beg end &optional _buffer) "Replace each soft newline between BEG and END with exactly one space. Hard newlines are left intact. The optional argument BUFFER exists for compatibility with `format-alist', and is ignored." @@ -413,7 +413,7 @@ If automatic line wrapping is turned on, wrap the entire buffer." (setq longlines-auto-wrap nil) (message "Auto wrap disabled."))) -(defun longlines-after-change-function (beg end len) +(defun longlines-after-change-function (beg end _len) "Update `longlines-wrap-beg' and `longlines-wrap-end'. This is called by `after-change-functions' to keep track of the region that has changed." @@ -503,5 +503,4 @@ This is called by `window-configuration-change-hook'." (provide 'longlines) -;; arch-tag: 3489d225-5506-47b9-8659-d8807b77c624 ;;; longlines.el ends here