From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Re: doc-view compilation warnings Date: Wed, 24 Oct 2007 09:59:03 +0200 Message-ID: <878x5thrjs.fsf@baldur.tsdh.de> References: <87wsth6vk5.fsf@catnip.gol.com> <878x5wrgnv.fsf@baldur.tsdh.de> <87prz6yn1c.fsf@baldur.tsdh.de> <200710231430.l9NEUk8x012690@oogie-boogie.ics.uci.edu> <87ejflzv18.fsf@baldur.tsdh.de> <200710231607.l9NG7EoD016139@oogie-boogie.ics.uci.edu> <87abq9zpnz.fsf@baldur.tsdh.de> <200710231835.l9NIZ7HB025212@oogie-boogie.ics.uci.edu> <87640xzn9p.fsf@baldur.tsdh.de> <871wblzjn3.fsf@baldur.tsdh.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1193212768 1149 80.91.229.12 (24 Oct 2007 07:59:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 24 Oct 2007 07:59:28 +0000 (UTC) Cc: Richard Stallman To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 24 09:59:30 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Ikb9C-0004fU-DN for ged-emacs-devel@m.gmane.org; Wed, 24 Oct 2007 09:59:26 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ikb94-0003Dh-AM for ged-emacs-devel@m.gmane.org; Wed, 24 Oct 2007 03:59:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ikb90-0003DE-TI for emacs-devel@gnu.org; Wed, 24 Oct 2007 03:59:14 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ikb8z-0003C4-5y for emacs-devel@gnu.org; Wed, 24 Oct 2007 03:59:14 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ikb8z-0003Bv-2h for emacs-devel@gnu.org; Wed, 24 Oct 2007 03:59:13 -0400 Original-Received: from out1.smtp.messagingengine.com ([66.111.4.25]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ikb8t-0000Qy-LN; Wed, 24 Oct 2007 03:59:07 -0400 Original-Received: from compute2.internal (compute2.internal [10.202.2.42]) by out1.messagingengine.com (Postfix) with ESMTP id D32F934742; Wed, 24 Oct 2007 03:59:06 -0400 (EDT) Original-Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute2.internal (MEProxy); Wed, 24 Oct 2007 03:59:06 -0400 X-Sasl-enc: Hdm8YbH/1s8qJYt3j+UDQ7m4UIv1pmNchQw5PZuPlBgh 1193212746 Original-Received: from baldur.tsdh.de (dslb-084-063-023-116.pools.arcor-ip.net [84.63.23.116]) by mail.messagingengine.com (Postfix) with ESMTP id 85A1623F34; Wed, 24 Oct 2007 03:59:05 -0400 (EDT) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwEAIAAACI8LKTAAAACXBIWXMAAArrAAAK6wGCiw1a AAAATnRFWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYACmV4aWYKICAgICAgMjAKNDU3ODY5NjYwMDAw NGQ0ZDAwMmEwMDAwMDAwODAwMDAwMDAwMDAwMAqJuBZbAAAACXZwQWcAAAAwAAAAMADO7oxXAAAB mElEQVRo3u2byxHCMAxEVQpXekgPKYI2aIJGUwNXLmT02ZXkRBcfMkxsv2hXtmzkeBzPY5/2XyuD YAB1ArS9tvf26TlV39jE142+rcURH6Hw0GQi441KUN13llUEk0Q6WMtuwYCuhCYyLzMgbAb5fa55 P+rz6DEJG03cERjjCQH694qq/MJLEcURhJ08A1MZoHw01nEWe1AtIL3ZO7MYo2NrhrIi0087lObj 3+0chHUC+rGh4hcQQbzAPoeiXz0l7cWqNK9ZOsZjFrCbx8rK5zVxp4vnO8nZx+udxSoizRYkkpGF scHTTyyyz7LGUVLJ1eojvueMJV9SyZWxnEe9X7NKuiAgvc0z6lnCOzNAfcPa8xJhx4vGnq1Ol1nb FJ5wUPHi6wWFT6oCHhVNbElKjj2jfn8uW4b0pNsRsFVE7BOX1DSPkobeoS54uwNVY14SkHWDEi+/ LQnI50rWYtuNTDpfVi08yLewzL8r0AhQzws30vkORlXUNAKkL79NBO1WTDeVWB9xLelBc5G8WFAD aP6KMIAGUK/2C9wW05DKIbRCAAAAGnpUWHRqcGVnOmNvbG9yc3BhY2UAAHjaMwIAADMAM4k4IzUA AAAmelRYdGpwZWc6c2FtcGxpbmctZmFjdG9yAAB42jOqMNIxrDAEYQARgwLpPZcvTwAAAABJRU5E rkJggg== Mail-Followup-To: emacs-devel@gnu.org, Richard Stallman In-Reply-To: (Stefan Monnier's message of "Tue, 23 Oct 2007 17:53:46 -0400") User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.50 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:81625 Archived-At: Stefan Monnier writes: >> But someone should decide: Is loading doc-view when opening >> ps/pdf/dvi files ok? > > It doesn't look like a problem to me, as long as it doesn't show PS > files using doc-view by default. > > Note that it may be simpler to setup auto-mode-alist to map *.ps to > ps-mode and dvi and pdf files to doc-view-mode and then change ps-mode > to activate doc-view-minor-mode explicitly and unconditionally. That > will save you from defining doc-view-mode-maybe. Ok, I'll do that. But still: what keybinding can I use for toggling? ps-mode aldeady binds `C-c C-c'. Or maybe we should change the binding for `ps-run-clear' in ps-mode to some other key that `C-c C-c'? > I'd also be very happy to get rid of the > doc-view-clean-auto-mode-alist monstrosity by just saying "if you're > not using doc-view-minor-mode, then toggling off doc-view puts you in > fundamental-mode", I don't get you here. If someone has his buffer in d-v-m and toggles to an editing mode I can activate d-v-minor-mode unconditionally. > or if you want to be fancier, then save the previous major-mode when > entering doc-view-mode (when possible) and reuse that value when > exiting it (like picture-mode does). Ok, that sounds reasonable. And if there was no previous major mode (or it was doc-view-mode) I can fall back to fundamental mode. I'll implement those changes later today. Bye, Tassilo