Commit graph

48493 commits

Author SHA1 Message Date
Stefan Monnier
d988dbf687 (byte-compile-const-symbol-p):
Recognize immutable variables like most-positive-fixnum.
(byte-compile-setq-default): Check and warn if trying to assign
to an immutable variable, or a non-variable.
2009-08-29 14:44:45 +00:00
Stefan Monnier
265ac10b18 * spam.el (spam-ifile-path, spam-bogofilter-path, spam-sa-learn-path)
(spam-ifile-database-path, spam-bsfilter-path, spam-spamassassin-path):
* nnmail.el (nnmail-spool-file, nnmail-fix-eudora-headers):
* nnir.el (nnir-swish-e-index-file):
* gnus-sum.el (gnus-summary-delete-marked-as-read)
(gnus-summary-delete-marked-with, gnus-summary-mark-as-unread-forward)
(gnus-summary-mark-as-unread-backward, gnus-summary-mark-as-unread):
* gnus-msg.el (gnus-inews-mark-gcc-as-read):
* gnus-art.el (gnus-article-hide-pgp-hook, gnus-treat-strip-pgp)
(gnus-treat-display-xface): Add Emacs version of obsolescence.
2009-08-29 03:03:23 +00:00
Stefan Monnier
82e98df4df * NEWS: Declare unibyte sessions obsolete.
* emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
(main): Use enable-multibyte-characters rather than
default-enable-multibyte-characters.  Output a warning message when
running a unibyte session.
* mule.texi (Enabling Multibyte):
* cmdargs.texi (General Variables): Remove EMACS_UNIBYTE.
(Initial Options): Remove --(no-)multibyte, --(no-)unibyte.
2009-08-29 02:25:29 +00:00
Glenn Morris
2fc50e12d6 Nuke trailing whitespace. 2009-08-29 02:23:18 +00:00
Glenn Morris
2bc6a820b6 Kevin Ryde <user42 at zip.com.au>
Add "Keywords: i18n" the same as quail.el and since its other Keywords
are not known to finder.
2009-08-29 02:19:37 +00:00
Stefan Monnier
efbc652a8f * progmodes/cc-vars.el (c-comment-continuation-stars):
* progmodes/cc-engine.el (c-looking-at-bos):
* progmodes/cc-cmds.el (c-toggle-auto-state)
(c-forward-into-nomenclature, c-backward-into-nomenclature)
(c-comment-line-break-function): Add version of obsolescence.
2009-08-29 02:07:42 +00:00
Miles Bader
b0b63450dc Merge from gnus--devo--0
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1629
2009-08-29 00:27:12 +00:00
Juri Linkov
d30a05d164 (image-type-header-regexps): Use only JPEG magic number
to determine JPEG images, and don't use `image-jpeg-p' because
Emacs can display non-JFIF non-Exif JPEG images.
2009-08-28 23:49:32 +00:00
Juri Linkov
e15f58f871 (magic-fallback-mode-alist): Add ZIP magic number
associated with `archive-mode'.
2009-08-28 23:48:46 +00:00
Juanma Barranquero
1e8eecea4b * arc-mode.el (archive-mode):
* emacs-lisp/re-builder.el (re-builder-unload-function):
  Protect against the default value of `major-mode' being nil.
2009-08-28 18:35:25 +00:00
Juanma Barranquero
dd4fbf5672 * international/ucs-normalize.el (ucs-normalize-sort, quick-check-list):
Fix typos in docstrings.

* progmodes/js.el (js--macro-decl-re): Doc fix.
  (js--plain-method-re, js--split-name): Refloc docstring.
  (js--class-styles, js--make-merged-item, js--splice-into-items):
  Fix typos in docstrings; reflow docstrings.
  (js--maybe-join, js--function-prologue-beginning, js--flush-caches)
  (js--variable-decl-matcher, js--inside-pitem-p)
  (js--parse-state-at-point, js--get-all-known-symbols)
  (js--symbol-history, js-find-symbol, js--js-references)
  (js--moz-interactor, js--js-encode-value, js--read-tab):
  Fix typos in docstrings.
2009-08-28 18:22:30 +00:00
Stefan Monnier
14acf2f55e * gnus/nnheader.el (nnheader-find-file-noselect):
* gnus/mm-util.el (mm-insert-file-contents):
* org/org-html.el (org-export-as-html):
* org/org-docbook.el (org-export-as-docbook):
* textmodes/reftex.el (reftex-get-file-buffer-force):
* progmodes/verilog-mode.el (verilog-batch-execute-func):
* emulation/viper.el (viper-go-away, viper-set-hooks):
* emacs-lisp/re-builder.el (re-builder-unload-function):
* emacs-lisp/bytecomp.el (byte-compile-file):
* ses.el (ses-unload-function):
* hexl.el (hexl-find-file):
* files.el (normal-mode):
* ehelp.el (with-electric-help):
* autoinsert.el (auto-insert-alist):
* arc-mode.el (archive-mode):
Use (default-value 'major-mode) instead of default-major-mode.
2009-08-28 17:02:53 +00:00
Stefan Monnier
72f16325c1 * textmodes/ispell.el (ispell-check-version, ispell-send-string):
* international/mule.el (load-with-code-conversion):
* emacs-lisp/debug.el (debug):
* ediff-vers.el (ediff-rcs-get-output-buffer):
* dired.el (dired-internal-noselect): Don't let-bind
default-major-mode around code that doesn't use it.
E.g. buffer creation via get-buffer-create doesn't use it.
2009-08-28 16:29:25 +00:00
Michael Albinus
3a94ba8225 *** empty log message *** 2009-08-28 12:32:55 +00:00
Michael Albinus
aa485f7ca5 * net/tramp.el (all): Replace "'(lambda" by "(lambda".
(tramp-handle-file-local-copy): Unset `file-name-handler-alist'
when writing the temp file.  Otherwise, epa-file gets confused.
(tramp-register-file-name-handlers): Make it a defun.  Move also
`epa-file-handler' to the front of `file-name-handler-alist'.

* net/tramp.el (tramp-shell-prompt-pattern): Allow a prompt to
start right after a ^M.
(tramp-root-regexp, tramp-completion-file-name-regexp-unified)
(tramp-completion-file-name-regexp-separate)
(tramp-completion-file-name-regexp-url): Use \\` and \\'.
(tramp-handle-file-attributes, tramp-set-file-uid-gid): Don't
modify last-coding-system-used by accident.
(tramp-completion-file-name-handler): Apply the checks here,
instead during registration.
(tramp-register-file-name-handlers) Renamed from
`tramp-register-file-name-handler'.  Register both
`tramp-file-name-handler' and `tramp-completion-file-name-handler'.
(tramp-register-completion-file-name-handler): Removed.
2009-08-28 12:11:58 +00:00
Nick Roberts
7e3242e4fc (gdb-use-separate-io-buffer): Remove
variable ...
(gdb-init-1, gdb-display-separate-io-buffer)
(gdb-frame-separate-io-buffer, gdb-setup-windows): ... and
references to it.
(gdb-inferior-io-mode): Use make-comint-in-buffer.
(gdb-inferior-filter): Use comint-output-filter to stop
echoing and remove ^M characters.
2009-08-28 10:56:13 +00:00
Nick Roberts
3f0c2b9205 *** empty log message *** 2009-08-28 10:55:45 +00:00
Andreas Schwab
63494d1b9d Ignore all backup files. 2009-08-28 09:50:05 +00:00
Stefan Monnier
009fdc2e72 * emulation/viper-init.el (viper-restore-cursor-type):
* emulation/cua-base.el (cua--update-indications):
Replace default-cursor-type with (default-value 'cursor-type).
2009-08-28 04:24:59 +00:00
Stefan Monnier
b56a5ae0fe * mh-e/mh-comp.el (mh-send-letter):
* mail/sendmail.el (mail-recover-1):
* international/mule-diag.el (describe-current-coding-system-briefly)
(describe-current-coding-system):
* international/mule-cmds.el (select-safe-coding-system)
(select-message-coding-system)
(set-language-environment-coding-systems, set-locale-environment):
* hexl.el (hexl-insert-multibyte-char):
* dos-w32.el (find-buffer-file-type-coding-system):
* simple.el (what-cursor-position):
Replace uses of default-buffer-file-coding-system
with (default-value 'buffer-file-coding-system).
2009-08-28 04:21:14 +00:00
Stefan Monnier
de70529f66 (edebug-display, edebug-outside-excursion):
Replace uses of default-cursor-in-non-selected-windows
with (default-value 'cursor-in-non-selected-windows).  Use with-current-buffer.
2009-08-28 04:12:49 +00:00
Stefan Monnier
705e5bd932 * mail/feedmail.el: Use CL macros.
(feedmail-run-the-queue, feedmail-send-it-immediately):
* dos-w32.el (find-buffer-file-type): Replace uses of
default-buffer-file-type with (default-value 'buffer-file-type).
2009-08-28 04:05:58 +00:00
Glenn Morris
4d985ac2e6 (diary-list-entries, diary-goto-entry)
(diary-show-all-entries, diary-mark-entries, diary-make-entry):
Use default-value of major-mode rather than default-major-mode.
2009-08-28 03:18:49 +00:00
Juanma Barranquero
b5a46fa695 * leim/.gitignore, lisp/.gitignore: Ignore .el~ files. 2009-08-28 02:41:23 +00:00
Juanma Barranquero
81cc988b44 Update. 2009-08-27 20:10:56 +00:00
Juanma Barranquero
7b6fefac48 Fix typos. 2009-08-27 19:49:58 +00:00
Stefan Monnier
3a68ab0653 (update-elcfiles): Report left over elc files. 2009-08-27 18:35:20 +00:00
Stefan Monnier
9421bdd19f (build-mail-aliases): Use with-temp-buffer,
expand-file-name and with-current-buffer.
(mail-get-names, mail-directory): Use with-current-buffer.
2009-08-27 18:32:37 +00:00
Stefan Monnier
17c15b81a5 (vc-read-revision): New function.
(vc-version-diff, vc-merge): Use it.
2009-08-27 16:53:04 +00:00
Sam Steingold
ba83a64e18 (kill-do-not-save-duplicates): New user option.
(kill-new): When it is non-nil, and the new string is the same as
the latest kill, set replace to t to avoid duplicates in kill-ring.
2009-08-27 14:56:17 +00:00
Michael Albinus
d5b5c94a11 * net/tramp-cache.el (top): Autoload `tramp-time-less-p'.
(tramp-cache-inhibit-cache): Extend doc string.  It allows also
timestamps.
(tramp-get-file-property): Check for timestamps in
`tramp-cache-inhibit-cache'.
(tramp-set-file-property): Write timestamp.
2009-08-27 13:50:59 +00:00
Michael Albinus
946a5aeb7d * net/tramp.el (tramp-methods): New method "rsyncc".
(top): Add completion function for "rsyncc".
(tramp-message-show-message): New defvar.
(tramp-message, tramp-error): Use it.
(tramp-do-copy-or-rename-file-directly): Extend check for direct
remote copying.
(tramp-do-copy-or-rename-file-out-of-band): Handle new
`tramp-methods' entry `copy-env' of "rsyncc".
((tramp-handle-process-file): Do not flush all
caches when `process-file-side-effects' is set.
tramp-vc-registered-read-file-names): New defconst.
(tramp-vc-registered-file-names): New defvar.
(tramp-handle-vc-registered): Implement optimization strategy.
(tramp-run-real-handler): Add `tramp-vc-file-name-handler'.
(tramp-vc-file-name-handler): New defun.
(tramp-get-ls-command, tramp-get-test-command)
(tramp-get-file-exists-command, tramp-get-remote-ln)
(tramp-get-remote-perl, tramp-get-remote-stat)
(tramp-get-remote-id): Remove
superfluous `with-current-buffer'.
2009-08-27 13:47:55 +00:00
Dan Nicolaescu
652cc1a2e6 * vc-dir.el (vc-dir-update): Remove debug helper. 2009-08-27 07:25:43 +00:00
Kenichi Handa
1339cf204c (japanese-symbol-table): Add entries for cp932-2-byte. 2009-08-27 07:22:47 +00:00
Kenichi Handa
761f64270a Add category `j' to cp932-2-byte. 2009-08-27 07:20:59 +00:00
Kenichi Handa
726e3f1d5e (build-default-fontset-data): New macro.
(setup-default-fontset): Use build-default-fontset-data for CJK,
tibetan, ethiopic, and ipa
2009-08-27 06:26:43 +00:00
Stefan Monnier
d3192c8fd7 (nnrss-request-article): Avoid default-fill-column. 2009-08-27 05:19:42 +00:00
Stefan Monnier
4e3b4528ea * subr.el (default-mode-line-format, default-header-line-format)
(default-line-spacing, default-abbrev-mode, default-ctl-arrow)
(default-direction-reversed, default-truncate-lines)
(default-left-margin, default-tab-width, default-case-fold-search)
(default-left-margin-width, default-right-margin-width)
(default-left-fringe-width, default-right-fringe-width)
(default-fringes-outside-margins, default-scroll-bar-width)
(default-vertical-scroll-bar, default-indicate-empty-lines)
(default-indicate-buffer-boundaries, default-fringe-indicator-alist)
(default-fringe-cursor-alist, default-scroll-up-aggressively)
(default-scroll-down-aggressively, default-fill-column)
(default-cursor-type, default-buffer-file-type)
(default-cursor-in-non-selected-windows)
(default-buffer-file-coding-system, default-major-mode)
(default-enable-multibyte-characters): Mark as obsolete.
* cus-start.el (default-major-mode): Customize `major-mode' instead.
(enable-multibyte-characters): Not customizable any more.
2009-08-27 04:24:00 +00:00
Dan Nicolaescu
b3cca6a697 (vc-cvs-update-changelog): Fix typo. 2009-08-27 01:50:12 +00:00
Sam Steingold
4ed8c7aadb (save-interprogram-paste-before-kill): New user option.
(kill-new): When `save-interprogram-paste-before-kill' is non-nil,
save the interprogram-paste into kill-ring before overriding it
with the Emacs kill.
2009-08-26 20:55:39 +00:00
Dan Nicolaescu
3b64d86b56 * vc.el (vc-trunk-p): Rename to vc-rcs-trunk-p and move to vc-rcs.el.
(vc-minor-part): Rename to vc-rcs-minor-part and move to vc-rcs.el.
(vc-default-previous-revision): Rename to vc-rcs-previous-revision
and move to vc-rcs.el.
(vc-default-next-revision): Rename to vc-rcs-next-revision and
move to vc-rcs.el.
(vc-cvs-update-changelog): Move to vc-cvs.el, use vc-call-backend.
(vc-rcs-update-changelog): Remove.
(vc-update-changelog-rcs2log): Rename to vc-rcs-update-changelog
and move to vc-rcs.el.

* vc-rcs.el (vc-rcs-latest-on-branch-p, vc-rcs-checkin)
(vc-rcs-checkout, vc-rcs-rollback): Adjust for the vc-rcs-trunk-p
renaming.
(vc-rcs-trunk-p, vc-rcs-minor-part, vc-rcs-previous-revision)
(vc-rcs-next-revision, vc-rcs-update-changelog): Moved here from
vc.el, renamed to be RCS specific.

* vc-cvs.el (vc-cvs-previous-revision, vc-cvs-next-revision): New functions.
(vc-cvs-update-changelog): Moved here from vc.el.

* vc-sccs.el (vc-sccs-previous-revision, vc-sccs-next-revision):
New functions.
2009-08-26 17:54:05 +00:00
Stefan Monnier
636a36a070 (byte-compile-lapcode): Fix up last change. 2009-08-26 14:47:23 +00:00
Dan Nicolaescu
dc81064982 * vc.el (vc-default-prettify-state-info): Remove function, unused.
* vc-bzr.el (vc-bzr-prettify-state-info): Remove function, unused.
2009-08-26 07:42:11 +00:00
Dan Nicolaescu
2ddf440db1 (vc-git-stash, vc-git-stash-show): New functions.
(vc-git-extra-menu-map): Bind them.
2009-08-26 07:01:09 +00:00
Dan Nicolaescu
b91f07620f (vc-git-register): Use "git add" for directories. 2009-08-26 06:48:58 +00:00
Dan Nicolaescu
b8e5436265 (vc-dir-node-directory, vc-dir-update): Get the parent
directory correctly in case the item is a directory itself.
2009-08-26 06:45:36 +00:00
Dan Nicolaescu
239b334087 Document the desired behavior for reverted files in the
`added' state.
2009-08-26 05:26:22 +00:00
Glenn Morris
3029e594ae (enable-local-variables, enable-local-eval)
(safe-local-variable-values, safe-local-eval-forms): Mark as risky in
the defcustoms.
(auto-mode-alist, ignored-local-variables)
(save-some-buffers-action-alist): Move risky declarations to the
definitions.
(dabbrev-case-fold-search, dabbrev-case-replace, display-time-string)
(font-lock-defaults, format-alist, imenu--index-alist)
(imenu-generic-expression, input-method-alist, minor-mode-alist)
(mode-line-buffer-identification, mode-line-client, mode-line-modes)
(mode-line-modified, mode-line-mule-info, mode-line-position)
(mode-line-process, mode-line-remote, outline-level)
(parse-time-rules, rmail-output-file-alist)
(special-display-buffer-names, vc-mode):
Move risky declarations to the relevant files.
2009-08-26 03:08:33 +00:00
Glenn Morris
6dc3311d25 Define risky-local-variable property here rather than in files.el. 2009-08-26 03:07:25 +00:00
Glenn Morris
e49c017910 (standard-mode-line-format): Reposition dashes in which-func entry. (Bug#4217) 2009-08-26 02:59:34 +00:00