Mercurial > emacs
annotate etc/ps-prin0.ps @ 92870:8f17f65dd575
* textmodes/org.el (org-ctrl-c-star): Implement a missing branch
in the decision tree.
(org-select-remember-template): Cleaned the code.
(org-prepare-dblock): Added the extra :content parameter.
(org-write-agenda): New output type ".ics" files.
(org-write-agenda): Call `org-icalendar-verify-function', both for
time stamps and for TODO entries.
(org-agenda-collect-markers, org-create-marker-find-array)
(org-check-agenda-marker-table): New functions.
(org-agenda-marker-table): New variable.
(org-export-as-html): Revert the change that killed the html
buffer. Side effects first need to be studied carefully.
(org-get-tags-at): Fix the structure of the condition-case
statement.
(org-ts-regexp0, org-repeat-re, org-display-custom-time)
(org-timestamp-change): Fix regulear expressions to swallow the
extra character for repeat-shift control.
(org-auto-repeat-maybe): Implement the new repeater mechanisms.
(org-get-legal-level): Aliased to `org-get-valid-level'.
(org-dblock-write:clocktable): Added a :link parameter, linking
headlines to their location in the Org agenda files.
(org-get-tags-at): Bugfix: prevent `org-back-to-heading' from
throwing an error when getting tags before headlines.
(org-timestamp-change, org-modify-ts-extra)
(org-ts-regexp1): Fix timestamp editing.
(org-agenda-custom-commands-local-options): New constant.
(org-agenda-custom-commands): Use
`org-agenda-custom-commands-local-options' to improve customize
type. "htmlize": Removed hack to fix face problem with htmlize,
it no longer seem necessary.
(org-follow-link-hook): New hook.
(org-agenda-custom-commands): Added "Component" as a tag for each
item in a command serie.
(org-open-at-point): Run `org-follow-link-hook'.
(org-agenda-schedule): Bugfix: don't display marker type when it
is `nil'.
(org-store-link): org-irc required.
(org-set-regexps-and-options): Parse the new logging options.
(org-extract-log-state-settings): New function.
(org-todo): Handle the new ways of recording state change stuff.
(org-local-logging): New function.
(org-columns-open-link): Fixed bug with opening link in column
view.
(org-local-logging): New function
(org-todo): Make sure that LOGGING properties are honoured.
(org-todo-keywords): Improve docstring.
(org-startup-options): Cleanup startup options.
(org-set-regexps-and-options): Process the "!" markers.
(org-todo): Respect the new logging stuff.
(org-log-note-how): New variable.
(org-add-log-maybe): New parameter HOW that defines how logging
should be done and also overrides PURPOSE. Add a docstring.
(org-add-log-note): Check if we really need to ask for a note.
(org-get-current-options): Digest the new keyword.
(org-agenda-reset-markers): Renamed from
`org-agenda-maybe-reset-markers'. FORCE argument removed.
(org-diary, org-agenda-quit, org-prepare-agenda): Call the renamed
function, without force argument.
(org-buffer-property-keys): Bind local variables s and p.
(org-make-tags-matcher): Allow "" to match an empty or
non-existent property value.
(org-export-as-html): Join unsorted lists when they directly
follow each other. Such lists may be created by headlines that
are converted to lists.
(org-nofm-to-completion): New function.
(org-export-as-html): Use :html-extension instead of
org-export-html-extension.
(org-store-link): Support for links from `rmail-summary-mode'.
(org-columns-new, org-complete, org-set-property): Set the
`include-columns' argument in the call to
`org-buffer-property-keys'.
(org-buffer-property-keys): New argument `include-columns', to
include properties expected by any of the COLUMS formats in the
current buffer.
(org-cleaned-string-for-export): Get rid of drawers first, so that
they will be removed also in the text before the first headline.
(org-clock-report): Show the clocktable when found.
(org-refile): Fix positioning bug when `org-reverse-note-order' is
nil.
(org-version): With prefix argument, insert `org-version' at
point.
(org-agenda-goto): Recenter the window after finding the target
location, to make sure the correct position will be displayed.
(org-agenda-get-deadlines): Don't scale priority with the warning
period.
(org-insert-heading): Don't break line in the middle of the line.
(org-agenda-get-deadlines): Allow `org-deadline-warning-days' to
be 0.
(org-update-checkbox-count): Revamped to deal with hierarchical
beckboxes. This was a patch from Miguel A. Figueroa-Villanueva.
(org-remove-timestamp-with-keyword): New function.
(org-schedule, org-deadline): Use
`org-remove-timestamp-with-keyword' to make sure all such time
stamps are removed.
(org-mode): Support for `align'.
(org-agenda-get-deadlines): Make sure priorities increase as the
due date approaches and is passed.
(org-remember-apply-template): Fixed problem with tags that
contain "_" or "@".
(org-make-link-regexps): Improve the regular expression for plain
links.
(org-agenda-get-closed): List each clocking entry.
(org-set-tags): Only tabify before tags if indent-tabs-mode is t.
(org-special-ctrl-k): New option.
(org-kill-line): New function.
(org-archive-all-done): Fixed incorrect number of stars in regexp.
(org-refile-get-location): New function.
(org-refile-goto-last-stored): New function.
(org-global-tags-completion-table): Add the value of org-tag-alist
in each buffer, to make sure that also unused tags will be
available for completion.
(org-columns-edit-value)
(org-columns-next-allowed-value): Only update if not in agenda.
(org-clocktable-steps): New function.
(org-dblock-write:clocktable): Call `org-clocktable-steps'.
(org-archive-subtree): Add the outline tree context as a property.
(org-closest-date): New optional argument `prefer'.
(org-goto-auto-isearch): New option.
(org-goto-map, org-get-location): Implement auto-isearch.
(org-goto-local-auto-isearch-map): New variable.
(org-goto-local-search-forward-headings)
(org-goto-local-auto-isearch): New functions
author | Carsten Dominik <dominik@science.uva.nl> |
---|---|
date | Thu, 13 Mar 2008 08:54:11 +0000 |
parents | 53c104d9dd29 |
children | cbf5528cf447 |
rev | line source |
---|---|
28155 | 1 % === BEGIN ps-print prologue 0 |
31252
cdd489417ae4
Changed comment version (6.0).
Gerd Moellmann <gerd@gnu.org>
parents:
29497
diff
changeset
|
2 % version: 6.0 |
28155 | 3 |
79770 | 4 % Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 |
75449
2c5d29f90b94
Update copyright with years from Emacs-21 to present.
Glenn Morris <rgm@gnu.org>
parents:
64083
diff
changeset
|
5 % Free Software Foundation, Inc. |
36223 | 6 % |
7 % This file is part of GNU Emacs. | |
8 % | |
9 % GNU Emacs is free software; you can redistribute it and/or modify | |
10 % it under the terms of the GNU General Public License as published by | |
78271
713172dcf518
Switch license to GPLv3 or later.
Glenn Morris <rgm@gnu.org>
parents:
75449
diff
changeset
|
11 % the Free Software Foundation; either version 3, or (at your option) |
36223 | 12 % any later version. |
13 % | |
14 % GNU Emacs is distributed in the hope that it will be useful, | |
15 % but WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17 % GNU General Public License for more details. | |
18 % | |
19 % You should have received a copy of the GNU General Public License | |
20 % along with GNU Emacs; see the file COPYING. If not, write to the | |
64083 | 21 % Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
22 % Boston, MA 02110-1301, USA. | |
36223 | 23 |
46014 | 24 % As a special exception, the copyright holders of this module give |
25 % you permission to include the module in a Postscript file generated | |
26 % by Emacs or other free software together with the result of | |
27 % converting text to be printed, regardless of the license terms of | |
28 % that text, and to use under terms of your choice the page images | |
29 % resulting from formatting said combination. If you modify this | |
30 % module, you may extend this exception to your version of the module | |
31 % but you are not obligated to do so. If you do not wish to do so, | |
32 % delete this exception statement from your version. | |
33 | |
34 | |
28155 | 35 %%BeginProcSet: ErrorHandler |
36 % Downloaded Error Break-page handler | |
37 % Adapted from: | |
38 % PostScript Language Program Design, | |
39 % Adobe Systems Incorporated. | |
40 % Appendix A, pages 217-219 | |
41 | |
42 /ps$brkpage where{pop} | |
43 { | |
44 /ps$brkpage 64 dict def | |
45 ps$brkpage begin | |
29497
0763a6ed0743
Insert a version number comment (5.2.2). Indentation fix.
Gerd Moellmann <gerd@gnu.org>
parents:
28764
diff
changeset
|
46 /tx 0 def/ty 0 def/toy 0 def/tox 0 def |
28155 | 47 /prnt{ |
29497
0763a6ed0743
Insert a version number comment (5.2.2). Indentation fix.
Gerd Moellmann <gerd@gnu.org>
parents:
28764
diff
changeset
|
48 dup type/stringtype ne{=string cvs}if |
28155 | 49 dup length 6 mul |
29497
0763a6ed0743
Insert a version number comment (5.2.2). Indentation fix.
Gerd Moellmann <gerd@gnu.org>
parents:
28764
diff
changeset
|
50 /tx exch def/ty 10 def |
0763a6ed0743
Insert a version number comment (5.2.2). Indentation fix.
Gerd Moellmann <gerd@gnu.org>
parents:
28764
diff
changeset
|
51 currentpoint/toy exch def/tox exch def |
28155 | 52 1 setgray newpath |
53 tox toy 2 sub moveto | |
54 0 ty rlineto tx 0 rlineto | |
55 0 ty neg rlineto | |
56 closepath fill | |
57 tox toy moveto 0 setgray show | |
58 }bind def | |
59 /nl{currentpoint exch pop lmargin exch moveto 0 -10 rmoveto}def | |
60 /=={/cp 0 def typeprint nl}def | |
61 /typeprint{dup type dup currentdict exch known{exec}{unknowntype}ifelse}readonly def | |
62 /lmargin 72 def | |
63 /rmargin 72 def | |
64 /tprint{ | |
29497
0763a6ed0743
Insert a version number comment (5.2.2). Indentation fix.
Gerd Moellmann <gerd@gnu.org>
parents:
28764
diff
changeset
|
65 dup length cp add rmargin gt{nl/cp 0 def}if |
0763a6ed0743
Insert a version number comment (5.2.2). Indentation fix.
Gerd Moellmann <gerd@gnu.org>
parents:
28764
diff
changeset
|
66 dup length cp add/cp exch def |
28155 | 67 prnt |
68 }readonly def | |
69 /cvsprint{=string cvs tprint( )tprint}readonly def | |
70 /unknowntype{exch pop cvlit(??)tprint cvsprint}readonly def | |
71 /integertype{cvsprint}readonly def | |
72 /realtype{cvsprint}readonly def | |
73 /booleantype{cvsprint}readonly def | |
74 /operatortype{(//)tprint cvsprint}readonly def | |
75 /marktype{pop(-mark-)tprint}readonly def | |
76 /dicttype{pop(-dictionary-)tprint}readonly def | |
77 /nulltype{pop(-null-)tprint}readonly def | |
78 /filetype{pop(-filestream-)tprint}readonly def | |
79 /savetype{pop(-savelevel-)tprint}readonly def | |
80 /fonttype{pop(-fontid-)tprint}readonly def | |
81 /nametype{dup xcheck not{(/)tprint}if cvsprint}readonly def | |
82 /stringtype{ | |
83 dup rcheck | |
84 {(\()tprint tprint(\))tprint} | |
85 {pop(-string-)tprint}ifelse}readonly def | |
86 /arraytype{ | |
87 dup rcheck | |
88 {dup xcheck | |
89 {({)tprint{typeprint}forall(})tprint} | |
90 {([)tprint{typeprint}forall(])tprint}ifelse} | |
91 {pop(-array-)tprint}ifelse}readonly def | |
92 /packedarraytype{ | |
93 dup rcheck | |
94 {dup xcheck | |
95 {({)tprint{typeprint}forall(})tprint} | |
96 {([)tprint{typeprint}forall(])tprint}ifelse} | |
97 {pop(-packedarray-)tprint}ifelse}readonly def | |
29497
0763a6ed0743
Insert a version number comment (5.2.2). Indentation fix.
Gerd Moellmann <gerd@gnu.org>
parents:
28764
diff
changeset
|
98 /courier/Courier findfont 10 scalefont def |
0763a6ed0743
Insert a version number comment (5.2.2). Indentation fix.
Gerd Moellmann <gerd@gnu.org>
parents:
28764
diff
changeset
|
99 /OLDhandleerror errordict/handleerror get def |
28155 | 100 end %ps$brkpage |
101 | |
102 /handleerror{ | |
103 systemdict begin $error begin ps$brkpage begin | |
104 newerror | |
105 {/newerror false store vmstatus pop pop 0 ne{grestoreall}if | |
106 initgraphics | |
107 ErrorMessage 1 and 0 ne{ % print on paper | |
108 courier setfont lmargin 720 moveto | |
109 (# ERROR: )prnt errorname prnt nl | |
29497
0763a6ed0743
Insert a version number comment (5.2.2). Indentation fix.
Gerd Moellmann <gerd@gnu.org>
parents:
28764
diff
changeset
|
110 (# OFFENDING COMMAND: )prnt/command load prnt |
0763a6ed0743
Insert a version number comment (5.2.2). Indentation fix.
Gerd Moellmann <gerd@gnu.org>
parents:
28764
diff
changeset
|
111 $error/ostack known |
0763a6ed0743
Insert a version number comment (5.2.2). Indentation fix.
Gerd Moellmann <gerd@gnu.org>
parents:
28764
diff
changeset
|
112 {nl nl(# STACK:)prnt nl nl $error/ostack get aload length{==}repeat}if |
0763a6ed0743
Insert a version number comment (5.2.2). Indentation fix.
Gerd Moellmann <gerd@gnu.org>
parents:
28764
diff
changeset
|
113 $error/errorinfo known |
0763a6ed0743
Insert a version number comment (5.2.2). Indentation fix.
Gerd Moellmann <gerd@gnu.org>
parents:
28764
diff
changeset
|
114 {nl nl(# ERRORINFO:)prnt nl nl $error/errorinfo get aload length{==}repeat}if |
0763a6ed0743
Insert a version number comment (5.2.2). Indentation fix.
Gerd Moellmann <gerd@gnu.org>
parents:
28764
diff
changeset
|
115 systemdict/showpage get exec}if |
28155 | 116 ErrorMessage 2 and 0 ne{ % send back to printing system |
117 (\%\%[ Error: )print errorname =print | |
118 (; OffendingCommand: )print/command load =print | |
29497
0763a6ed0743
Insert a version number comment (5.2.2). Indentation fix.
Gerd Moellmann <gerd@gnu.org>
parents:
28764
diff
changeset
|
119 $error/errorinfo known |
0763a6ed0743
Insert a version number comment (5.2.2). Indentation fix.
Gerd Moellmann <gerd@gnu.org>
parents:
28764
diff
changeset
|
120 {(; ErrorInfo:)print $error/errorinfo get aload length{( )=print =print}repeat}if |
28155 | 121 ( ]\%\%)= flush |
122 (\%\%[ Rest of job is ignored ]\%\%)= flush}if | |
123 /newerror true store}if | |
124 end end end | |
125 stop | |
126 } % handleerror | |
127 dup 0 systemdict put % replace name by actual dict object | |
128 dup 4 ps$brkpage put % replace name by dict object | |
129 bind readonly | |
130 | |
131 errordict 3 1 roll put % put proc in errordict as /handleerror | |
132 }ifelse | |
133 %%EndProcSet | |
134 | |
28764 | 135 |
136 % operators for language level 2 only | |
137 | |
138 (<<)cvn where % << operator | |
139 {pop/BMark(<<)cvn load def} | |
140 {/BMark{mark}bind def}ifelse | |
141 (>>)cvn where % >> operator | |
142 {pop/EMark(>>)cvn load def} | |
143 {/EMark{counttomark 2 idiv dup dict begin{def}repeat pop currentdict end}bind def}ifelse | |
144 /setpagedevice where % setpagedevice | |
145 {pop} | |
146 {/setpagedevice{pop}bind def}ifelse | |
147 /packedarray where % packedarray | |
148 {pop} | |
149 {/packedarray{array astore readonly}bind def}ifelse | |
150 | |
28155 | 151 |
28167
cb25a24ec3e1
Change /setduplexmode, /settumble, add /packedarray.
Gerd Moellmann <gerd@gnu.org>
parents:
28155
diff
changeset
|
152 % device dependent operators |
cb25a24ec3e1
Change /setduplexmode, /settumble, add /packedarray.
Gerd Moellmann <gerd@gnu.org>
parents:
28155
diff
changeset
|
153 |
28427
15c0a66a4a8b
Replace gs_languagelevel by languagelevel.
Gerd Moellmann <gerd@gnu.org>
parents:
28265
diff
changeset
|
154 /DefOp{ |
15c0a66a4a8b
Replace gs_languagelevel by languagelevel.
Gerd Moellmann <gerd@gnu.org>
parents:
28265
diff
changeset
|
155 dup where{pop pop pop} |
15c0a66a4a8b
Replace gs_languagelevel by languagelevel.
Gerd Moellmann <gerd@gnu.org>
parents:
28265
diff
changeset
|
156 {exch dup where{pop}{pop/pop}ifelse load def}ifelse}def |
28155 | 157 |
29497
0763a6ed0743
Insert a version number comment (5.2.2). Indentation fix.
Gerd Moellmann <gerd@gnu.org>
parents:
28764
diff
changeset
|
158 /duplexmode/setduplexmode DefOp |
0763a6ed0743
Insert a version number comment (5.2.2). Indentation fix.
Gerd Moellmann <gerd@gnu.org>
parents:
28764
diff
changeset
|
159 /tumble/settumble DefOp |
28155 | 160 |
161 % === END ps-print prologue 0 |