X-Git-Url: http://cgit.sxemacs.org/?p=gnus;a=blobdiff_plain;f=lisp%2Fgnus-uu.el;h=83f817fd8e9904d4d43acafaf117ebec31314eb9;hp=3f4bf1e1e0582646848b46779dcf32a7506c87f7;hb=b52037f4a9c6bee1ff556c22750e158da1208d4b;hpb=b4bc300f0dcddc2b17bb50a3501ed6e6db1ef12c diff --git a/lisp/gnus-uu.el b/lisp/gnus-uu.el index 3f4bf1e1e..83f817fd8 100644 --- a/lisp/gnus-uu.el +++ b/lisp/gnus-uu.el @@ -1,6 +1,6 @@ ;;; gnus-uu.el --- extract (uu)encoded files in Gnus -;; Copyright (C) 1985-1987, 1993-1998, 2000-2014 Free Software +;; Copyright (C) 1985-1987, 1993-1998, 2000-2016 Free Software ;; Foundation, Inc. ;; Author: Lars Magne Ingebrigtsen @@ -79,10 +79,10 @@ To change the behavior, you can either edit this variable or set For example: -To make gnus-uu use 'xli' to display JPEG and GIF files, put the +To make gnus-uu use `xli' to display JPEG and GIF files, put the following in your .emacs file: - (setq gnus-uu-user-view-rules '((\"jpg$\\\\|gif$\" \"xli\"))) + (setq gnus-uu-user-view-rules \\='((\"jpg$\\\\|gif$\" \"xli\"))) Both these variables are lists of lists with two string elements. The first string is a regular expression. If the file name matches this @@ -140,10 +140,10 @@ details." (defcustom gnus-uu-user-archive-rules nil "A list that can be set to override the default archive unpacking commands. -To use, for instance, 'untar' to unpack tar files and 'zip -x' to +To use, for instance, `untar' to unpack tar files and `zip -x' to unpack zip files, say the following: (setq gnus-uu-user-archive-rules - '((\"\\\\.tar$\" \"untar\") + \\='((\"\\\\.tar$\" \"untar\") (\"\\\\.zip$\" \"zip -x\")))" :group 'gnus-extract-archive :type '(repeat (group regexp (string :tag "Command")))) @@ -873,10 +873,9 @@ When called interactively, prompt for REGEXP." (setq state (list 'middle)))) (with-current-buffer "*gnus-uu-body*" (goto-char (setq beg (point-max))) - (save-excursion + (with-current-buffer buffer (save-restriction - (set-buffer buffer) - (let (buffer-read-only) + (let ((inhibit-read-only t)) (set-text-properties (point-min) (point-max) nil) ;; These two are necessary for XEmacs 19.12 fascism. (put-text-property (point-min) (point-max) 'invisible nil) @@ -910,8 +909,7 @@ When called interactively, prompt for REGEXP." (match-beginning 0) (or (and (re-search-forward "^[^ \t]" nil t) (1- (point))) - (progn (forward-line 1) (point))))))))) - (widen))) + (progn (forward-line 1) (point))))))))))) (if (and message-forward-as-mime gnus-uu-digest-buffer) (if message-forward-show-mml (progn