Changeset 7870 for lang/gauche/oldtype
- Timestamp:
- 03/13/08 00:38:51 (5 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/gauche/oldtype/trunk/Kahua/oldtype/oldtype/oldtype-mode.el
r7811 r7870 5 5 ;; Copyright (C) 2007 Kiyoka Nishiyama 6 6 ;; 7 ;; $Id: oldtype-mode.el 2 89 2008-03-01 01:50:33Z kiyoka $7 ;; $Id: oldtype-mode.el 242 2008-02-02 09:58:22Z kiyoka $ 8 8 ;; 9 9 ;; This file is part of oldtype-mode … … 29 29 ;; 30 30 ;; ChangeLog: 31 ;; [0.0.4] 32 ;; 1. Added image displaying feature for ##(amazon ASIN) command. 33 ;; 31 34 ;; [0.0.3] 32 ;; 1. Added ##(amazon ASIN) command.35 ;; 1. Supported URL to ##(amazon ASIN) command conversion feature. ( C-c C-c key ) 33 36 ;; 34 37 ;; [0.0.2] 35 38 ;; 1. Added ##(todo),##(undo) command. 36 39 ;; 2. Added oldtype-openfile( wikiname ) function. 37 40 ;; 38 41 ;; [0.0.1] 39 42 ;; 1. first release 40 43 ;; 41 44 ;; 42 (defconst oldtype-version "0.0. 3")45 (defconst oldtype-version "0.0.4") 43 46 44 47 (defconst oldtype-wikiname-face 'oldtype-wikiname-face) … … 305 308 ;; 306 309 (defun oldtype-install-fontification () 310 ;; 311 ;; "4873113482" 312 ;; => "http://images.amazon.com/images/P/4873113482.09.MZZZZZZZ_.jpg" 313 ;; 314 ;; test pattern: 315 ;; (amazon-asincode-to-url "4873113482") 316 ;; 317 (defun amazon-asincode-to-url (asincode) 318 (format "http://images.amazon.com/images/P/%s.09.MZZZZZZZ_.jpg" asincode)) 319 307 320 (defun code-linep (pos) 308 321 (save-excursion … … 329 342 (_image-pattern 330 343 "\\(##[(]img[ ]+\\)\\([^)]+\\)\\([)]\\)") 344 (_amazon-pattern 345 "\\(##[(]amazon[ ]+\\)\\([^)]+\\)\\([)]\\)") 331 346 (_simple-command-pattern 332 347 "\\(##[(]\\(todo\\|done\\)[)]\\)")) … … 360 375 `( 361 376 (src . ,image-url))))) 377 t) 378 379 ;; ##(amazon asincode) 380 (,_amazon-pattern 381 2 382 (when (not (code-linep (match-beginning 2))) 383 (let* ((beg (match-beginning 1)) 384 (asincode (match-string-no-properties 2)) 385 (end (match-end 3))) 386 (compose-region beg 387 end 388 oldtype-image-icon-string) 389 (oldtype-remove-image beg 390 end) 391 (oldtype-insert-image-file beg 392 end 393 `( 394 (src . ,(amazon-asincode-to-url asincode)))))) 362 395 t) 363 396
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)