]> code.delx.au - gnu-emacs/log
gnu-emacs
13 years agoMerge from emacs-23
Stefan Monnier [Mon, 13 Dec 2010 15:27:36 +0000 (10:27 -0500)]
Merge from emacs-23

13 years agoproto-stream.el (proto-stream-open-network-only): Fix the calling convention of the...
Lars Magne Ingebrigtsen [Mon, 13 Dec 2010 04:22:39 +0000 (04:22 +0000)]
proto-stream.el (proto-stream-open-network-only): Fix the calling convention of the network-only option.
gnus-sum.el (gnus-summary-enter-digest-group): Mention gnus-auto-select-on-ephemeral-exit.

13 years agosubr.el (posn-col-row): Evaluate header-line-format in the context of
Eli Zaretskii [Sun, 12 Dec 2010 20:45:57 +0000 (22:45 +0200)]
subr.el (posn-col-row): Evaluate header-line-format in the context of
 the POSITION window's buffer.

13 years agoDocument that expand-file-name collapses multiple slashes. (Bug#7617)
Eli Zaretskii [Sun, 12 Dec 2010 20:37:54 +0000 (22:37 +0200)]
Document that expand-file-name collapses multiple slashes.  (Bug#7617)

 fileio.c (Fexpand_file_name): Doc fix.

13 years ago* lisp/bookmark.el (bookmark-name-from-full-record): Rename back to
Karl Fogel [Sun, 12 Dec 2010 16:53:24 +0000 (11:53 -0500)]
* lisp/bookmark.el (bookmark-name-from-full-record): Rename back to
  this original name from `bookmark-name-from-record' reverting part of
  2010-12-08T08:09:27Z!kfogel@red-bean.com / kfogel@red-bean.com-20101208080927-5j9jqnb2xvcw4ogm.
  As Drew Adams pointed out, there was no reason to cause churn for
  third-party callers.

13 years ago(c-forward-type): Before scanning a template arglist, check that the
Alan Mackenzie [Sun, 12 Dec 2010 12:24:56 +0000 (12:24 +0000)]
(c-forward-type): Before scanning a template arglist, check that the
current language supports this.

13 years agoFallout from bug #7563.
Eli Zaretskii [Sat, 11 Dec 2010 18:45:53 +0000 (20:45 +0200)]
Fallout from bug #7563.

 processes.texi (Shell Arguments):
 strings.texi (Creating Strings): Don't mention "shell commands";
 make it explicit that `split-string-and-unquote' and
 `combine-and-quote-strings' are mainly for working with arguments
 to call-process and start-process.

13 years agoUpdate to Org mode 7.4
Carsten Dominik [Sat, 11 Dec 2010 16:42:53 +0000 (17:42 +0100)]
Update to Org mode 7.4

13 years agoFix bug #7398 with truncated glyphs in w32 tooltips.
Eli Zaretskii [Sat, 11 Dec 2010 15:41:04 +0000 (17:41 +0200)]
Fix bug #7398 with truncated glyphs in w32 tooltips.

 w32fns.c (Fx_show_tip): Call try_window with last argument
 TRY_WINDOW_IGNORE_FONTS_CHANGE.  Delete the TODO ifdef: problem
 solved.  Round up the tip height to an integral multiple of the
 frame's line height.  Add FRAME_COLUMN_WIDTH to the tip width.

13 years agoFix bug #7398 with truncated glyphs in tooltip display on w32.
Eli Zaretskii [Sat, 11 Dec 2010 15:20:11 +0000 (17:20 +0200)]
Fix bug #7398 with truncated glyphs in tooltip display on w32.

 w32fns.c (Fx_show_tip): Call try_window with last argument
 TRY_WINDOW_IGNORE_FONTS_CHANGE.  Delete the TODO ifdef: problem
 solved.  Round up the tip height to an integral multiple of the
 frame's line height.  Add FRAME_COLUMN_WIDTH to the tip width.

13 years agoCode cleanup in xdisp.c regarding string_char_and_length.
Eli Zaretskii [Sat, 11 Dec 2010 12:27:13 +0000 (14:27 +0200)]
Code cleanup in xdisp.c regarding string_char_and_length.

 xdisp.c (string_pos_nchars_ahead, c_string_pos)
 (face_before_or_after_it_pos, next_element_from_string)
 (next_element_from_c_string, produce_stretch_glyph): Remove unused
 calculations of maximum string length before calling
 string_char_and_length and STRING_CHAR_AND_LENGTH.
 (string_char_and_length): Update commentary: MAXLEN is no longer
 needed.

13 years agoFix bug #7563 with docs of split-string-and-unquote.
Eli Zaretskii [Sat, 11 Dec 2010 09:41:45 +0000 (11:41 +0200)]
Fix bug #7563 with docs of split-string-and-unquote.

 processes.texi (Shell Arguments): Fix documentation of
 `split-string-and-unquote'.  Add indexing.

13 years agoFix bug #7576 with lack of index entries for character syntax.
Eli Zaretskii [Sat, 11 Dec 2010 09:11:32 +0000 (11:11 +0200)]
Fix bug #7576 with lack of index entries for character syntax.

 custom.texi (Init Syntax): Add index entries for "character syntax".

13 years agoMisc vc-bzr.el.
Glenn Morris [Sat, 11 Dec 2010 02:54:07 +0000 (18:54 -0800)]
Misc vc-bzr.el.

* lisp/vc/vc-bzr.el (vc-bzr-state-heuristic): Also check that the executable
state of the file matches.  (Bug#7544)
(vc-bzr-register, vc-bzr-checkin)
(vc-bzr-annotate-extract-revision-at-line): Doc fixes.
(vc-directory-exclusion-list): Remove unnecessary eval-after-load.

Comment changes:
Remove outdated comments about defunct upstream.
Set maintainer to FSF.

13 years ago* lisp/textmodes/sgml-mode.el (sgml-xml-guess): Add .xhtml extension.
Glenn Morris [Sat, 11 Dec 2010 02:50:58 +0000 (18:50 -0800)]
* lisp/textmodes/sgml-mode.el (sgml-xml-guess): Add .xhtml extension.

13 years ago* lisp/files.el (auto-mode-alist): Use html-mode for *.xhtml.
Karel Klíc [Sat, 11 Dec 2010 02:48:23 +0000 (18:48 -0800)]
* lisp/files.el (auto-mode-alist): Use html-mode for *.xhtml.
(This really only affects empty files.)

Fixes: debbugs:7606
13 years agoChangeLog fix.
Glenn Morris [Sat, 11 Dec 2010 02:41:47 +0000 (18:41 -0800)]
ChangeLog fix.

13 years ago* etc/TODO: Updates; and re-fill some lines.
Glenn Morris [Sat, 11 Dec 2010 02:39:41 +0000 (18:39 -0800)]
* etc/TODO: Updates; and re-fill some lines.

13 years ago* doc/emacs/text.texi (HTML Mode): Small fixes.
Karel Klíc [Sat, 11 Dec 2010 02:37:16 +0000 (18:37 -0800)]
* doc/emacs/text.texi (HTML Mode): Small fixes.

Fixes: debbugs:7607
13 years agoDoc fixes.
Glenn Morris [Sat, 11 Dec 2010 02:34:55 +0000 (18:34 -0800)]
Doc fixes.
* lisp/subr.el (member-ignore-case, run-mode-hooks, insert-for-yank-1)
(with-silent-modifications): Doc fixes.

13 years ago[Backport from trunk]: * make-dist: Exclude etc/*.pyc.
Glenn Morris [Sat, 11 Dec 2010 02:32:10 +0000 (18:32 -0800)]
[Backport from trunk]: * make-dist: Exclude etc/*.pyc.

13 years ago* make-dist: Exclude etc/*.pyc.
Glenn Morris [Sat, 11 Dec 2010 02:30:29 +0000 (18:30 -0800)]
* make-dist: Exclude etc/*.pyc.

13 years agoMerge changes made in Gnus trunk.
Gnus developers [Sat, 11 Dec 2010 01:27:14 +0000 (01:27 +0000)]
Merge changes made in Gnus trunk.

nnir.el (nnir-request-expire-articles): Only allow article deletion.
message.el (message-bogus-recipient-p): Set address to "" if nil.
gnus-gravatar.el (gnus-gravatar-transform-address): Fix error when email address is nil.
proto-stream.el (proto-stream-open-network-only): New function to have a way to specify non-STARTTLS upgrade connections.

13 years agoDon't depend on POSIX compatible parsing of parameter expansion
Andreas Schwab [Fri, 10 Dec 2010 22:42:17 +0000 (23:42 +0100)]
Don't depend on POSIX compatible parsing of parameter expansion

13 years agoDerive from prog-mode, use derived-mode-p, and fix up various
Stefan Monnier [Fri, 10 Dec 2010 20:00:25 +0000 (15:00 -0500)]
Derive from prog-mode, use derived-mode-p, and fix up various
minor style issues in lisp/progmodes.

* lisp/progmodes/vhdl-mode.el (vhdl-write-file-hooks-init)
(vhdl-hs-minor-mode, vhdl-ps-print-init): Fix make-local-variable ->
make-local-hook.
* lisp/progmodes/sh-script.el (sh-require-final-newline): Remove.
(sh-set-shell): Don't set require-final-newline since it's already done
by prog-mode.
* lisp/progmodes/modula2.el (m2-mode): Don't make m2-end-comment-column
since we never set it.
* lisp/progmodes/ebrowse.el (ebrowse-set-tree-indentation):
Use read-string and standard prompt.
* lisp/progmodes/dcl-mode.el (dcl-mode-map): Move init into declaration.
* lisp/progmodes/meta-mode.el (meta-mode-abbrev-table): Merge init and decl.
(meta-common-mode-syntax-table): Rename from meta-mode-syntax-table.
(meta-common-mode-map): Rename from meta-mode-map.
Remove C-m binding, which is a user preference, not mode specific.
(meta-common-mode): New major mode; replace meta-common-initialization.
* lisp/progmodes/js.el (js-mode): Call syntax-propertize rather than messing
around with font-lock.
* lisp/progmodes/etags.el (select-tags-table-mode):
Derive from special-mode.
* lisp/progmodes/octave-mod.el (octave-mode):
* lisp/progmodes/gdb-mi.el (gdb-inferior-io-mode, gdb-threads-mode)
(gdb-memory-mode, gdb-disassembly-mode, gdb-breakpoints-mode)
(gdb-frames-mode, gdb-locals-mode, gdb-registers-mode):
Let define-derived-mode do its job.
* lisp/progmodes/cpp.el (cpp-edit-mode-map):
Move initialization into declaration.
(cpp-edit-mode): Use define-derived-mode.
(cpp-edit-load): Use derived-mode-p.
* lisp/progmodes/mixal-mode.el (mixal-mode):
* lisp/progmodes/f90.el (f90-mode):
* lisp/progmodes/cfengine.el (cfengine-mode): Don't bother setting
require-final-newline since prog-mode does it already.
* lisp/progmodes/cc-cmds.el (c-update-modeline): Use match-string.
* lisp/progmodes/asm-mode.el (asm-mode-map): Fix menu setup.
* lisp/progmodes/antlr-mode.el: Require cc-mode upfront.
(antlr-mode-syntax-table, antlr-action-syntax-table): Initialize in
the declaration.
(antlr-directory-dependencies, antlr-show-makefile-rules):
Use derived-mode-p.
(antlr-language-option): Don't assume point-min==1.
(antlr-mode): Use define-derived-mode.
* lisp/progmodes/ada-mode.el: Use derived-mode-p.
(ada-mode): Use define-derived-mode.
Use hack-local-variables-hook.

* lisp/progmodes/vhdl-mode.el (vhdl-mode):
* lisp/progmodes/verilog-mode.el (verilog-mode):
* lisp/progmodes/vera-mode.el (vera-mode):
* lisp/progmodes/sql.el (sql-mode):
* lisp/progmodes/scheme.el (scheme-mode):
* lisp/progmodes/perl-mode.el (perl-mode):
* lisp/progmodes/octave-inf.el (inferior-octave-mode):
* lisp/progmodes/autoconf.el (autoconf-mode):
* lisp/progmodes/m4-mode.el (m4-mode):
* lisp/progmodes/inf-lisp.el (inferior-lisp-mode):
* lisp/progmodes/idlwave.el (idlwave-mode):
* lisp/progmodes/icon.el (icon-mode):
* lisp/progmodes/idlw-help.el (idlwave-help-mode):
* lisp/progmodes/dcl-mode.el (dcl-mode):
* lisp/progmodes/idlw-shell.el (idlwave-shell-mode):
* lisp/progmodes/ebrowse.el (ebrowse-tree-mode, ebrowse-electric-list-mode)
(ebrowse-member-mode, ebrowse-electric-position-mode):
Use define-derived-mode.

* lisp/progmodes/xscheme.el (xscheme-start)
(local-set-scheme-interaction-buffer, scheme-interaction-mode):
* lisp/progmodes/which-func.el (which-function):
* lisp/progmodes/vhdl-mode.el (vhdl-set-style):
* lisp/progmodes/verilog-mode.el (verilog-set-compile-command)
(verilog-modify-compile-command, verilog-error-regexp-add-xemacs)
(verilog-set-define, verilog-auto-reeval-locals):
* lisp/progmodes/sql.el (sql-product-font-lock, sql-interactive-mode):
* lisp/progmodes/simula.el (simula-mode):
* lisp/progmodes/scheme.el (scheme-mode-variables, dsssl-mode):
* lisp/progmodes/python.el (python-check, python-mode):
* lisp/progmodes/prolog.el (prolog-mode-variables):
* lisp/progmodes/gud.el (gud-tooltip-activate-mouse-motions):
* lisp/progmodes/ebrowse.el (ebrowse-view-file-other-frame):
* lisp/progmodes/delphi.el (delphi-mode):
* lisp/progmodes/cc-styles.el (c-setup-paragraph-variables):
* lisp/progmodes/cc-mode.el (c-basic-common-init, c-common-init)
(c-font-lock-init): Move make-local-variable to their setq.

* lisp/progmodes/xscheme.el (exit-scheme-interaction-mode)
(xscheme-enter-interaction-mode, xscheme-enter-debugger-mode)
(xscheme-debugger-mode-p, xscheme-send-string-1):
* lisp/progmodes/tcl.el (inferior-tcl-proc, tcl-current-word)
(tcl-load-file, tcl-restart-with-file):
* lisp/progmodes/ps-mode.el (ps-run-running):
* lisp/progmodes/gdb-mi.el (gud-watch, gdb-mouse-set-clear-breakpoint):
* lisp/progmodes/js.el (js--get-all-known-symbols):
* lisp/progmodes/inf-lisp.el (inferior-lisp-proc):
* lisp/progmodes/idlwave.el (idlwave-beginning-of-statement)
(idlwave-template, idlwave-update-buffer-routine-info)
(idlwave-update-current-buffer-info)
(idlwave-get-routine-info-from-buffers, idlwave-choose)
(idlwave-scan-class-info, idlwave-fix-keywords)
(idlwave-list-buffer-load-path-shadows):
* lisp/progmodes/idlw-toolbar.el (idlwave-toolbar, idlwave-toolbar-add)
(idlwave-toolbar-remove):
* lisp/progmodes/idlw-shell.el (idlwave-shell-save-and-action)
(idlwave-shell-file-name, idlwave-shell-electric-debug-all-off)
(idlwave-shell-menu-def):
* lisp/progmodes/idlw-complete-structtag.el
(idlwave-prepare-structure-tag-completion):
* lisp/progmodes/gud.el (gud-set-buffer):
* lisp/progmodes/f90.el (f90-backslash-not-special):
* lisp/progmodes/delphi.el (delphi-find-unit): Use derived-mode-p.

13 years agoMove call to Fkill_emacs from signal handler (session event) (Bug#7552).
Jan Djärv [Fri, 10 Dec 2010 18:23:43 +0000 (19:23 +0100)]
Move call to Fkill_emacs from signal handler (session event) (Bug#7552).

* keyboard.c (kbd_buffer_get_event): Construct SAVE_SESSION_EVENT
as (Qsave_session arg).

* xsmfns.c (smc_interact_CB): Set arg to Qnil.
(smc_die_CB): Make an event with arg Qt.
(Fhandle_save_session): If event has Qt as argument,
call Fkill_emacs.

13 years agoBump version to 23.2.91. emacs-pretest-23.2.91
Chong Yidong [Fri, 10 Dec 2010 17:46:40 +0000 (12:46 -0500)]
Bump version to 23.2.91.
Regenerate configure and ldefs-boot.el.

13 years ago* configure.in: Don't double machfile in final message.
Andreas Schwab [Fri, 10 Dec 2010 17:29:54 +0000 (18:29 +0100)]
* configure.in: Don't double machfile in final message.

13 years ago* lisp/textmodes/texinfo.el (texinfo-mode-map): Bind texinfo-insert-@end.
Stefan Monnier [Fri, 10 Dec 2010 14:10:08 +0000 (09:10 -0500)]
* lisp/textmodes/texinfo.el (texinfo-mode-map): Bind texinfo-insert-@end.
(texinfo-mode): Don't disable adaptive-fill-mode.
(texinfo-insert-block): Adjust cursor placement for blocks with arg.
(texinfo-insert-@end, texinfo-insert-braces, texinfo-insert-@code)
(texinfo-insert-@dfn, texinfo-insert-@email, texinfo-insert-@emph)
(texinfo-insert-@example, texinfo-insert-@file, texinfo-insert-@item)
(texinfo-insert-@kbd, texinfo-insert-@node, texinfo-insert-@noindent)
(texinfo-insert-@quotation, texinfo-insert-@samp)
(texinfo-insert-@strong, texinfo-insert-@table, texinfo-insert-@var)
(texinfo-insert-@uref): Use define-skeleton.
(texinfo-insert-@-with-arg): Delete.

13 years agoarc-mode.el (archive-zip-extract): If w32-quote-process-args is nil, do quote
Eli Zaretskii [Fri, 10 Dec 2010 11:56:44 +0000 (13:56 +0200)]
arc-mode.el (archive-zip-extract): If w32-quote-process-args is nil, do quote
 archive member names.  Suggested by hm <helmut.muelner@joanneum.at>.

13 years ago* net/tramp.el (tramp-action-password, tramp-process-actions):
Michael Albinus [Fri, 10 Dec 2010 04:14:57 +0000 (05:14 +0100)]
* net/tramp.el (tramp-action-password, tramp-process-actions):
Revert patch from 2010-12-08.  Use `save-restriction'.

13 years ago* lisp/files.el (diff-no-select): Declare.
Glenn Morris [Fri, 10 Dec 2010 03:47:49 +0000 (19:47 -0800)]
* lisp/files.el (diff-no-select): Declare.

13 years agoSmall emacsbug.el stuff.
Glenn Morris [Fri, 10 Dec 2010 03:39:18 +0000 (19:39 -0800)]
Small emacsbug.el stuff.
* lisp/mail/emacsbug.el (report-emacs-bug): Use mail-user-agent properties.
(report-emacs-bug-create-existing-bugs-buffer): Avoid free variables.

13 years ago* lisp/comint.el (comint-input-ring-file-name): Doc fix.
Glenn Morris [Fri, 10 Dec 2010 03:36:46 +0000 (19:36 -0800)]
* lisp/comint.el (comint-input-ring-file-name): Doc fix.

13 years agoFix ChangeLog attribution.
Glenn Morris [Fri, 10 Dec 2010 03:34:59 +0000 (19:34 -0800)]
Fix ChangeLog attribution.

13 years ago* doc/emacs/trouble.texi (Checklist): Fix typo in newsgroup name.
Glenn Morris [Fri, 10 Dec 2010 03:33:51 +0000 (19:33 -0800)]
* doc/emacs/trouble.texi (Checklist): Fix typo in newsgroup name.

13 years agoCommit missing file from 2010-05-15T00:48:53Z!rgm@gnu.org.
Jan Moringen [Fri, 10 Dec 2010 03:31:52 +0000 (19:31 -0800)]
Commit missing file from 2010-05-15T00:48:53Z!rgm@gnu.org.

Fixes: debbugs:7505
13 years agoshr.el (shr-tag-label): Add <label> support.
Lars Magne Ingebrigtsen [Thu, 9 Dec 2010 23:20:33 +0000 (23:20 +0000)]
shr.el (shr-tag-label): Add <label> support.

13 years agoFix bug #1077 with popping new frames from a minibuffer-only frame.
Eli Zaretskii [Thu, 9 Dec 2010 19:07:53 +0000 (21:07 +0200)]
Fix bug #1077 with popping new frames from a minibuffer-only frame.

 menu-bar.el (menu-bar-frame-for-menubar, menu-bar-positive-p):
 New functions.
 (menu-bar-showhide-menu) <menu-bar-mode, showhide-tool-bar>: Use
 them instead of `nil' and `>', respectively.
 (menu-bar-showhide-tool-bar-menu): Use menu-bar-frame-for-menubar
 instead of `nil'.
 (toggle-menu-bar-mode-from-frame): Use menu-bar-frame-for-menubar
 and menu-bar-positive-p instead of `nil' and `>', respectively.

13 years agoFix bug #1077 with popping new frames from a minibuffer-only frame.
Eli Zaretskii [Thu, 9 Dec 2010 18:53:17 +0000 (20:53 +0200)]
Fix bug #1077 with popping new frames from a minibuffer-only frame.

Do NOT merge with trunk!

 menu-bar.el (menu-bar-frame-for-menubar, menu-bar-positive-p): New functions.
 (menu-bar-showhide-menu) <menu-bar-mode, showhide-tool-bar>: Use
 them instead of `nil' and `>', respectively.

13 years agomm-util.el (mm-ucs-to-char): Use eval-and-compile.
Katsumi Yamaoka [Thu, 9 Dec 2010 11:11:11 +0000 (11:11 +0000)]
mm-util.el (mm-ucs-to-char): Use eval-and-compile.

13 years agoTiny code fix.
Vinicius Jose Latorre [Thu, 9 Dec 2010 10:55:03 +0000 (08:55 -0200)]
Tiny code fix.

13 years agoshr.el (shr-tag-script): Ignore <script>.
Lars Magne Ingebrigtsen [Thu, 9 Dec 2010 10:43:50 +0000 (10:43 +0000)]
shr.el (shr-tag-script): Ignore <script>.

13 years agoshr.el (shr-image-displayer): Work for images lined side by side.
Katsumi Yamaoka [Thu, 9 Dec 2010 06:40:56 +0000 (06:40 +0000)]
shr.el (shr-image-displayer): Work for images lined side by side.

13 years agoRename some landmark functions.
Glenn Morris [Thu, 9 Dec 2010 05:55:25 +0000 (21:55 -0800)]
Rename some landmark functions.
* lisp/play/landmark.el (lm-print-y,s,noise-int, lm-print-y,s,noise):
Rename functions without commas, update callers.

13 years agodiary-lib fix for bug#7536.
Stephen Berman [Thu, 9 Dec 2010 01:50:08 +0000 (17:50 -0800)]
diary-lib fix for bug#7536.
* lisp/calendar/diary-lib.el (diary-list-sexp-entries):
Handle case of no newline at end of file.

13 years ago* lisp/mail/smtpmail.el (smtpmail-send-it): Revert previous change.
Glenn Morris [Thu, 9 Dec 2010 01:46:03 +0000 (17:46 -0800)]
* lisp/mail/smtpmail.el (smtpmail-send-it): Revert previous change.
(convert-standard-filename means it was bogus.)

13 years agognus-demon.el (gnus-demon-init): Call run-with-timer with time as argument, not t...
Robert Pluim [Wed, 8 Dec 2010 22:16:36 +0000 (22:16 +0000)]
gnus-demon.el (gnus-demon-init): Call run-with-timer with time as argument, not t. XEmacs does not support that.

13 years ago* net/tramp.el (tramp-handle-start-file-process): Protect
Michael Albinus [Wed, 8 Dec 2010 20:07:25 +0000 (21:07 +0100)]
* net/tramp.el (tramp-handle-start-file-process): Protect
buffer-modified value.  (Bug#7557)
(tramp-action-password): Delete region, do not narrow.
(tramp-process-actions): Do not widen.

13 years agoNew version 13.2. (Bug#7582)
Vinicius Jose Latorre [Wed, 8 Dec 2010 19:25:11 +0000 (17:25 -0200)]
New version 13.2. (Bug#7582)

13 years agonnir.el (nnir-request-expire-articles): New function.
Andrew Cohen [Wed, 8 Dec 2010 14:41:37 +0000 (14:41 +0000)]
nnir.el (nnir-request-expire-articles): New function.

13 years agonnir.el (nnir-retrieve-headers): Use rassq when comparing article ids.
Andrew Cohen [Wed, 8 Dec 2010 13:49:49 +0000 (13:49 +0000)]
nnir.el (nnir-retrieve-headers): Use rassq when comparing article ids.
 (nnir-run-gmane): Simplify groupspec formatting.

13 years agoAdjust parameter names and doc strings to resolve confusion over
Karl Fogel [Wed, 8 Dec 2010 08:09:27 +0000 (03:09 -0500)]
Adjust parameter names and doc strings to resolve confusion over
whether "bookmark" meant a bookmark name or a bookmark record.
Along the way, shorten one function's name for similar reasons.

(Issue #7548)

* lisp/bookmark.el
  (bookmark-name-from-record):
    New name for `bookmark-name-from-full-record'.  All callers changed.
  (bookmark-get-bookmark, bookmark-get-bookmark-record,
   bookmark-default-annotation-text, bookmark-prop-get, bookmark-prop-set,
   bookmark-get-annotation, bookmark-set-annotation,
   bookmark-get-filename, bookmark-set-filename,
   bookmark-get-position, bookmark-set-position,
   bookmark-get-front-context-string, bookmark-set-front-context-string,
   bookmark-get-rear-context-string, bookmark-set-rear-context-string,
   bookmark-get-handler, bookmark-edit-annotation, bookmark--jump-via,
   bookmark-handle-bookmark, bookmark-location, bookmark-show-annotation):
    Rename `bookmark' parameter to `bookmark-name-or-record', to
    clearly show its role, and shorten or adjust doc strings accordingly.
  (bookmark-set-name):
    Same, and pass the parameter directly to `bookmark-get-bookmark'
    instead of redundantly doing the callee's work.
  (bookmark-default-annotation-text, bookmark-send-edited-annotation,
   bookmark-relocate, bookmark-insert-location, bookmark-insert,
   bookmark-delete):
    Rename `bookmark' parameter to `bookmark-name', and in some cases
    shorten doc string accordingly.
  (bookmark-rename):
    Change `old' and `new' parameters to `old-name'
    and `new-name', and adjust an internal variable to avoid confusion.
  (bookmark-jump, bookmark-jump-noselect):
    Clarify `bookmark' parameter in doc string.

13 years agoIn gdb, try to init comint history from gdbhist.
Glenn Morris [Wed, 8 Dec 2010 05:00:12 +0000 (21:00 -0800)]
In gdb, try to init comint history from gdbhist.
* lisp/progmodes/gdb-mi.el (gdb): Try to initialize comint input history
from gdb's history file.  (Bug#7575)

13 years ago* mail/emacsbug.el (report-emacs-bug): Try to handle some other mail clients.
Glenn Morris [Wed, 8 Dec 2010 03:47:27 +0000 (19:47 -0800)]
* mail/emacsbug.el (report-emacs-bug): Try to handle some other mail clients.

13 years agoMake verify-visited-file-modtime default to the current buffer.
Glenn Morris [Wed, 8 Dec 2010 03:45:45 +0000 (19:45 -0800)]
Make verify-visited-file-modtime default to the current buffer.

* src/fileio.c (Fverify_visited_file_modtime): Default to current buffer.
* doc/lispref/buffers.texi (Modification Time):
verify-visited-file-modtime now defaults to the current buffer.

13 years ago* lisp/log-edit.el (log-edit-changelog-entries): Regexp quote filename.
Jan Moringen [Wed, 8 Dec 2010 03:42:00 +0000 (19:42 -0800)]
* lisp/log-edit.el (log-edit-changelog-entries): Regexp quote filename.

Fixes: debbugs:7505
13 years ago* lisp/cus-edit.el (custom-save-all): Bind print-length and print-level to nil.
Tom Breton [Wed, 8 Dec 2010 03:36:01 +0000 (19:36 -0800)]
* lisp/cus-edit.el (custom-save-all): Bind print-length and print-level to nil.

Fixes: debbugs:7581
13 years agomouse.el fix for bug#7586.
Glenn Morris [Wed, 8 Dec 2010 03:32:31 +0000 (19:32 -0800)]
mouse.el fix for bug#7586.
* lisp/mouse.el (mouse-menu-major-mode-map, mouse-menu-bar-map):
Run hooks to update menu contents.

13 years agoSmall smtpmail fix for bug#7588.
Glenn Morris [Wed, 8 Dec 2010 03:29:41 +0000 (19:29 -0800)]
Small smtpmail fix for bug#7588.
* lisp/mail/smtpmail.el (smtpmail-send-it): Avoid colons in the queued
file names, for the sake of MS Windows.

13 years agoFix ChangeLog whitespace.
Glenn Morris [Wed, 8 Dec 2010 03:25:57 +0000 (19:25 -0800)]
Fix ChangeLog whitespace.

13 years agoFix ChangeLog typo.
Glenn Morris [Wed, 8 Dec 2010 03:23:49 +0000 (19:23 -0800)]
Fix ChangeLog typo.

13 years ago* lisp/files.el (dir-locals-collect-variables): Don't let errors stop us.
Stefan Monnier [Wed, 8 Dec 2010 02:18:02 +0000 (21:18 -0500)]
* lisp/files.el (dir-locals-collect-variables): Don't let errors stop us.
Use string-prefix-p.
(file-name-version-regexp): New var.
(file-name-sans-versions):
* lisp/jka-cmpr-hook.el (jka-compr-build-file-regexp): Use it,
(jka-compr-get-compression-info): Use dolist.
(jka-compr-compression-info-list): Don't bother specifying
version/backup regexps.

13 years agoshr.el (shr-tag-table-1): Use bg/gfcolor specs on tables.
Lars Magne Ingebrigtsen [Tue, 7 Dec 2010 22:12:50 +0000 (22:12 +0000)]
shr.el (shr-tag-table-1): Use bg/gfcolor specs on tables.
 (shr-render-td): Handle td style="" better.
 (shr-tag-table): Use the color from the style sheet.
 (shr-render-td): Make sure we copy over all the overlays, too.
nnimap.el (nnimap-parse-flags): Tweak VANISHED regexp to avoid regexp overflow, possibly.

13 years ago* diff-mode.el (diff-refine-hunk): Make it work when the hunk contains
Stefan Monnier [Tue, 7 Dec 2010 19:48:15 +0000 (14:48 -0500)]
* diff-mode.el (diff-refine-hunk): Make it work when the hunk contains
empty lines without a leading space.

13 years ago* doc/lispref/modes.texi (Auto-Indentation): New section to document SMIE.
Stefan Monnier [Tue, 7 Dec 2010 19:44:38 +0000 (14:44 -0500)]
* doc/lispref/modes.texi (Auto-Indentation): New section to document SMIE.
(Major Mode Conventions):
* doc/lispref/text.texi (Mode-Specific Indent): Refer to it.

13 years ago* simple.el (just-one-space): Make argument n default to 1 if
Tassilo Horn [Tue, 7 Dec 2010 19:38:38 +0000 (20:38 +0100)]
* simple.el (just-one-space): Make argument n default to 1 if
omitted.

13 years ago* lisp/electric.el (electric-indent-post-self-insert-function):
Stefan Monnier [Tue, 7 Dec 2010 15:36:08 +0000 (10:36 -0500)]
* lisp/electric.el (electric-indent-post-self-insert-function):
Delete trailing newlines even if we don't reindent.

13 years agonnir.el (nnir-run-gmane): Restore sub-optimal test for gmane server.
Andrew Cohen [Tue, 7 Dec 2010 14:10:11 +0000 (14:10 +0000)]
nnir.el (nnir-run-gmane): Restore sub-optimal test for gmane server.
 (nnir-request-article): Improve article retrieval.

13 years ago* xsmfns.c (smc_die_CB): Call Fkill_emacs.
Jan Djärv [Tue, 7 Dec 2010 06:36:25 +0000 (07:36 +0100)]
* xsmfns.c (smc_die_CB): Call Fkill_emacs.

Fixes: debbugs:7552
13 years agoDecode extra numeric entities.
Katsumi Yamaoka [Tue, 7 Dec 2010 05:06:56 +0000 (05:06 +0000)]
Decode extra numeric entities.

mm-util.el (mm-extra-numeric-entities): New variable.
mm-url.el (mm-url-decode-entities):
mm-decode.el (mm-shr): Use it to decode extra numeric entities.

13 years ago* lisp/gnus/message.el: Use completion-at-point.
Stefan Monnier [Tue, 7 Dec 2010 02:01:00 +0000 (21:01 -0500)]
* lisp/gnus/message.el: Use completion-at-point.
(message-completion-function): New fun, extracted from message-tab.
(message-mode): Use it for completion-at-point-functions.
(message-tab): Use it and completion-at-point.

13 years agoshr.el (shr-find-fill-point): Don't break a line after a kinsoku-bol character if...
Katsumi Yamaoka [Tue, 7 Dec 2010 01:21:09 +0000 (01:21 +0000)]
shr.el (shr-find-fill-point): Don't break a line after a kinsoku-bol character if a non-breakable character follows.

13 years agoproto-stream.el (proto-stream-open-tls): Return nil if we don't get any stream.
Gnus developers [Mon, 6 Dec 2010 23:27:17 +0000 (23:27 +0000)]
proto-stream.el (proto-stream-open-tls): Return nil if we don't get any stream.
gnus.texi (Server Commands): Point to the rest of the server commands.

13 years agoMerge changes made in Gnus trunk.
Gnus developers [Mon, 6 Dec 2010 22:16:10 +0000 (22:16 +0000)]
Merge changes made in Gnus trunk.

shr.el (shr-render-td): Render td content with shr-descend, so style will be applied to <td> too.
 (shr-colorize-region): Colorize region even if we only have a background.
 (shr-tag-body): Fix color and background color inheritance.
 (shr-tag-body): Do not recolorize after shr-generic.
 (shr-tag-font): Let shr-generic colorize via inheritance.
shr.el (shr-descend): Only colorise something if we have a node that sets colors.
gnus-int.el (gnus-request-thread): Rework to take a header instead of a Message-ID to avoid having nnimap depend on gnus-sum.
shr.el (shr-tag-font): Colorize the region.
 (shr-tag-body): Ditto.
 (shr-tag-font): Actually let the styles be inherited instead of overwriting them.
 (shr-tag-font): Get the background color right.
 (shr-tag-style): Ignore all <style> tags for the moment.

13 years ago* lisp/bindings.el (complete-symbol): Move back from minibuffer.el.
Stefan Monnier [Mon, 6 Dec 2010 21:06:02 +0000 (16:06 -0500)]
* lisp/bindings.el (complete-symbol): Move back from minibuffer.el.
* lisp/minibuffer.el (completion-at-point): Remove the `arg'.

13 years agoFix Lawrence Mitchell's email address in lisp/ChangeLog.
Chong Yidong [Mon, 6 Dec 2010 20:07:48 +0000 (15:07 -0500)]
Fix Lawrence Mitchell's email address in lisp/ChangeLog.

13 years ago* dired-aux.el (dired-do-redisplay): Postphone dired-after-readin-hook while mapping...
Leo Liu [Mon, 6 Dec 2010 19:55:21 +0000 (14:55 -0500)]
* dired-aux.el (dired-do-redisplay): Postphone dired-after-readin-hook while mapping over marks (Bug#6810).

13 years agoInitialize image-dired auxilliary filenames relative to image-dired-dirs (Bug#7518).
Chong Yidong [Mon, 6 Dec 2010 19:45:31 +0000 (14:45 -0500)]
Initialize image-dired auxilliary filenames relative to image-dired-dirs (Bug#7518).

* image-dired.el (image-dired-db-file)
(image-dired-temp-image-file, image-dired-gallery-dir)
(image-dired-temp-rotate-image-file): Set default values relative
to image-dired-dir (Bug#7518).

13 years agoFix arg usage of format-decode-run-method (Bug#7488).
Lawrence Mitchell [Mon, 6 Dec 2010 19:35:54 +0000 (14:35 -0500)]
Fix arg usage of format-decode-run-method (Bug#7488).

* lisp/format.el (format-decode-run-method): Pass args FROM and TO, not
point-min and point-max, to shell-command-on-region (Bug#7488).

13 years ago* lisp/simple.el (just-one-space): Delete newlines for negative arg.
Deniz Dogan [Mon, 6 Dec 2010 18:21:42 +0000 (13:21 -0500)]
* lisp/simple.el (just-one-space): Delete newlines for negative arg.

13 years agoReturn CDATA sections (like <style>foo</style>) as text nodes.
Lars Magne Ingebrigtsen [Mon, 6 Dec 2010 16:59:52 +0000 (17:59 +0100)]
Return CDATA sections (like <style>foo</style>) as text nodes.

Also ignore blank HTML nodes.

13 years ago* lisp/ansi-color.el (ansi-color-unfontify-region): Replace by trivial def.
Stefan Monnier [Mon, 6 Dec 2010 16:51:37 +0000 (11:51 -0500)]
* lisp/ansi-color.el (ansi-color-unfontify-region): Replace by trivial def.
(ansi-color-filter-apply): Simplify.
(ansi-color-apply): Use `font-lock-face' rather than `face'.

13 years ago* src/lread.c (read1): Allow newstyle unquote outside of backquote.
Stefan Monnier [Mon, 6 Dec 2010 16:37:26 +0000 (11:37 -0500)]
* src/lread.c (read1): Allow newstyle unquote outside of backquote.
Disallow old-style backquotes inside new-style backquotes.
Don't count unquotes to figure out when we're "syntactically inside
but semantically outside of a backquote" any more.
Extend the restriction no-unescaped-commas-and-backquotes-in-symbols
to all contexts.

13 years agoFix crash with invisible text and overlays (Bug#7016).
Chong Yidong [Mon, 6 Dec 2010 06:54:52 +0000 (01:54 -0500)]
Fix crash with invisible text and overlays (Bug#7016).

* src/dispextern.h (struct it): New member overlay_strings_charpos.

* src/xdisp.c (next_overlay_string, load_overlay_strings): Record the
charpos where we computed n_overlay_strings.
(next_overlay_string): Load overlay strings at recorded position,
which may not be the same as the iterator's charpos (Bug#7016).

13 years ago* frame.el (blink-cursor-mode): Make default t for ns.
Jan Djärv [Mon, 6 Dec 2010 06:51:06 +0000 (07:51 +0100)]
* frame.el (blink-cursor-mode): Make default t for ns.

13 years agonnir.el (nnir-request-move-article): Remove obsolete code.
Gnus developers [Mon, 6 Dec 2010 03:59:56 +0000 (03:59 +0000)]
nnir.el (nnir-request-move-article): Remove obsolete code.
shr.el (shr-find-fill-point): Don't regard apostrophe as kinsoku-bol.

13 years agognus-util.el (gnus-macroexpand-all): Use eval-and-compile.
Katsumi Yamaoka [Sun, 5 Dec 2010 23:29:50 +0000 (23:29 +0000)]
gnus-util.el (gnus-macroexpand-all): Use eval-and-compile.

13 years agoMerge changes made in Gnus trunk.
Gnus developers [Sun, 5 Dec 2010 22:17:34 +0000 (22:17 +0000)]
Merge changes made in Gnus trunk.

nnir.el (nnir-categorize): Replace mapcar with mapc.
shr.el (shr-urlify): Display the title in <a> tags.
shr.el (shr-urlify): Show the URL before the title to avoid misleading URLs.
gnus-sum.el (gnus-summary-show-article): Reverse the meanings of `C-u
C-u g' and `C-u g' so that `C-u g' does what it traditionally did.
gnus.texi (Paging the Article): Note the reverse meanings of `C-u C-u g'.
gnus-html.el (gnus-html-put-image): Use widget instead of local maps
so that TAB works.
nnir.el (nnir-run-gmane): Use more careful test for gmane nntp server.
nnimap.el (nnimap-process-expiry-targets): Avoid downloading articles
unless necessary.
gnus-util.el (gnus-output-to-mail): Require nnmail before using nnmail
variables.
shr.el (shr-stylesheet): New dynamic variable for cascading the styles.
 (shr-colorize-region): New function.
 (shr-insert-background-overlay): Remove.
 (shr-render-td): Background setting should be taken care of on a higher level.
 (shr-tag-body): Use post-hoc colorizations.
 (shr-descend): Only render color/background when they change.
 (shr-tag-body): Set up a style sheet based on bgcolor/fgcolor.
 (shr-put-color-1): Don't overwrite old colors.
 (shr-colorize-region): When the background color isn't explicit, use a fixed background.
gnus.el (gnus-valid-select-methods): Allow nnimap to respool.
nntp.el (nntp-snarf-error-message): nnheader-report takes a format string as the parameter.
gnus-sum.el (gnus-summary-respool-article): The completion function expects a list instead of an alist.

13 years agoFix for 7412 (no cursor on image) backported from trunk.
Jan Djärv [Sun, 5 Dec 2010 10:33:48 +0000 (11:33 +0100)]
Fix for 7412 (no cursor on image) backported from trunk.

* nsterm.m (ns_dumpglyphs_image): If drawing cursor, fill background
with cursor color and draw a rectangle around the image.

13 years agoTrivial fixes for epg.el.
Daiki Ueno [Sun, 5 Dec 2010 01:30:58 +0000 (10:30 +0900)]
Trivial fixes for epg.el.

* epg.el (epg-digest-algorithm-alist): Replace "RMD160" with
"RIPEMD160" (Bug#7490).  Reported by Daniel Kahn Gillmor.
(epg-context-set-passphrase-callback): Mention that the callback
is not called when used with GnuPG 2.x.

modified:
  lisp/ChangeLog
  lisp/epg.elk

13 years ago* src/process.c: Remove checks for HAVE_SYS_IOCTL_H (Bug#7484).
Chong Yidong [Sun, 5 Dec 2010 01:23:22 +0000 (20:23 -0500)]
* src/process.c: Remove checks for HAVE_SYS_IOCTL_H (Bug#7484).

13 years agoDocument behavior of lazy highlight in word search (Bug#7470).
Chong Yidong [Sun, 5 Dec 2010 01:16:01 +0000 (20:16 -0500)]
Document behavior of lazy highlight in word search (Bug#7470).

* doc/emacs/search.texi (Word Search): Note that the lazy highlight
always matches to whole words (Bug#7470).

13 years ago* lisp/vc/vc-dir.el (vc-dir-query-replace-regexp): Doc fix (Bug#7501).
Bob Rogers [Sun, 5 Dec 2010 01:01:23 +0000 (20:01 -0500)]
* lisp/vc/vc-dir.el (vc-dir-query-replace-regexp): Doc fix (Bug#7501).

13 years ago* vc-dir.el (vc-dir-query-replace-regexp): Doc fix (Bug#7501).
Bob Rogers [Sun, 5 Dec 2010 00:59:37 +0000 (19:59 -0500)]
* vc-dir.el (vc-dir-query-replace-regexp): Doc fix (Bug#7501).

13 years agoDoc fixes for comint functions (Bug#7499).
Chong Yidong [Sun, 5 Dec 2010 00:55:00 +0000 (19:55 -0500)]
Doc fixes for comint functions (Bug#7499).

* lisp/comint.el (comint-dynamic-list-input-ring)
(comint-dynamic-complete-filename)
(comint-replace-by-expanded-filename)
(comint-dynamic-simple-complete)
(comint-dynamic-list-filename-completions)
(comint-dynamic-list-completions): Doc fix (Bug#7499).

13 years agoDoc fix for posn-* functions (Bug#7471).
Chong Yidong [Sun, 5 Dec 2010 00:43:18 +0000 (19:43 -0500)]
Doc fix for posn-* functions (Bug#7471).

* lisp/subr.el (posn-x-y, posn-object-x-y, posn-object-width-height):
Doc fix (Bug#7471).

13 years agoAvoid infloop when scrolling conservatively (Bug#7537).
Chong Yidong [Sun, 5 Dec 2010 00:32:32 +0000 (19:32 -0500)]
Avoid infloop when scrolling conservatively (Bug#7537).

* src/xdisp.c (try_scrolling): Avoid infloop if the first line is obscured
due to a vscroll (Bug#7537).

13 years ago* dired.el (dired-pop-to-buffer): Bind pop-up-frames to nil (Bug#7533).
Martin Rudalics [Sat, 4 Dec 2010 22:43:51 +0000 (17:43 -0500)]
* dired.el (dired-pop-to-buffer): Bind pop-up-frames to nil (Bug#7533).

13 years ago* url-cookie.el (url-cookie-retrieve): Handle null LOCALPART (Bug#7543).
Chong Yidong [Sat, 4 Dec 2010 22:41:41 +0000 (17:41 -0500)]
* url-cookie.el (url-cookie-retrieve): Handle null LOCALPART (Bug#7543).
Suggested by Lennart Borgman.