[NTG-context] qpdf broken with beta since 2001/02/08

luigi scarso luigi.scarso at gmail.com
Thu Feb 10 17:40:06 CET 2011


On Thu, Feb 10, 2011 at 12:49 PM, Martin Schröder <martin at oneiros.de> wrote:
> 2011/2/10 Hans Hagen <pragma at wxs.nl>:
>> best is to make two pdf files that are as small as possible and send them
>> off-list to Luigi and me so that we can look into them.
>
> And me, please. The qpdf author is very helpfull, though. :-)
>
for emacs users:
save this in qdf-mode.el
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; the command to comment/uncomment text
(defun qdf-comment-dwim (arg)
"Comment or uncomment current line or region in a smart way.
For detail, see `comment-dwim'."
   (interactive "*P")
   (require 'newcomment)
   (let ((deactivate-mark nil) (comment-start "%") (comment-end ""))
     (comment-dwim arg)))

;; keywords for syntax coloring
(setq myKeywords
 `(
;;   ( ,(regexp-opt '("Sin" "Cos" "Sum") 'word) . font-lock-function-name-face)
;;   ( ,(regexp-opt '("Pi" "Infinity") 'word) . font-lock-constant-face)
  )
)

;; define the major mode.
(define-derived-mode qdf-mode fundamental-mode
"qdf-mode is a major mode for editing language qdf."
  (setq font-lock-defaults '(myKeywords))

  ;; modify the keymap
  (define-key qdf-mode-map [remap comment-dwim] 'qdf-comment-dwim)

  (modify-syntax-entry ?% "< b" qdf-mode-syntax-table)
  (modify-syntax-entry ?\n "> b" qdf-mode-syntax-table)
)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;



-- 
luigi


More information about the ntg-context mailing list