diff options
| author | Stefan Monnier | 2004-11-24 15:20:38 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2004-11-24 15:20:38 +0000 |
| commit | 0e7acedf7b7777ffc845b504579cef1e5ca1c0fd (patch) | |
| tree | 569602985d8790507628eb7c8606f36705448c49 | |
| parent | bd0e59f8cf52ff08d38ad30c50138a2483c2b341 (diff) | |
| download | emacs-0e7acedf7b7777ffc845b504579cef1e5ca1c0fd.tar.gz emacs-0e7acedf7b7777ffc845b504579cef1e5ca1c0fd.zip | |
(generic-mode-set-comments): Accept an empty comment-end.
| -rw-r--r-- | lisp/ChangeLog | 20 | ||||
| -rw-r--r-- | lisp/generic.el | 8 |
2 files changed, 16 insertions, 12 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ad0a8a1bb72..d2254e1c196 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,8 +1,12 @@ | |||
| 1 | 2004-11-24 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * generic.el (generic-mode-set-comments): Accept an empty comment-end. | ||
| 4 | |||
| 1 | 2004-11-24 Nick Roberts <nickrob@snap.net.nz> | 5 | 2004-11-24 Nick Roberts <nickrob@snap.net.nz> |
| 2 | 6 | ||
| 3 | * progmodes/gdb-ui.el (dedicated-switch-to-buffer): New function. | 7 | * progmodes/gdb-ui.el (dedicated-switch-to-buffer): New function. |
| 4 | (gdb-ann3, gdb-setup-windows, gdb-restore-windows): Dedicate | 8 | (gdb-ann3, gdb-setup-windows, gdb-restore-windows): |
| 5 | gdb-related windows. | 9 | Dedicate gdb-related windows. |
| 6 | (gdb-display-buffer): Dedicate gdb-related windows. Don't grab | 10 | (gdb-display-buffer): Dedicate gdb-related windows. Don't grab |
| 7 | other frames. | 11 | other frames. |
| 8 | (gdb-reset): Remove dedicated property after debugging. | 12 | (gdb-reset): Remove dedicated property after debugging. |
| @@ -48,20 +52,19 @@ | |||
| 48 | (math-comp-simplify, math-comp-simplify-term) | 52 | (math-comp-simplify, math-comp-simplify-term) |
| 49 | (math-comp-add-string, math-comp-add-string-sel): | 53 | (math-comp-add-string, math-comp-add-string-sel): |
| 50 | Replace variables comp-highlight, comp-buf, comp-base, | 54 | Replace variables comp-highlight, comp-buf, comp-base, |
| 51 | comp-height, comp-tag, comp-hpos and comp-vpos by declared | 55 | comp-height, comp-tag, comp-hpos and comp-vpos by declared variables. |
| 52 | variables. | ||
| 53 | 56 | ||
| 54 | 2004-11-23 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> | 57 | 2004-11-23 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> |
| 55 | 58 | ||
| 56 | * cus-start.el (all): Added x-use-old-gtk-file-dialog. | 59 | * cus-start.el (all): Add x-use-old-gtk-file-dialog. |
| 57 | 60 | ||
| 58 | * mail/emacsbug.el (report-emacs-bug): Catch error that x-server-vendor | 61 | * mail/emacsbug.el (report-emacs-bug): Catch error that x-server-vendor |
| 59 | and x-server-version may throw. | 62 | and x-server-version may throw. |
| 60 | 63 | ||
| 61 | 2004-11-23 Kim F. Storm <storm@cua.dk> | 64 | 2004-11-23 Kim F. Storm <storm@cua.dk> |
| 62 | 65 | ||
| 63 | * subr.el (substitute-key-definition-key): Optimize. Don't | 66 | * subr.el (substitute-key-definition-key): Optimize. |
| 64 | call indirect-function for nil defn (always signals error). | 67 | Don't call indirect-function for nil defn (always signals error). |
| 65 | 68 | ||
| 66 | * ido.el (ido-read-internal): Fix require-match check when | 69 | * ido.el (ido-read-internal): Fix require-match check when |
| 67 | ido-directory-too-big is set. | 70 | ido-directory-too-big is set. |
| @@ -71,8 +74,7 @@ | |||
| 71 | * calc/calc-ext.el (math-read-replacement-list) | 74 | * calc/calc-ext.el (math-read-replacement-list) |
| 72 | (math-read-superscripts): New variables. | 75 | (math-read-superscripts): New variables. |
| 73 | (math-read-preprocess-string): New function. | 76 | (math-read-preprocess-string): New function. |
| 74 | (math-read-expr): Filter input through | 77 | (math-read-expr): Filter input through math-read-preprocess-string. |
| 75 | math-read-preprocess-string. | ||
| 76 | 78 | ||
| 77 | * calc/calc-aent.el (math-read-exprs): Filter input through | 79 | * calc/calc-aent.el (math-read-exprs): Filter input through |
| 78 | math-read-preprocess-string. | 80 | math-read-preprocess-string. |
diff --git a/lisp/generic.el b/lisp/generic.el index 57937be6c0b..b246cd48d4a 100644 --- a/lisp/generic.el +++ b/lisp/generic.el | |||
| @@ -289,13 +289,15 @@ Some generic modes are defined in `generic-x.el'." | |||
| 289 | 289 | ||
| 290 | ;; Go through all the comments | 290 | ;; Go through all the comments |
| 291 | (dolist (start comment-list) | 291 | (dolist (start comment-list) |
| 292 | (let ((end ?\n) (comstyle "")) | 292 | (let ((end nil) (comstyle "")) |
| 293 | ;; Normalize | 293 | ;; Normalize |
| 294 | (when (consp start) | 294 | (when (consp start) |
| 295 | (setq end (or (cdr start) end)) | 295 | (setq end (or (cdr start) end)) |
| 296 | (setq start (car start))) | 296 | (setq start (car start))) |
| 297 | (when (char-valid-p start) (setq start (char-to-string start))) | 297 | (when (char-valid-p start) (setq start (char-to-string start))) |
| 298 | (when (char-valid-p end) (setq end (char-to-string end))) | 298 | (cond |
| 299 | ((char-valid-p end) (setq end (char-to-string end))) | ||
| 300 | ((zerop (length end)) (setq end "\n"))) | ||
| 299 | 301 | ||
| 300 | ;; Setup the vars for `comment-region' | 302 | ;; Setup the vars for `comment-region' |
| 301 | (if comment-start | 303 | (if comment-start |
| @@ -414,5 +416,5 @@ The regexp is highlighted with FACE." | |||
| 414 | 416 | ||
| 415 | (provide 'generic) | 417 | (provide 'generic) |
| 416 | 418 | ||
| 417 | ;;; arch-tag: 239c1fc4-1303-48d9-9ac0-657d655669ea | 419 | ;; arch-tag: 239c1fc4-1303-48d9-9ac0-657d655669ea |
| 418 | ;;; generic.el ends here | 420 | ;;; generic.el ends here |