diff options
| -rw-r--r-- | lisp/ChangeLog | 21 | ||||
| -rw-r--r-- | lisp/doc-view.el | 16 |
2 files changed, 23 insertions, 14 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 44f39383139..4fd8422108e 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,12 @@ | |||
| 1 | 2011-10-28 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * doc-view.el: Avoid ugly errors about not finding nil. | ||
| 4 | (doc-view-ghostscript-program, doc-view-dvipdfm-program) | ||
| 5 | (doc-view-dvipdf-program, doc-view-unoconv-program) | ||
| 6 | (doc-view-ps2pdf-program, doc-view-pdftotext-program): | ||
| 7 | Avoid nil or absolute file name as default value. | ||
| 8 | (doc-view-pdf->txt, doc-view-ps->pdf): Use executable-find here. | ||
| 9 | |||
| 1 | 2011-10-28 Alan Mackenzie <acm@muc.de> | 10 | 2011-10-28 Alan Mackenzie <acm@muc.de> |
| 2 | 11 | ||
| 3 | * progmodes/cc-defs.el (c-version). -> 5.32.2. | 12 | * progmodes/cc-defs.el (c-version). -> 5.32.2. |
| @@ -14,8 +23,8 @@ | |||
| 14 | cc-vars.el. | 23 | cc-vars.el. |
| 15 | (c-nonlabel-token-2-key): New variable for change in cc-engine.el. | 24 | (c-nonlabel-token-2-key): New variable for change in cc-engine.el. |
| 16 | 25 | ||
| 17 | * progmodes/cc-engine.el (c-beginning-of-statement-1): Prevent | 26 | * progmodes/cc-engine.el (c-beginning-of-statement-1): |
| 18 | "class foo : bar" being spuriously recognized as a label. | 27 | Prevent "class foo : bar" being spuriously recognized as a label. |
| 19 | 28 | ||
| 20 | * progmodes/cc-cmds.el (c-narrow-to-most-enclosing-decl-block): | 29 | * progmodes/cc-cmds.el (c-narrow-to-most-enclosing-decl-block): |
| 21 | Add parameter `inclusive' (to include enclosing braces in the | 30 | Add parameter `inclusive' (to include enclosing braces in the |
| @@ -39,8 +48,8 @@ | |||
| 39 | 48 | ||
| 40 | * progmodes/cc-defs.el: Update "virtual semicolon" comments. | 49 | * progmodes/cc-defs.el: Update "virtual semicolon" comments. |
| 41 | 50 | ||
| 42 | * progmodes/cc-engine.el (c-crosses-statement-barrier-p): Recoded | 51 | * progmodes/cc-engine.el (c-crosses-statement-barrier-p): |
| 43 | to scan one line at at time rather than having \n and \r | 52 | Recoded to scan one line at at time rather than having \n and \r |
| 44 | explicitly in c-stmt-delim-chars | 53 | explicitly in c-stmt-delim-chars |
| 45 | (for some modes, e.g. AWK). | 54 | (for some modes, e.g. AWK). |
| 46 | (c-forward-label): Amend for virtual semicolons. | 55 | (c-forward-label): Amend for virtual semicolons. |
| @@ -56,8 +65,8 @@ | |||
| 56 | (c-stmt-delim-chars, c-stmt-delim-chars-with-comma): Special value for | 65 | (c-stmt-delim-chars, c-stmt-delim-chars-with-comma): Special value for |
| 57 | AWK Mode (including \n, \r) removed, no longer needed. | 66 | AWK Mode (including \n, \r) removed, no longer needed. |
| 58 | 67 | ||
| 59 | * progmodes/cc-mode.el (c-mode, c++-mode, objc-mode): Invoke | 68 | * progmodes/cc-mode.el (c-mode, c++-mode, objc-mode): |
| 60 | c-make-macro-with-semi-re. | 69 | Invoke c-make-macro-with-semi-re. |
| 61 | 70 | ||
| 62 | * progmodes/cc-vars.el (c-macro-with-semi-re): | 71 | * progmodes/cc-vars.el (c-macro-with-semi-re): |
| 63 | (c-macro-names-with-semicolon): New variables. | 72 | (c-macro-names-with-semicolon): New variables. |
diff --git a/lisp/doc-view.el b/lisp/doc-view.el index ceaad83cd7c..d16d8c6f62d 100644 --- a/lisp/doc-view.el +++ b/lisp/doc-view.el | |||
| @@ -149,7 +149,7 @@ | |||
| 149 | :group 'multimedia | 149 | :group 'multimedia |
| 150 | :prefix "doc-view-") | 150 | :prefix "doc-view-") |
| 151 | 151 | ||
| 152 | (defcustom doc-view-ghostscript-program (executable-find "gs") | 152 | (defcustom doc-view-ghostscript-program "gs" |
| 153 | "Program to convert PS and PDF files to PNG." | 153 | "Program to convert PS and PDF files to PNG." |
| 154 | :type 'file | 154 | :type 'file |
| 155 | :group 'doc-view) | 155 | :group 'doc-view) |
| @@ -175,7 +175,7 @@ Has only an effect if imagemagick support is compiled into emacs." | |||
| 175 | :type 'number | 175 | :type 'number |
| 176 | :group 'doc-view) | 176 | :group 'doc-view) |
| 177 | 177 | ||
| 178 | (defcustom doc-view-dvipdfm-program (executable-find "dvipdfm") | 178 | (defcustom doc-view-dvipdfm-program "dvipdfm" |
| 179 | "Program to convert DVI files to PDF. | 179 | "Program to convert DVI files to PDF. |
| 180 | 180 | ||
| 181 | DVI file will be converted to PDF before the resulting PDF is | 181 | DVI file will be converted to PDF before the resulting PDF is |
| @@ -186,7 +186,7 @@ If this and `doc-view-dvipdf-program' are set, | |||
| 186 | :type 'file | 186 | :type 'file |
| 187 | :group 'doc-view) | 187 | :group 'doc-view) |
| 188 | 188 | ||
| 189 | (defcustom doc-view-dvipdf-program (executable-find "dvipdf") | 189 | (defcustom doc-view-dvipdf-program "dvipdf" |
| 190 | "Program to convert DVI files to PDF. | 190 | "Program to convert DVI files to PDF. |
| 191 | 191 | ||
| 192 | DVI file will be converted to PDF before the resulting PDF is | 192 | DVI file will be converted to PDF before the resulting PDF is |
| @@ -197,21 +197,21 @@ If this and `doc-view-dvipdfm-program' are set, | |||
| 197 | :type 'file | 197 | :type 'file |
| 198 | :group 'doc-view) | 198 | :group 'doc-view) |
| 199 | 199 | ||
| 200 | (defcustom doc-view-unoconv-program (executable-find "unoconv") | 200 | (defcustom doc-view-unoconv-program "unoconv" |
| 201 | "Program to convert any file type readable by OpenOffice.org to PDF. | 201 | "Program to convert any file type readable by OpenOffice.org to PDF. |
| 202 | 202 | ||
| 203 | Needed for viewing OpenOffice.org (and MS Office) files." | 203 | Needed for viewing OpenOffice.org (and MS Office) files." |
| 204 | :type 'file | 204 | :type 'file |
| 205 | :group 'doc-view) | 205 | :group 'doc-view) |
| 206 | 206 | ||
| 207 | (defcustom doc-view-ps2pdf-program (executable-find "ps2pdf") | 207 | (defcustom doc-view-ps2pdf-program "ps2pdf" |
| 208 | "Program to convert PS files to PDF. | 208 | "Program to convert PS files to PDF. |
| 209 | 209 | ||
| 210 | PS files will be converted to PDF before searching is possible." | 210 | PS files will be converted to PDF before searching is possible." |
| 211 | :type 'file | 211 | :type 'file |
| 212 | :group 'doc-view) | 212 | :group 'doc-view) |
| 213 | 213 | ||
| 214 | (defcustom doc-view-pdftotext-program (executable-find "pdftotext") | 214 | (defcustom doc-view-pdftotext-program "pdftotext" |
| 215 | "Program to convert PDF files to plain text. | 215 | "Program to convert PDF files to plain text. |
| 216 | 216 | ||
| 217 | Needed for searching." | 217 | Needed for searching." |
| @@ -881,7 +881,7 @@ Start by converting PAGES, and then the rest." | |||
| 881 | 881 | ||
| 882 | (defun doc-view-pdf->txt (pdf txt callback) | 882 | (defun doc-view-pdf->txt (pdf txt callback) |
| 883 | "Convert PDF to TXT asynchronously and call CALLBACK when finished." | 883 | "Convert PDF to TXT asynchronously and call CALLBACK when finished." |
| 884 | (or doc-view-pdftotext-program | 884 | (or (executable-find doc-view-pdftotext-program) |
| 885 | (error "You need the `pdftotext' program to convert a PDF to text")) | 885 | (error "You need the `pdftotext' program to convert a PDF to text")) |
| 886 | (doc-view-start-process "pdf->txt" doc-view-pdftotext-program | 886 | (doc-view-start-process "pdf->txt" doc-view-pdftotext-program |
| 887 | (list "-raw" pdf txt) | 887 | (list "-raw" pdf txt) |
| @@ -917,7 +917,7 @@ Start by converting PAGES, and then the rest." | |||
| 917 | 917 | ||
| 918 | (defun doc-view-ps->pdf (ps pdf callback) | 918 | (defun doc-view-ps->pdf (ps pdf callback) |
| 919 | "Convert PS to PDF asynchronously and call CALLBACK when finished." | 919 | "Convert PS to PDF asynchronously and call CALLBACK when finished." |
| 920 | (or doc-view-ps2pdf-program | 920 | (or (executable-find doc-view-ps2pdf-program) |
| 921 | (error "You need the `ps2pdf' program to convert PS to PDF")) | 921 | (error "You need the `ps2pdf' program to convert PS to PDF")) |
| 922 | (doc-view-start-process "ps->pdf" doc-view-ps2pdf-program | 922 | (doc-view-start-process "ps->pdf" doc-view-ps2pdf-program |
| 923 | (list | 923 | (list |