aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorMark Oteiza2017-09-25 08:45:08 -0400
committerMark Oteiza2017-09-25 08:45:08 -0400
commitb719f6b20ba00c86d860be113d8a842bc384f2df (patch)
tree7453a5257f8f9d69aaee3f098d03fc3987716d1a /lisp
parentc7a0c137770be2ff5378a6c545fdea2d26e010f0 (diff)
downloademacs-b719f6b20ba00c86d860be113d8a842bc384f2df.tar.gz
emacs-b719f6b20ba00c86d860be113d8a842bc384f2df.zip
Loosen strict parsing requirement for desktop files
There are other desktop-looking files, for instance those having to do with MIME typess, that would benefit from being able to be read by this function. It helps to have some flexibility. * lisp/xdg.el (xdg-desktop-read-file): Remove an error condition. * test/lisp/xdg-tests.el: Remove a test.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/xdg.el2
1 files changed, 0 insertions, 2 deletions
diff --git a/lisp/xdg.el b/lisp/xdg.el
index e962cd21a6c..76106f42586 100644
--- a/lisp/xdg.el
+++ b/lisp/xdg.el
@@ -197,8 +197,6 @@ Optional argument GROUP defaults to the string \"Desktop Entry\"."
197 (unless (looking-at xdg-desktop-group-regexp) 197 (unless (looking-at xdg-desktop-group-regexp)
198 (error "Expected group name! Instead saw: %s" 198 (error "Expected group name! Instead saw: %s"
199 (buffer-substring (point) (point-at-eol)))) 199 (buffer-substring (point) (point-at-eol))))
200 (unless (equal (match-string 1) "Desktop Entry")
201 (error "Wrong first group: %s" (match-string 1)))
202 (when group 200 (when group
203 (while (and (re-search-forward xdg-desktop-group-regexp nil t) 201 (while (and (re-search-forward xdg-desktop-group-regexp nil t)
204 (not (equal (match-string 1) group))))) 202 (not (equal (match-string 1) group)))))