[emacs] Fix for default PDF viewer bug #971162
Jaromir Koncicky
jkoncick at fedoraproject.org
Wed Aug 14 13:34:15 UTC 2013
commit 50c7e79e1466265d10c1cc4b6f235263ff95fe7c
Author: Jaromír Končický <jkoncick at redhat.com>
Date: Wed Aug 14 15:22:52 2013 +0200
Fix for default PDF viewer bug #971162
emacs-pdf-default.patch | 13 +++++++++++++
emacs.spec | 8 +++++++-
2 files changed, 20 insertions(+), 1 deletions(-)
---
diff --git a/emacs-pdf-default.patch b/emacs-pdf-default.patch
new file mode 100644
index 0000000..d8b1d84
--- /dev/null
+++ b/emacs-pdf-default.patch
@@ -0,0 +1,13 @@
+diff --git a/lisp/org/org.el b/lisp/org/org.el
+index cc4c93f..285b71c 100644
+--- a/lisp/org/org.el
++++ b/lisp/org/org.el
+@@ -1750,7 +1750,7 @@ See `org-file-apps'.")
+ (auto-mode . emacs)
+ ("\\.mm\\'" . default)
+ ("\\.x?html?\\'" . default)
+- ("\\.pdf\\'" . default)
++ ("\\.pdf\\'" . xdg-open)
+ )
+ "External applications for opening `file:path' items in a document.
+ Org-mode uses system defaults for different file types, but
diff --git a/emacs.spec b/emacs.spec
index bdbe64e..108b376 100644
--- a/emacs.spec
+++ b/emacs.spec
@@ -3,7 +3,7 @@ Summary: GNU Emacs text editor
Name: emacs
Epoch: 1
Version: 24.3
-Release: 12%{?dist}
+Release: 13%{?dist}
License: GPLv3+
URL: http://www.gnu.org/software/emacs/
Group: Applications/Editors
@@ -29,6 +29,8 @@ Patch12: emacs-gtk-warning.patch
Patch13: emacs-help-update.patch
# Fix for emacs bug #948838
Patch14: emacs-maximized.patch
+# Fix for default PDF viewer bug #971162
+Patch15: emacs-pdf-default.patch
# Fix for emacs bug #13460.
Patch100: emacs-24.3-hunspell.patch
# Fix for emacs bug #827033
@@ -174,6 +176,7 @@ packages that add functionality to Emacs.
%patch12 -p1 -b .gtk-warning.patch
%patch13 -p1 -b .help-update.patch
%patch14 -p1 -b .maximized.patch
+%patch15 -p1 -b .pdf-default.patch
%patch100 -p1 -b .hunspell
%patch101 -p1 -b .hunspell.2
@@ -459,6 +462,9 @@ update-desktop-database &> /dev/null || :
%dir %{_datadir}/emacs/site-lisp/site-start.d
%changelog
+* Wed Aug 14 2013 Jaromir Koncicky <jkoncick at redhat.com> - 1:24.3-13
+- Fix default PDF viewer (#971162)
+
* Fri Aug 09 2013 Petr Hracek <phracek at redhat.com> - 1:24.3-12
- emacs -mm (maximized) does not work (#985729)
More information about the scm-commits
mailing list