Bug 146501 - kdvi-search.el does not play well with emacs 22
Summary: kdvi-search.el does not play well with emacs 22
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kdvi
Classification: Unmaintained
Component: general (show other bugs)
Version: 1.4
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-07 17:39 UTC by is
Modified: 2013-09-28 13:42 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description is 2007-06-07 17:39:16 UTC
Version:           1.4 (using KDE 3.5.5, Debian Package 4:3.5.5a.dfsg.1-8 (4.0))
Compiler:          Target: i486-linux-gnu
OS:                Linux (i686) release 2.6.21cavy1

If the user simply hints return to accept the default filename when invoking 'kdvi-jump-line in Emacs 22. For reasons I don't entirely understand, 'tex-buffer and other command will start failing because the tilde in the filename will be quoted. (Sometimes this doesn't happen. Why exactly that is I'm not sure, but its mostly reproducible.) This behaviour is new to Emacs 22, so perhaps some internals changed, although tex-mode seems to mostly unalterned.

Fortunately, the fix is simple. Simply expand the file name right when it's determined. The following patch fixes the problem. If you'd lie, I'd be happy to check it in, but since it's not my module I didn't want to commit without filing a bug report.

--Itai


Index: doc/kviewshell/kdvi-search.el
===================================================================
--- doc/kviewshell/kdvi-search.el       (revision 671181)
+++ doc/kviewshell/kdvi-search.el       (working copy)
@@ -70,7 +70,7 @@
 Partly copied from tex.el's TeX-master-file and TeX-add-local-master."
   (if (boundp 'TeX-master)
       TeX-master
-    (let ((master-file (read-file-name "Master file (default this file): ")))
+    (let ((master-file (expand-file-name (read-file-name "Master file (default this file): "))))
       (if (y-or-n-p "Save info as local variable? ")
          (progn
            (goto-char (point-max))
Comment 1 Jekyll Wu 2013-09-28 13:42:12 UTC
kdvi is no longer maintained since KDE SC 4, and its functionality is replace by okular.  If the issue in this report still exists in or apply to okular in KDE SC 4.10.5 or higher, please reassign the report to okular product or create a new report against okular.