diff options
| author | Stefan Monnier | 2015-03-30 17:51:50 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2015-03-30 17:51:50 -0400 |
| commit | ef37e79aae7a64f3c30f7ff4350c8f3a3c6c7b20 (patch) | |
| tree | 7320acdd4f34fe20ac7ed82d6cc2c05b14586037 | |
| parent | 05a5a94000b82c81dc86cb7e2f3b4010bb2a4f0b (diff) | |
| download | emacs-ef37e79aae7a64f3c30f7ff4350c8f3a3c6c7b20.tar.gz emacs-ef37e79aae7a64f3c30f7ff4350c8f3a3c6c7b20.zip | |
* eieio-base.el (make-instance) <eieio-named>: New instance.
| -rw-r--r-- | lisp/ChangeLog | 36 | ||||
| -rw-r--r-- | lisp/emacs-lisp/eieio-base.el | 9 |
2 files changed, 30 insertions, 15 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 649e8849732..e6ecf0fe09a 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,14 +1,20 @@ | |||
| 1 | 2015-03-30 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * emacs-lisp/eieio-base.el (make-instance) <eieio-named>: New instance | ||
| 4 | which stores the old-style object name argument into the | ||
| 5 | object-name field. | ||
| 6 | |||
| 1 | 2015-03-30 Alan Mackenzie <acm@muc.de> | 7 | 2015-03-30 Alan Mackenzie <acm@muc.de> |
| 2 | 8 | ||
| 3 | Correct calculation of CC Mode's font-lock region. | 9 | Correct calculation of CC Mode's font-lock region. |
| 4 | 10 | ||
| 5 | * progmodes/cc-mode.el (c-fl-decl-start): Renamed from | 11 | * progmodes/cc-mode.el (c-fl-decl-start): Rename from |
| 6 | c-set-fl-decl-start. Change signature such that nil is returned | 12 | c-set-fl-decl-start. Change signature such that nil is returned |
| 7 | when no declaration is found. | 13 | when no declaration is found. |
| 8 | (c-change-expand-fl-region): Renamed from | 14 | (c-change-expand-fl-region): Rename from |
| 9 | c-change-set-fl-decl-start. This now also handles expanding the | 15 | c-change-set-fl-decl-start. This now also handles expanding the |
| 10 | font lock region to whole lines. | 16 | font lock region to whole lines. |
| 11 | (c-context-expand-fl-region): Renamed from | 17 | (c-context-expand-fl-region): Rename from |
| 12 | c-context-set-fl-decl-start. This now also handles expanding the | 18 | c-context-set-fl-decl-start. This now also handles expanding the |
| 13 | font lock region to whole lines. | 19 | font lock region to whole lines. |
| 14 | (c-font-lock-fontify-region): When a change font lock region is | 20 | (c-font-lock-fontify-region): When a change font lock region is |
| @@ -66,15 +72,15 @@ | |||
| 66 | 72 | ||
| 67 | 2015-03-27 Wolfgang Jenkner <wjenkner@inode.at> | 73 | 2015-03-27 Wolfgang Jenkner <wjenkner@inode.at> |
| 68 | 74 | ||
| 69 | * font-lock.el (font-lock--remove-face-from-text-property): New | 75 | * font-lock.el (font-lock--remove-face-from-text-property): |
| 70 | function. Adapted from the previously commented out | 76 | New function. Adapted from the previously commented out |
| 71 | remove-single-text-property. | 77 | remove-single-text-property. |
| 72 | Remove previously unused and commented out auxiliary function | 78 | Remove previously unused and commented out auxiliary function |
| 73 | remove-text-property and obsolete comment. | 79 | remove-text-property and obsolete comment. |
| 74 | * comint.el (comint-output-filter): Use it to remove | 80 | * comint.el (comint-output-filter): Use it to remove |
| 75 | comint-highlight-prompt. | 81 | comint-highlight-prompt. |
| 76 | (comint-snapshot-last-prompt, comint-output-filter): Use | 82 | (comint-snapshot-last-prompt, comint-output-filter): |
| 77 | font-lock-prepend-text-property for comint-highlight-prompt. | 83 | Use font-lock-prepend-text-property for comint-highlight-prompt. |
| 78 | (Bug#20084) | 84 | (Bug#20084) |
| 79 | 85 | ||
| 80 | 2015-03-26 Daniel Colascione <dancol@dancol.org> | 86 | 2015-03-26 Daniel Colascione <dancol@dancol.org> |
| @@ -221,15 +227,15 @@ | |||
| 221 | 227 | ||
| 222 | Automatically adjust process window sizes. | 228 | Automatically adjust process window sizes. |
| 223 | 229 | ||
| 224 | * window.el (window-adjust-process-window-size-function): New | 230 | * window.el (window-adjust-process-window-size-function): |
| 225 | customizable variable. | 231 | New customizable variable. |
| 226 | (window-adjust-process-window-size) | 232 | (window-adjust-process-window-size) |
| 227 | (window-adjust-process-window-size-smallest) | 233 | (window-adjust-process-window-size-smallest) |
| 228 | (window-adjust-process-window-size-largest) | 234 | (window-adjust-process-window-size-largest) |
| 229 | (window--process-window-list, window--adjust-process-windows): | 235 | (window--process-window-list, window--adjust-process-windows): |
| 230 | New functions. | 236 | New functions. |
| 231 | (window-configuration-change-hook): Add | 237 | (window-configuration-change-hook): |
| 232 | `window--adjust-process-windows'. | 238 | Add `window--adjust-process-windows'. |
| 233 | * term.el (term-mode): Observe result of | 239 | * term.el (term-mode): Observe result of |
| 234 | `window-adjust-process-window-size-function'. | 240 | `window-adjust-process-window-size-function'. |
| 235 | (term-check-size): Delete. | 241 | (term-check-size): Delete. |
| @@ -261,13 +267,13 @@ | |||
| 261 | 267 | ||
| 262 | 2015-03-21 Tassilo Horn <tsdh@gnu.org> | 268 | 2015-03-21 Tassilo Horn <tsdh@gnu.org> |
| 263 | 269 | ||
| 264 | * emacs-lisp/lisp-mode.el (lisp-el-font-lock-keywords-1): Also | 270 | * emacs-lisp/lisp-mode.el (lisp-el-font-lock-keywords-1): |
| 265 | recognize (cl-)defmethod with (setf method) name. | 271 | Also recognize (cl-)defmethod with (setf method) name. |
| 266 | 272 | ||
| 267 | 2015-03-20 Tassilo Horn <tsdh@gnu.org> | 273 | 2015-03-20 Tassilo Horn <tsdh@gnu.org> |
| 268 | 274 | ||
| 269 | * emacs-lisp/lisp-mode.el (lisp-el-font-lock-keywords-1): Fix | 275 | * emacs-lisp/lisp-mode.el (lisp-el-font-lock-keywords-1): |
| 270 | false positive in function name font-locking. | 276 | Fix false positive in function name font-locking. |
| 271 | (lisp-cl-font-lock-keywords-1): Ditto. | 277 | (lisp-cl-font-lock-keywords-1): Ditto. |
| 272 | 278 | ||
| 273 | 2015-03-20 Stefan Monnier <monnier@iro.umontreal.ca> | 279 | 2015-03-20 Stefan Monnier <monnier@iro.umontreal.ca> |
diff --git a/lisp/emacs-lisp/eieio-base.el b/lisp/emacs-lisp/eieio-base.el index 5b3d9029c53..c2eab202881 100644 --- a/lisp/emacs-lisp/eieio-base.el +++ b/lisp/emacs-lisp/eieio-base.el | |||
| @@ -498,6 +498,15 @@ All slots are unbound, except those initialized with PARAMS." | |||
| 498 | (concat nm "-1"))))) | 498 | (concat nm "-1"))))) |
| 499 | nobj)) | 499 | nobj)) |
| 500 | 500 | ||
| 501 | (cl-defmethod make-instance ((class (subclass eieio-named)) &rest args) | ||
| 502 | (if (not (stringp (car args))) | ||
| 503 | (cl-call-next-method) | ||
| 504 | (funcall (if eieio-backward-compatibility #'ignore #'message) | ||
| 505 | "Obsolete: name passed without :object-name to %S constructor" | ||
| 506 | class) | ||
| 507 | (apply #'cl-call-next-method class :object-name args))) | ||
| 508 | |||
| 509 | |||
| 501 | (provide 'eieio-base) | 510 | (provide 'eieio-base) |
| 502 | 511 | ||
| 503 | ;;; eieio-base.el ends here | 512 | ;;; eieio-base.el ends here |