Juanma Barranquero
4d6769e1bb
lisp/*: Add declarations, remove unused bindings, mark unused args.
...
* lisp/avoid.el (mouse-avoidance-mode): Mark unused arg.
(mouse-avoidance-nudge-mouse): Remove unused binding.
* lisp/imenu.el (imenu-default-goto-function): Mark unused args.
(imenu-progress-message): Remove obsolete macro; all callers changed.
* lisp/mouse.el (mouse-menu-major-mode-map):
* lisp/emacs-lisp/authors.el (authors-scan-change-log)
(authors-add-to-author-list):
* lisp/emacs-lisp/avl-tree.el (avl-tree--enter-balance):
* lisp/emacs-lisp/smie.el (smie-auto-fill):
* lisp/mail/sendmail.el (mail-bury):
* lisp/mail/unrmail.el (unrmail):
* lisp/net/tls.el (open-tls-stream):
* lisp/textmodes/picture.el (picture-mouse-set-point):
Remove unused bindings.
* lisp/subr.el (keymap-canonicalize): Remove unused binding.
(read-passwd): Mark unused arg.
* lisp/tutorial.el (tutorial--display-changes): Remove unused binding.
(tutorial--save-tutorial-to): Remove unused variable.
* lisp/emacs-lisp/package.el (define-package, package-menu-mark-delete)
(package-menu-mark-install, package-menu-mark-unmark): Mark unused args.
(package-generate-autoloads, package-menu--generate)
(package-menu--find-upgrades): Remove unused bindings.
* lisp/emulation/cua-rect.el (cua-restrict-regexp-rectangle)
(cua-restrict-prefix-rectangle): Doc fixes. Remove unused bindings.
(cua--mouse-ignore, cua--delete-rectangle, cua--extract-rectangle)
(cua--indent-rectangle, cua-open-rectangle, cua-close-rectangle)
(cua-blank-rectangle, cua-string-rectangle, cua-replace-in-rectangle)
(cua-incr-rectangle, cua-sequence-rectangle, cua--convert-rectangle-as)
(cua--rectangle-aux-replace, cua--left-fill-rectangle)
(cua-scroll-rectangle-up, cua-scroll-rectangle-down)
(cua-delete-char-rectangle): Mark unused args.
(cua-align-rectangle): Remove unused binding.
* lisp/mail/rmail.el (compilation--message->loc)
(epa--find-coding-system-for-mime-charset): Declare.
* lisp/net/dbus.el (dbus-register-service): Declare.
(dbus-name-owner-changed-handler): Remove unused binding.
* lisp/nxml/nxml-mode.el (nxml-electric-slash, nxml-in-mixed-content-p)
(nxml-compute-indent-from-matching-start-tag): Remove unused variables.
(nxml-scan-backward-within): Mark unused arg.
(nxml-dynamic-markup-word): Remove unused binding.
2012-04-19 19:20:26 +02:00
Chong Yidong
2c070447bf
* emacs-lisp/tabulated-list.el (tabulated-list-print): Fix typos.
2012-04-17 23:07:21 +08:00
Glenn Morris
d96a4f8829
Auto-commit of loaddefs files.
2012-04-17 06:21:15 -04:00
Glenn Morris
2311d8e5a6
Merge from pending; try to fix-up suboptimal ses ChangeLog.
2012-04-16 20:06:56 -07:00
Glenn Morris
099e72021d
* eieio-opt.el (describe-class, describe-generic): Autoload trivia.
2012-04-16 15:25:59 -04:00
Glenn Morris
389c3aa7b2
Header comment trivial fix
2012-04-16 15:21:32 -04:00
Glenn Morris
bf350d6a59
* lisp/emacs-lisp/cl-extra.el (*random-state*): Remove unnecessary declaration.
2012-04-16 15:20:42 -04:00
Chong Yidong
c505aaeb00
Call imagemagick-register-types automatically.
...
* lisp/image.el (imagemagick--extension-regexp): New variable.
(imagemagick-register-types): Use it.
(imagemagick-types-inhibit): Add :set function. Allow new value
of t to inhibit all types.
* lisp/loadup.el (fboundp): Preload regexp-opt, needed by
imagemagick-register-types.
* lisp/emacs-lisp/regexp-opt.el (regexp-opt-charset): Avoid cl macros,
so we can preload it.
2012-04-16 11:47:43 +08:00
Chong Yidong
e6fd457e01
Merge from emacs-24 branch
2012-04-15 15:28:01 +08:00
Stefan Monnier
9c2d6a4ab2
Avoid the use of ((lambda ...) ...) in lexical-binding code.
...
* emacs-lisp/easy-mmode.el (define-minor-mode): Use funcall.
Fixes: debbugs:11241
2012-04-14 08:48:27 -04:00
Lennart Borgman
050cc68b40
`narrow-to-defun' fixup
...
* emacs-lisp/lisp.el (narrow-to-defun): `beginning-of-defun' goes
to previous function when point is on the first character of a
function. Take care of that in `narrow-to-defun'.
Fixes: debbugs:6157
2012-04-11 04:12:20 +02:00
Stefan Monnier
2a718f6fbc
* lisp/emacs-lisp/autoload.el (autoload-make-program): Remove, unused.
2012-04-10 16:15:08 -04:00
Chong Yidong
fb7ada5f94
Remove * characters from the front of variable docstrings.
2012-04-09 21:05:48 +08:00
Chong Yidong
b4d3bc10dc
Remove defining user variables via * in docstring.
...
* lisp/apropos.el (apropos-variable):
* lisp/files-x.el (read-file-local-variable):
* lisp/simple.el (set-variable):
* lisp/woman.el (woman-mini-help):
* lisp/emacs-lisp/byte-opt.el (side-effect-free-fns): Callers changed.
* lisp/custom.el (custom-variable-p): Return nil for non-symbol
arguments instead of signaling an error.
(user-variable-p): Obsolete alias for custom-variable-p.
* lisp/erc/erc.el (erc-cmd-SET): Call custom-variable-p instead of
user-variable-p.
* src/callint.c (Finteractive, Fcall_interactively):
* src/minibuf.c (Fread_variable): Callers changed.
* src/eval.c (Fuser_variable_p, user_variable_p_eh)
(lisp_indirect_variable): Functions deleted.
(Fdefvar): Caller changed.
* doc/lispref/commands.texi (Interactive Codes):
* doc/lispref/help.texi (Accessing Documentation):
* doc/lispref/minibuf.texi (High-Level Completion): Callers changed.
* doc/lispref/customize.texi (Variable Definitions): Remove user-variable-p.
2012-04-09 20:36:01 +08:00
Glenn Morris
c0ea195db9
* emacs-lisp/authors.el (authors-aliases): Another addition.
2012-04-02 09:32:06 -07:00
Glenn Morris
0b0210946b
Edebug doc fixes
...
* doc/lispref/edebug.texi (Instrumenting Macro Calls):
Mention defining macros at instrumentation time.
(Edebug Options): Mention edebug-unwrap-results.
* lisp/emacs-lisp/edebug.el (edebug-unwrap-results): Doc fix.
Comments.
* admin/FOR-RELEASE: Markup.
2012-03-31 12:58:05 -07:00
Stefan Monnier
b973155e95
* lisp/emacs-lisp/avl-tree.el (avl-tree--enter-balance): Fix paren typo.
...
(avl-tree--check, avl-tree--check-node): New funs.
Fixes: debbugs:11077
2012-03-27 16:43:09 -04:00
Stefan Monnier
f9210e18be
* emacs-lisp/bytecomp.el (byte-compile-constants-vector): Allow more
...
than 197 variables.
2012-03-26 15:10:00 -04:00
Stefan Monnier
699c782b76
Merge from trunk
2012-03-25 16:37:21 -04:00
Chong Yidong
f0bcceb995
Improve column width calculation in tabulated-list.el.
...
* lisp/emacs-lisp/tabulated-list.el (tabulated-list-print-entry): Use
string-width and truncate-string-width to handle arbitrary
characters.
2012-03-20 23:44:45 +08:00
Leo Liu
e2b5bdd73a
* lisp/emacs-lisp/copyright.el (copyright-year-ranges): Fix typo.
2012-03-17 00:36:27 +08:00
Chong Yidong
3f2eafd1fb
Fix ring extension code in ring.el, and tweak comint-input-ring handling.
...
* lisp/emacs-lisp/ring.el (ring-extend): New function.
(ring-insert+extend): Extend the ring correctly.
* lisp/comint.el (comint-read-input-ring)
(comint-add-to-input-history): Grow comint-input-ring lazily.
Fixes: debbugs:11019
2012-03-15 16:00:43 +08:00
Chong Yidong
292112ed3b
Load a package's generated autoloads file before byte compiling it.
...
* lisp/emacs-lisp/package.el (package-unpack, package-unpack-single):
Load generated autoloads file before byte compiling.
(package--make-autoloads-and-compile): New helper fun.
Fixes: debbugs:10970
2012-03-12 11:03:16 +08:00
Chong Yidong
e24b21b447
* lisp/emacs-lisp/package.el: Bump package version to 1.0.
...
Fixes: debbugs:10838
2012-03-04 17:45:01 +08:00
Glenn Morris
44e97401cd
Standardize possessive apostrophe usage in manuals, docs, and comments
...
Ref: http://lists.gnu.org/archive/html/emacs-devel/2012-02/msg00649.html
2012-02-28 00:17:21 -08:00
Daniel Hackney
8ac9e52930
Fix oversight in package-load-list handling.
...
* lisp/emacs-lisp/package.el (package-compute-transaction): Handle
holding a package version to t in package-load-list.
2012-02-27 09:57:50 +08:00
Alan Mackenzie
2cb228f753
Add new parameter :after-hook to define-minor-mode. Use this in the
...
definition of font-lock-mode.
2012-02-23 18:51:22 +00:00
Dmitry Gutov
8e911f6f93
* lisp/emacs-lisp/lisp.el (beginning-of-defun-raw): Don't call end-of-defun
...
when it might call us back infinitely.
Fixes: debbugs:10797
2012-02-23 03:13:48 -05:00
Glenn Morris
342f816360
Another authors.el alias
2012-02-22 20:58:53 -05:00
Glenn Morris
5e6e679443
More authors.el additions
...
* lisp/emacs-lisp/authors.el (authors-aliases, authors-fixed-case)
(authors-obsolete-files-regexps): Add more entries.
2012-02-22 20:52:35 -05:00
Glenn Morris
31a9ef2e3b
Small authors.el updates
...
* lisp/emacs-lisp/authors.el (authors-aliases)
(authors-obsolete-files-regexps, authors-ignored-files)
(authors-ambiguous-files, authors-renamed-files-alist):
Add more entries.
2012-02-22 20:33:46 -05:00
Glenn Morris
c60293480d
* lisp/emacs-lisp/authors.el (authors-aliases): Add another entry.
2012-02-20 12:23:47 -08:00
Stefan Monnier
3f99e6e686
* lisp/emacs-lisp/smie.el: Provide smarter auto-filling.
...
(smie-auto-fill): New function.
(smie-setup): Use it.
2012-02-15 09:38:21 -05:00
Glenn Morris
2bed3f0483
Add missing :version tags to new defgroups and defcustoms
...
* window.el (window-sides-slots):
* tool-bar.el (tool-bar-position):
* term/xterm.el (xterm-extra-capabilities):
* ses.el (ses-self-reference-early-detection):
* progmodes/verilog-mode.el (verilog-auto-declare-nettype)
(verilog-auto-wire-type)
(verilog-auto-delete-trailing-whitespace)
(verilog-auto-reset-blocking-in-non, verilog-auto-inst-sort)
(verilog-auto-tieoff-declaration):
* progmodes/sql.el (sql-login-hook, sql-ansi-statement-starters)
(sql-oracle-statement-starters, sql-oracle-scan-on):
* progmodes/prolog.el (prolog-align-comments-flag)
(prolog-indent-mline-comments-flag, prolog-object-end-to-0-flag)
(prolog-left-indent-regexp, prolog-paren-indent-p)
(prolog-paren-indent, prolog-parse-mode, prolog-keywords)
(prolog-types, prolog-mode-specificators)
(prolog-determinism-specificators, prolog-directives)
(prolog-electric-newline-flag, prolog-hungry-delete-key-flag)
(prolog-electric-dot-flag)
(prolog-electric-dot-full-predicate-template)
(prolog-electric-underscore-flag, prolog-electric-tab-flag)
(prolog-electric-if-then-else-flag, prolog-electric-colon-flag)
(prolog-electric-dash-flag, prolog-old-sicstus-keys-flag)
(prolog-program-switches, prolog-prompt-regexp)
(prolog-debug-on-string, prolog-debug-off-string)
(prolog-trace-on-string, prolog-trace-off-string)
(prolog-zip-on-string, prolog-zip-off-string)
(prolog-use-standard-consult-compile-method-flag)
(prolog-use-prolog-tokenizer-flag, prolog-imenu-flag)
(prolog-imenu-max-lines, prolog-info-predicate-index)
(prolog-underscore-wordchar-flag, prolog-use-sicstus-sd)
(prolog-char-quote-workaround):
* progmodes/cc-vars.el (c-defun-tactic):
* net/tramp.el (tramp-encoding-command-interactive)
(tramp-local-end-of-line):
* net/soap-client.el (soap-client):
* net/netrc.el (netrc-file):
* net/gnutls.el (gnutls):
* minibuffer.el (completion-category-overrides)
(completion-cycle-threshold)
(completion-pcm-complete-word-inserts-delimiters):
* man.el (Man-name-local-regexp):
* mail/feedmail.el (feedmail-display-full-frame):
* international/characters.el (glyphless-char-display-control):
* eshell/em-ls.el (eshell-ls-date-format):
* emacs-lisp/cl-indent.el (lisp-lambda-list-keyword-alignment)
(lisp-lambda-list-keyword-parameter-indentation)
(lisp-lambda-list-keyword-parameter-alignment):
* doc-view.el (doc-view-image-width, doc-view-unoconv-program):
* dired-x.el (dired-omit-verbose):
* cus-theme.el (custom-theme-allow-multiple-selections):
* calc/calc.el (calc-highlight-selections-with-faces)
(calc-lu-field-reference, calc-lu-power-reference)
(calc-note-threshold):
* battery.el (battery-mode-line-limit):
* arc-mode.el (archive-7z-extract, archive-7z-expunge)
(archive-7z-update):
* allout.el (allout-prefixed-keybindings)
(allout-unprefixed-keybindings)
(allout-inhibit-auto-fill-on-headline)
(allout-flattened-numbering-abbreviation):
* allout-widgets.el (allout-widgets-auto-activation)
(allout-widgets-icons-dark-subdir)
(allout-widgets-icons-light-subdir, allout-widgets-icon-types)
(allout-widgets-theme-dark-background)
(allout-widgets-theme-light-background)
(allout-widgets-item-image-properties-emacs)
(allout-widgets-item-image-properties-xemacs)
(allout-widgets-run-unit-tests-on-load)
(allout-widgets-time-decoration-activity)
(allout-widgets-hook-error-post-time)
(allout-widgets-track-decoration):
* gnus/sieve-manage.el (sieve-manage-default-stream):
* gnus/shr.el (shr):
* gnus/nnir.el (nnir-ignored-newsgroups, nnir-summary-line-format)
(nnir-retrieve-headers-override-function)
(nnir-imap-default-search-key, nnir-notmuch-program)
(nnir-notmuch-additional-switches, nnir-notmuch-remove-prefix)
(nnir-method-default-engines):
* gnus/message.el (message-cite-reply-position):
* gnus/gssapi.el (gssapi-program):
* gnus/gravatar.el (gravatar):
* gnus/gnus-sum.el (gnus-refer-thread-use-nnir):
* gnus/gnus-registry.el (gnus-registry-unfollowed-addresses)
(gnus-registry-max-pruned-entries):
* gnus/gnus-picon.el (gnus-picon-inhibit-top-level-domains):
* gnus/gnus-int.el (gnus-after-set-mark-hook)
(gnus-before-update-mark-hook):
* gnus/gnus-async.el (gnus-async-post-fetch-function):
* gnus/auth-source.el (auth-source-cache-expiry):
Add missing :version tags to new defcustoms and defgroups.
2012-02-11 14:13:29 -08:00
Leo Liu
1be3ca5ad7
Rename condition-case-no-debug to condition-case-unless-debug
2012-02-10 23:59:29 +08:00
Chong Yidong
25dec36509
Update Compilation and Advice chapters in Lisp manual.
...
* doc/lispref/advice.texi (Defining Advice): Clarify ad-unadvise.
(Activation of Advice): Specifying the ACTIVATE flag in defadvice
is not abnormal.
(Advising Primitives): Node deleted; ad-define-subr-args has been
removed.
* doc/lispref/compile.texi (Speed of Byte-Code): Use float-time in example.
(Compilation Functions): Note that the log uses Compilation mode.
Don't discuss the contents of byte-code function object here.
(Compilation Functions): De-document internal function byte-code.
(Docs and Compilation): Minor clarifications.
* doc/lispref/objects.texi (Byte-Code Type): Add xref to Byte-Code Function
Objects.
* lisp/emacs-lisp/advice.el: Update commentary to reflect deletion of
ad-define-subr-args
2012-02-10 23:50:11 +08:00
Stefan Monnier
f3934f6fef
* lisp/emacs-lisp/bytecomp.el (byte-compile-file-form-defvar):
...
Don't fallback on byte-compile-defvar. Optimize (defvar foo) away.
(byte-compile-tmp-var): New const.
(byte-compile-defvar): Use it to minimize .elc size.
Just use `defvar' rather than simulate it.
Fixes: debbugs:10761
2012-02-09 16:51:03 -05:00
Glenn Morris
60d47423d1
Doc updates for define-minor-mode argument behavior
...
* doc/lispref/modes.texi (Defining Minor Modes):
Expand on args of defined minor modes.
* lisp/emacs-lisp/easy-mmode.el (define-minor-mode):
Doc fixes for the macro and the mode it defines.
2012-02-07 00:26:54 -08:00
Juanma Barranquero
0696d25514
lisp/emacs-lisp/pp.el: Do not reimplement common macros; use `looking-at-p'.
...
(pp-to-string): Use `with-temp-buffer'.
(pp-buffer): Use `ignore-errors', `looking-at-p'.
(pp-last-sexp): Use `looking-at-p'.
2012-02-05 03:09:35 +01:00
Glenn Morris
f160676e2d
ert-x trivia
...
* lisp/emacs-lisp/ert-x.el (ert-simulate-command):
Check deferred-action-list (which is obsolete) is bound.
* etc/NEWS: Related markup.
2012-02-04 13:18:46 -08:00
Leo Liu
e96e30135e
Fix dead link in smie.el
...
http://debbugs.gnu.org/10711
2012-02-04 16:43:26 +08:00
Glenn Morris
781acb9f3a
Tweak previous define-minor-mode change
...
* lisp/emacs-lisp/easy-mmode.el (define-minor-mode):
Relax :variable's test for a named function.
2012-01-31 21:17:17 -05:00
Glenn Morris
60dc267191
* lisp/emacs-lisp/easy-mmode.el (define-minor-mode): Doc fix.
2012-01-30 20:52:29 -08:00
Glenn Morris
6c9b47ae84
Small define-minor-mode fix for variable: keyword.
...
* lisp/emacs-lisp/easy-mmode.el (define-minor-mode):
Allow named functions to be used as the cdr of variable:.
2012-01-30 20:35:57 -08:00
Glenn Morris
e58e988add
* lisp/emacs-lisp/easy-mmode.el (define-minor-mode): Fix :variable case.
2012-01-30 17:53:20 -08:00
Glenn Morris
7a3f511d4b
authors.el trivia
...
* lisp/emacs-lisp/authors.el (authors-fixed-entries):
Remove reference to deleted file rnewspost.el.
2012-01-30 00:24:14 -08:00
Chong Yidong
db17443466
Make Emacs Lisp mode use emacs-lisp-mode-abbrev-table.
...
* lisp/emacs-lisp/lisp-mode.el (emacs-lisp-mode-abbrev-table): Define
and use in Emacs Lisp mode.
(lisp-mode-abbrev-table): Add doc.
(lisp-mode-variables): Don't set local-abbrev-table.
(lisp-interaction-mode): Use emacs-lisp-mode-abbrev-table.
Fixes: debbugs:9360
2012-01-29 12:45:51 +08:00
Phil Hagelberg
70550acf88
Fix M-x package-install failure if no archive has been fetched yet.
...
* emacs-lisp/package.el (package-install): Run
package-refresh-contents if there is no archive yet.
Fixes: debbugs:97978
2012-01-28 17:49:29 +08:00
Chong Yidong
0ce8e868b9
Fix package.el dependency handling so that `require' calls work.
...
* lisp/emacs-lisp/package.el (package-maybe-load-descriptor): New
function, split from package-maybe-load-descriptor.
(package-maybe-load-descriptor): Use it.
(package-download-transaction): Fully load required packages
inside the loop, so that `require' calls work.
(package-install): No need to call package-initialize now.
Fixes: debbugs:10593
2012-01-28 16:14:24 +08:00
Glenn Morris
48da739227
Doc fix for lexical-binding being in line one.
...
Ref http://lists.gnu.org/archive/html/emacs-devel/2012-01/msg00543.html
* doc/lispref/variables.texi (Using Lexical Binding):
Mention that lexical-binding should be set in the first line.
* src/lread.c (syms_of_lread): Doc fix.
* lisp/emacs-lisp/tabulated-list.el, lisp/progmodes/f90.el:
Move lexical-binding file-local to line one.
* etc/NEWS: lexical-binding should be ine the first line.
2012-01-25 22:30:49 -08:00