1. 09 Jan, 2014 1 commit
    • David Engster's avatar
      Restore generated autoloads in eieio.el. · 05e0afce
      David Engster authored
      * emacs-lisp/eieio-custom.el:
      * emacs-lisp/eieio-opt.el: Set generated autoload file to
      'eieio.el'.  This was accidentally removed in 2012-10-01T18:10:29Z!cyd@gnu.org.
      * emacs-lisp/eieio.el: Regenerate autoloads.
      05e0afce
  2. 08 Jan, 2014 1 commit
    • David Engster's avatar
      Rewrite EIEIO help functions and hook them into help system. · 0f918d96
      David Engster authored
      * help-fns.el (help-fns-describe-function-functions): New
      variable to call functions for augmenting help buffers.
      (describe-function-1): Remove explicit calls to
      `help-fns--compiler-macro', `help-fns--parent-mode' and
      `help-fns--obsolete'.  Put them in above new variable instead, and
      call them through `run-hook-with-args'.
      * emacs-lisp/eieio-opt.el (eieio-help-class): Rename from
      `eieio-describe-class'.  Not meant for interactive use anymore,
      but to augment existing help buffers.  Remove optional second
      argument.  Create proper button for file location.  Rewrite
      function to use `insert' instead of `princ' and `prin1' where
      possible.
      (eieio-help-class-slots): Rename from `eieio-describe-class-slots'.
      (eieio-method-def, eieio-class-def): Move further up.
      (describe-method, describe-generic, eieio-describe-method): Remove
      aliases.
      (eieio-help-constructor, eieio-help-generic): Rename from
      `eieio-describe-constructor' and `eieio-describe-generic', resp.
      Rewrite to use `insert' in the current buffer and use proper help
      buttons.
      (eieio-help-find-method-definition)
      (eieio-help-find-class-definition): Also accept symbols as
      arguments.
      (eieio-help-mode-augmentation-maybee): Remove.
      (eieio-describe-class-sb): Use `describe-function'.
      * emacs-lisp/eieio.el (help-fns-describe-function-functions): Add
      `eieio-help-generic' and `eieio-help-constructor'.
      0f918d96
  3. 01 Jan, 2014 1 commit
  4. 19 Sep, 2013 2 commits
  5. 19 Jun, 2013 1 commit
  6. 02 Jun, 2013 1 commit
    • David Engster's avatar
      Merge from CEDET upstream (8564). · 890f7890
      David Engster authored
      * lisp/emacs-lisp:
      
      	* emacs-lisp/eieio.el (eieio--defalias, eieio-hook)
      	(eieio-error-unsupported-class-tags, eieio-skip-typecheck)
      	(eieio-optimize-primary-methods-flag, eieio-initializing-object)
      	(eieio-unbound, eieio-default-superclass)
      	(eieio--define-field-accessors, method-static, method-before)
      	(method-primary, method-after, method-num-lists)
      	(method-generic-before, method-generic-primary)
      	(method-generic-after, method-num-slots)
      	(eieio-specialized-key-to-generic-key)
      	(eieio--check-type, class-v, class-p)
      	(eieio-class-name, define-obsolete-function-alias)
      	(eieio-class-parents-fast, eieio-class-children-fast)
      	(same-class-fast-p, class-constructor, generic-p)
      	(generic-primary-only-p, generic-primary-only-one-p)
      	(class-option-assoc, class-option, eieio-object-p)
      	(class-abstract-p, class-method-invocation-order)
      	(eieio-defclass-autoload-map, eieio-defclass-autoload)
      	(eieio-class-un-autoload, eieio-defclass)
      	(eieio-eval-default-p, eieio-perform-slot-vali...
      890f7890
  7. 30 May, 2013 1 commit
  8. 19 Feb, 2013 1 commit
    • Stefan Monnier's avatar
      Cleanup some of EIEIO's namespace. · 8ca4f1e0
      Stefan Monnier authored
      * lisp/emacs-lisp/eieio.el (eieio--define-field-accessors): New macro.
      Use it to define all the class-* and object-* field accessors (renamed
      to eieio--class-* and eieio--object-*).  Update all uses.
      (eieio--class-num-slots, eieio--object-num-slots): Rename from
      class-num-slots and object-num-slots.
      (eieio--check-type): New macro.
      (eieio-defclass, eieio-oref, eieio-oref-default, same-class-p)
      (object-of-class-p, child-of-class-p, object-slots, class-slot-initarg)
      (eieio-oset, eieio-oset-default, object-assoc, object-assoc-list)
      (object-assoc-list-safe): Use it.
      (eieio-defclass): Tighten regexp.
      (eieio--defmethod): Use `memq'.  Signal an error for unknown method kind.
      Remove unreachable code.
      (object-class-fast): Declare obsolete.
      (eieio-class-name, eieio-object-name, eieio-object-set-name-string)
      (eieio-object-class, eieio-object-class-name, eieio-class-parents)
      (eieio-class-children, eieio-class-precedence-list, eieio-class-parent):
      Rename from class-name, object-name, object-set-name-string,
      object-class, object-class-name, class-parents, class-children,
      class-precedence-list, class-parent; with obsolete alias.
      (class-of, class-direct-superclasses, class-direct-subclasses):
      Declare obsolete.
      (eieio-defmethod): Use `memq'; remove unreachable code.
      * lisp/emacs-lisp/eieio-base.el (eieio-persistent-read):
      * lisp/emacs-lisp/eieio-opt.el (eieio-class-button, eieio-describe-generic)
      (eieio-browse-tree, eieio-browse): Use eieio--check-type.
      8ca4f1e0
  9. 31 Jan, 2013 1 commit
  10. 01 Jan, 2013 1 commit
  11. 12 Dec, 2012 1 commit
    • Jonas Bernoulli's avatar
      * lisp/emacs-lisp/eieio.el: Prettier object pretty-printing. · 69e1c203
      Jonas Bernoulli authored
      (eieio-override-prin1): Don't quote kewords and booleans.
      (object-write) <eieio-default-superclass>: Don't put closing parens
      on new line, avoid needless empty lines, align values that are objects
      with the slot keyword (instead of beginning on the same line).
      (eieio-list-prin1): Align value with slot keyword; increase
      eieio-print-depth before printing members of the list.
      
      Fixes: debbugs:13115
      69e1c203
  12. 25 Oct, 2012 1 commit
    • David Engster's avatar
      Merge CEDET upstream. · 3f2a848d
      David Engster authored
      * emacs-lisp/eieio.el (eieio-update-lisp-imenu-expression):
      Removed.  This feature is already integrated in imenu.
      
      * emacs-lisp/eieio-opt.el: Remove require for `button' since it is
      always loaded.  Require `speedbar' unconditionally.
      
      * semantic/analyze.el (semantic-analyze-dereference-alias): New
      function to dereference aliases.
      (semantic-analyze-current-context-default): Use it.
      
      * semantic/grammar.el (semantic-grammar-create-package):
      * srecode/compile.el (srecode-compile-templates): Throw a proper
      error if semantic-mode is not enabled (bug#9968).
      
      Compiler warning fixes:
      
      * semantic.el (semantic-elapsed-time): Make it a defsubst.
      
      * srecode/dictionary.el (srecode-adebug-dictionary): Remove
      require for `semantic'.
      
      * srecode/map.el:
      * srecode/insert.el: Declare functions from `data-debug'.
      
      * semantic/grammar.el: Require `help-fns'.  Declare functions from
      `eldoc', which is required in function body.
      
      * srecode/java.el:
      * semantic/texi.el:
      * semantic/grammar-wy.el:
      * semantic/db-file.el:
      * semantic/db-el.el:
      * semantic/chart.el: Fix requires.
      
      * ede/locate.el: Remove useless requires. Declare functions
      instead and require in functions when needed.
      3f2a848d
  13. 23 Oct, 2012 1 commit
    • Stefan Monnier's avatar
      Cleanup uses of "-hooks". · d1069532
      Stefan Monnier authored
      * doc/emacs/custom.texi (Hooks):
      * doc/lispref/hooks.texi (Standard Hooks): Clarify that -hooks is deprecated.
      
      * lisp/gnus/nndiary.el (nndiary-request-create-group-functions)
      (nndiary-request-update-info-functions)
      (nndiary-request-accept-article-functions):
      * lisp/gnus/gnus-start.el (gnus-subscribe-newsgroup-functions):
      * lisp/cedet/semantic/db-file.el (semanticdb-save-database-functions):
      * lisp/cedet/semantic/lex.el (semantic-lex-reset-functions):
      * lisp/cedet/semantic/edit.el (semantic-change-functions)
      (semantic-edits-new-change-functions)
      (semantic-edits-delete-change-functions)
      (semantic-edits-reparse-change-functions):
      * lisp/htmlfontify.el (hfy-post-html-hook):
      * lisp/filesets.el (filesets-cache-fill-content-hook):
      * lisp/arc-mode.el (archive-extract-hook):
      * lisp/progmodes/cc-mode.el (c-prepare-bug-report-hook):
      * lisp/net/rcirc.el (rcirc-sentinel-functions)
      (rcirc-receive-message-functions, rcirc-activity-functions)
      (rcirc-print-functions):
      * lisp/net/dbus.el (dbus-event-error-functions):
      * lisp/emacs-lisp/eieio.el (eieio-pre-method-execution-functions):
      * lisp/emacs-lisp/checkdoc.el (checkdoc-style-functions)
      (checkdoc-comment-style-functions): Don't use "-hooks" suffix.
      
      * lisp/term/sun.el (sun-raw-prefix-hooks):
      * lisp/mail/sendmail.el (mail-yank-hooks):
      * lisp/mh-e/mh-letter.el (mh-yank-hooks): Use make-obsolete-variable.
      d1069532
  14. 14 Oct, 2012 1 commit
  15. 12 Oct, 2012 1 commit
  16. 02 Oct, 2012 1 commit
  17. 01 Oct, 2012 1 commit
  18. 15 Aug, 2012 1 commit
  19. 18 Jul, 2012 1 commit
  20. 13 Jul, 2012 1 commit
    • Chong Yidong's avatar
      Don't warn on toggle-read-only calls. · b68b3337
      Chong Yidong authored
      Clarify the documentation of toggle-read-only, and audit the code tree
      for uses of toggle-read-only; where appropriate, switch to setting the
      variable buffer-read-only or calling toggle-read-only with a (new)
      second arg.
      
      * lisp/files.el (toggle-read-only): Doc fix and code cleanup.  New arg
      to allow printing the message when called from Lisp.
      
      * lisp/emacs-lisp/bytecomp.el (byte-compile-interactive-only-functions):
      Remove toggle-read-only.
      
      * lisp/bindings.el (mode-line-toggle-read-only):
      * lisp/dired.el (dired-toggle-read-only):
      * lisp/ibuffer.el (ibuffer-do-toggle-read-only): Call toggle-read-only
      with non-nil second arg.
      
      * lisp/bs.el (bs-toggle-readonly):
      * lisp/buff-menu.el (Buffer-menu-toggle-read-only): Remove
      with-no-warnings around toggle-read-only.
      
      * lisp/ffap.el (ffap--toggle-read-only): Accept a list of buffers.
      Remove with-no-warnings around toggle-read-only.
      (ffap-read-only, ffap-read-only-other-window)
      (ffap-read-only-other-frame): Callers changed.
      
      * lisp/help-mode.el: Don't require view package.
      (help-mode-finish): Set buffer-read-only instead of calling
      toggle-read-only.
      
      * lisp/emacs-lisp/eieio-custom.el (eieio-customize-object):
      * lisp/vc/ediff.el (ediff-set-read-only-in-buf-A): Set buffer-read-only
      directly.
      
      * lisp/gnus/smime.el (smime-certificate-info): Set buffer-read-only directly,
      instead of calling toggle-read-only with a (bogus) argument.
      
      * doc/emacs/buffers.texi (Misc Buffer): Document view-read-only.
      
      * doc/lispref/buffers.texi (Read Only Buffers): Document toggle-read-only
      changes.  Reword to account for the fact that read-only is currently not
      supported in overlay properties.
      b68b3337
  21. 23 Jun, 2012 1 commit
    • Stefan Monnier's avatar
      Miscellaneous minor cleanups and simplifications. · dc5d230c
      Stefan Monnier authored
      * lisp/help-fns.el (describe-variable): Don't croak when doc is not found.
      * lisp/vc/pcvs.el (cvs-retrieve-revision): Avoid toggle-read-only.
      * lisp/menu-bar.el (menu-bar-line-wrapping-menu): Purecopy a tiny bit more.
      * lisp/emacs-lisp/syntax.el (syntax-ppss): Simplify with new `if' place.
      * lisp/emacs-lisp/smie.el (smie-next-sexp): CSE.
      * lisp/emacs-lisp/macroexp.el (macroexp-let2): Fix edebug spec and avoid
      ((lambda ..) ..).
      * lisp/emacs-lisp/eieio.el (eieio-oref, slot-value): Use simpler defsetf.
      dc5d230c
  22. 12 Jun, 2012 1 commit
    • Chong Yidong's avatar
      Various minor variable/hook cleanups. · f1a4e679
      Chong Yidong authored
      * lisp/emacs-lisp/edebug.el (edebug-inhibit-emacs-lisp-mode-bindings):
      Rename from gud-inhibit-global-bindings.
      
      * lisp/emacs-lisp/eieio.el (eieio-pre-method-execution-hooks): Doc fix.
      
      * lisp/erc/erc-dcc.el (erc-dcc-chat-filter-functions): Rename from
      erc-dcc-chat-filter-hook, since this is an abnormal hook.
      
      * lisp/nxml/nxml-glyph.el (nxml-glyph-set-functions): Rename abnormal
      hook from nxml-glyph-set-hook.
      
      * lisp/progmodes/cwarn.el (cwarn-mode): Remove redundant variable
      declaration.
      
      * lisp/progmodes/pascal.el (pascal-toggle-completions): Doc fix.
      
      * lisp/textmodes/bibtex.el (bibtex-string-file-path, bibtex-file-path):
      Convert to defcustom.
      
      * lisp/url/url-handlers.el (url-handler-regexp):
      * lisp/url/url-nfs.el (url-nfs-automounter-directory-spec):
      * lisp/url/url-vars.el (url-load-hook): Convert to defcustom.
      f1a4e679
  23. 20 Apr, 2012 1 commit
  24. 09 Apr, 2012 1 commit
  25. 11 Jan, 2012 1 commit
  26. 06 Jan, 2012 1 commit
  27. 05 Jan, 2012 1 commit
  28. 04 Dec, 2011 1 commit
  29. 23 Nov, 2011 1 commit
  30. 16 Nov, 2011 1 commit
  31. 15 Nov, 2011 1 commit
  32. 14 Nov, 2011 2 commits
  33. 13 Nov, 2011 1 commit
  34. 23 Aug, 2011 1 commit
  35. 23 May, 2011 1 commit
  36. 16 May, 2011 1 commit
  37. 08 May, 2011 1 commit
  38. 07 May, 2011 1 commit