From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: doc-view.el --- View PDF/PostStript/DVI files in Emacs Date: Thu, 30 Aug 2007 09:51:55 +0200 Organization: University Koblenz-Landau Campus Koblenz Message-ID: <87fy21tq78.fsf@baldur.tsdh.de> References: <87wsvnfoyp.fsf@baldur.tsdh.de> <87zm0hq6kz.fsf@gnu.org> <87hcmoc1tg.fsf@baldur.tsdh.de> <87d4xcoxyn.fsf@baldur.tsdh.de> <878x7ylhdk.fsf@baldur.tsdh.de> <87fy26gn55.fsf@baldur.tsdh.de> <874pil8f2m.fsf@baldur.tsdh.de> <87odgsjef5.fsf@baldur.tsdh.de> <87absbg53e.fsf@baldur.tsdh.de> <878x7ujfov.fsf@baldur.tsdh.de> <87sl61ts58.fsf@baldur.tsdh.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1188463385 978 80.91.229.12 (30 Aug 2007 08:43:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 30 Aug 2007 08:43:05 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 30 10:43:01 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IQfc0-0004pm-WD for geh-help-gnu-emacs@m.gmane.org; Thu, 30 Aug 2007 10:42:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IQfc0-0001EC-Ni for geh-help-gnu-emacs@m.gmane.org; Thu, 30 Aug 2007 04:42:48 -0400 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!t-online.de!inka.de!rz.uni-karlsruhe.de!news.belwue.de!news.uni-kl.de!cache.uni-koblenz.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 39 Original-NNTP-Posting-Host: dslb-084-063-048-045.pools.arcor-ip.net Original-X-Trace: cache.uni-koblenz.de 1188460316 15146 84.63.48.45 (30 Aug 2007 07:51:56 GMT) Original-X-Complaints-To: news@cache.uni-koblenz.de Original-NNTP-Posting-Date: Thu, 30 Aug 2007 07:51:56 +0000 (UTC) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAD1BMVEU8PDyjo6P5+fm+v8F/ gIO4imEzAAAACXBIWXMAAArrAAAK6wGCiw1aAAAATnRFWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYA CmV4aWYKICAgICAgMjAKNDU3ODY5NjYwMDAwNGQ0ZDAwMmEwMDAwMDAwODAwMDAwMDAwMDAwMAqJ uBZbAAAACXZwQWcAAAAwAAAAMADO7oxXAAABnklEQVQ4y6WU0YGDIAyGozIAFAY4iAM0iQNAZf+Z LkBrr1f7cseDIp8JyZ8ApA8D/gaiI/9cQne5A6wAcJCYwcwdIEEbbqyH/tGBZHjZ6apgbuALgF/2 XQfArK826CB5gGGA3gUNr9taMApkGLQIbIYeatRNQVcaiBbgCG6ADRadu77aqJo07w3M3W0bdQIo /a+HBQ4/pT1Y/2pRhZaeNTsRBTvlAlPMD6C+kS2UIEvZN7hnHsckwkT+koyjh1ZxTK5QZPdozEWl W7qIum60CJVMIcnGX7um0DWbVIy6Wc+ca6WeGHTNluTIiBNJa65yO0oLN/Q0sTAjglExj2ZglOvC CZNgzvUHQJE8tSIThzTqcy+qBFN6TTz9bB+kAE5rtBo2ifkJKM+roIK8EOPlAGg1GWFJuAEz3V5a tAHxuDmXf/WuZ4w7Ct1b5gmcYJo1ujcQVahNMxf7+xgUlnXHYOYTwMGY/HZwnIalnuobiF4VoxOL VCQ++vsVRKfBLmfA+O3UIgXv8ilIJcD5OQ92PgcrfLgZvvKnK2P9zyXzDWhiiUxowX0ZAAAAGnpU WHRqcGVnOmNvbG9yc3BhY2UAAHjaMwIAADMAM4k4IzUAAAAmelRYdGpwZWc6c2FtcGxpbmctZmFj dG9yAAB42jOqMNIxrDAEYQARgwLpPZcvTwAAAABJRU5ErkJggg== User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.50 (gnu/linux) Cancel-Lock: sha1:+wSBE33Du3yLkPu0MgUcBhg4AAM= Original-Xref: shelby.stanford.edu gnu.emacs.help:151452 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:46974 Archived-At: Tassilo Horn writes: > I think I have to create a function that changes to defparameter, > evaluates the sexp and changes back to defvar... Done! --8<---------------cut here---------------start------------->8--- (defun th-eval-last-defvar-as-defparameter (ARG) "Eval the `defvar' before point as if it was a `defparameter'." (interactive "P") (save-excursion (let ((sexp (buffer-substring-no-properties (point) (progn (backward-sexp) (point))))) (with-temp-buffer (insert sexp) (goto-char (point-min)) (condition-case nil (progn (search-forward "(defvar ") (replace-match "(defparameter ") (goto-char (point-max)) (eval-last-sexp ARG)) (error (message "The sexp before point must be a defvar form!"))))))) --8<---------------cut here---------------end--------------->8--- Now it's bound to `C-x C-v'. Hopefully this was my last defparameter checkin. Bye, Tassilo -- People say that if you play Microsoft CD's backwards, you hear satanic things, but that's nothing, because if you play them forwards, they install Windows.