bpt/emacs.git
12 years ago* keyboard.c (process_pending_signals): Define only if SYNC_INPUT.
Paul Eggert [Fri, 20 Apr 2012 21:26:18 +0000 (14:26 -0700)]
* keyboard.c (process_pending_signals): Define only if SYNC_INPUT.

It is never used otherwise.

12 years ago* lisp/minibuffer.el (completion-file-name-table): Complete user names.
Stefan Monnier [Fri, 20 Apr 2012 19:56:59 +0000 (15:56 -0400)]
* lisp/minibuffer.el (completion-file-name-table): Complete user names.

12 years agoFix up merged ChangeLog entries
Glenn Morris [Fri, 20 Apr 2012 16:27:52 +0000 (09:27 -0700)]
Fix up merged ChangeLog entries

12 years ago* src/print.c (print_preprocess): Only check print_depth if print-circle
Stefan Monnier [Fri, 20 Apr 2012 13:02:20 +0000 (09:02 -0400)]
* src/print.c (print_preprocess): Only check print_depth if print-circle
is nil.
(print_object): Check for cycles even when print-circle is nil and
print-gensym is t, but only check print_depth if print-circle is nil.

12 years ago* lisp/font-lock.el (lisp-font-lock-keywords-2): Add pcase, pcase-let
Leo Liu [Fri, 20 Apr 2012 11:36:21 +0000 (19:36 +0800)]
* lisp/font-lock.el (lisp-font-lock-keywords-2): Add pcase, pcase-let
and pcase-let*.

12 years agoFix emacsclient/server behavior under --without-x.
Chong Yidong [Fri, 20 Apr 2012 10:37:57 +0000 (18:37 +0800)]
Fix emacsclient/server behavior under --without-x.

* lib-src/emacsclient.c (main): Send -tty to Emacs under more circumstanced (Bug#8314).

* lisp/server.el (server-process-filter): Only try to open a window
system frame if compiled with graphical support (Bug#8314).

Fixes: debbugs:11102

12 years ago* lisp/server.el (server-execute): Respect initial-buffer-choice
Chong Yidong [Fri, 20 Apr 2012 10:04:19 +0000 (18:04 +0800)]
* lisp/server.el (server-execute): Respect initial-buffer-choice
if it is a string and there are no files to open.
(server-create-window-system-frame, server-create-tty-frame):
Don't switch buffers here.

Fixes: debbugs:2825

12 years agoMerge from emacs-24 branch
Chong Yidong [Fri, 20 Apr 2012 08:48:50 +0000 (16:48 +0800)]
Merge from emacs-24 branch

12 years ago* etc/CONTRIBUTE: Expand a bit on copyright assignments.
Glenn Morris [Fri, 20 Apr 2012 07:49:19 +0000 (00:49 -0700)]
* etc/CONTRIBUTE: Expand a bit on copyright assignments.

12 years ago* MORE.STUFF: General update.
Glenn Morris [Fri, 20 Apr 2012 07:37:20 +0000 (00:37 -0700)]
* MORE.STUFF: General update.
Mention list-packages.
Remove many old/outdated URLs.

12 years agoFix sysfs battery display.
Dan Nicolaescu [Fri, 20 Apr 2012 07:32:35 +0000 (15:32 +0800)]
Fix sysfs battery display.

* battery.el (battery-echo-area-format): Display remaining time
for sysfs backend too (Bug#11269).
(battery-linux-sysfs): Fix conditional for the charge.

12 years agoFix last change.
Chong Yidong [Fri, 20 Apr 2012 07:13:25 +0000 (15:13 +0800)]
Fix last change.

* lisp/progmodes/gdb-mi.el (gdb-inferior-io-sentinel): Don't do
anything if gdb process is killed.

12 years agoFixes for pty handling in gdb-mi.el and process.c.
Chong Yidong [Fri, 20 Apr 2012 06:39:29 +0000 (14:39 +0800)]
Fixes for pty handling in gdb-mi.el and process.c.

* lisp/progmodes/gdb-mi.el (gdb): Revert 2012-04-19 change.
(gdb-inferior-io--init-proc): New function.
(gdb-init-1): Use it.
(gdb-inferior-io-sentinel): New sentinel for the gdb-inferior pty,
responsible for allocating a new pty and hooking it to gdb when
the old pty gets an EIO due to process exit.
(gdb-delchar-or-quit): New command.  Bind it in gdb-mi buffers.
(gdb-tooltip-print): Don't use obsolete tooltip-use-echo-area.
(gdb-inferior-io--maybe-delete-pty): Move into gdb-reset.

* src/process.c (wait_reading_process_output): If EIO occurs on a pty,
set the status to "failed" and ensure that sentinel is run.

* doc/lispref/processes.texi (Asynchronous Processes): Mention nil
argument to start-process.

12 years agoChangeLog updates for last commit.
Eli Zaretskii [Fri, 20 Apr 2012 06:28:32 +0000 (09:28 +0300)]
ChangeLog updates for last commit.

12 years agoDoc fixes in window.el functions.
Eli Zaretskii [Fri, 20 Apr 2012 06:27:11 +0000 (09:27 +0300)]
Doc fixes in window.el functions.

 lisp/window.el (window-min-size, window-sizable, window-min-delta)
 (window-max-delta, window--resizable, window-resizable)
 (window-total-size, window-full-height-p, window-full-width-p)
 (window-in-direction, window--resize-mini-window, window-resize)
 (window--resize-child-windows-normal)
 (window--resize-child-windows, window--resize-siblings)
 (window--resize-this-window, adjust-window-trailing-edge)
 (enlarge-window, shrink-window): Doc fixes.

12 years agoPut the '$Id:' tag into MS-Windows executable of Emacs.
Eli Zaretskii [Fri, 20 Apr 2012 05:57:38 +0000 (08:57 +0300)]
Put the '$Id:' tag into MS-Windows executable of Emacs.

 lisp/version.el (top level): Put into the executable the ident-style
 '$Id:' tag on windows-nt as well.

12 years agoDoc fixes for emacs-bzr-* facilities.
Eli Zaretskii [Fri, 20 Apr 2012 05:47:55 +0000 (08:47 +0300)]
Doc fixes for emacs-bzr-* facilities.

 lisp/version.el (emacs-bzr-version, emacs-bzr-get-version): Doc fixes.

12 years agoFOR-RELEASE small edits
Glenn Morris [Fri, 20 Apr 2012 04:03:55 +0000 (21:03 -0700)]
FOR-RELEASE small edits

12 years agoSome rough FAQ additions for Emacs 24
Glenn Morris [Fri, 20 Apr 2012 02:19:43 +0000 (22:19 -0400)]
Some rough FAQ additions for Emacs 24

* doc/misc/faq.texi (New in Emacs 24): New section.
(Packages that do not come with Emacs): Mention M-x list-packages.

12 years agoMore small edits for doc/lispref/minibuf.texi
Glenn Morris [Fri, 20 Apr 2012 01:37:14 +0000 (21:37 -0400)]
More small edits for doc/lispref/minibuf.texi

* doc/lispref/elisp.texi, doc/lispref/vol1.texi, doc/lispref/vol2.texi:
* doc/lispref/minibuf.texi (Completion):
Update "High-Level Completion" description.

* doc/lispref/minibuf.texi (Basic Completion):
No need to describe obarrays here.
Don't mention obsolete `nospace' argument of all-completions.
(Minibuffer Completion, Completion Commands, Reading File Names)
(Completion Variables): Copyedits.
(Completion Commands): Mention parent keymaps.
Remove obsolete minibuffer-local-filename-must-match-map.
(High-Level Completion): Remove read-variable's almost
word-for-word duplication of read-command.

12 years ago* lisp/electric.el (electric-indent-post-self-insert-function): Check that
Stefan Monnier [Thu, 19 Apr 2012 22:02:25 +0000 (18:02 -0400)]
* lisp/electric.el (electric-indent-post-self-insert-function): Check that
electric-indent-mode is enabled in current buffer.

12 years agolisp/imenu.el (imenu-progress-message): Restore.
Juanma Barranquero [Thu, 19 Apr 2012 21:34:49 +0000 (23:34 +0200)]
lisp/imenu.el (imenu-progress-message): Restore.

12 years agolisp/*: Add declarations, remove unused bindings, mark unused args.
Juanma Barranquero [Thu, 19 Apr 2012 17:20:26 +0000 (19:20 +0200)]
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.

12 years agoRemove some `toggle-read-only' warnings.
Juanma Barranquero [Thu, 19 Apr 2012 16:50:07 +0000 (18:50 +0200)]
Remove some `toggle-read-only' warnings.

* lisp/bs.el (bs-toggle-readonly): Call `toggle-read-only' interactively.

* lisp/descr-text.el (describe-char):
  lisp/progmodes/python.el (python-describe-symbol):
  Don't call `toggle-read-only', set `buffer-read-only'.

12 years agoAuto-commit of generated files.
Glenn Morris [Thu, 19 Apr 2012 10:17:36 +0000 (06:17 -0400)]
Auto-commit of generated files.

12 years ago* net/tramp.el (tramp-action-password): Let-bind enable-recursive-minibuffers to t.
Michael Albinus [Thu, 19 Apr 2012 08:37:10 +0000 (10:37 +0200)]
* net/tramp.el (tramp-action-password): Let-bind enable-recursive-minibuffers to t.

12 years agoDelete the gdb-inferior pty when the gdb process exits.
Chong Yidong [Thu, 19 Apr 2012 08:09:30 +0000 (16:09 +0800)]
Delete the gdb-inferior pty when the gdb process exits.

* lisp/progmodes/gdb-mi.el (gdb-inferior-io--maybe-delete-pty): New
function to call delete-process on the gdb-inferior buffer's pty.
(gdb-reset): Use it, instead of relying on kill-buffer to kill the
pty process.
(gdb-update): New arg to suppress talking to the gdb process.
(gdb-done-or-error): Use it.
(gdb-stopped-functions): Rename from gdb-stopped-hooks.
(gdb): Call gdb-inferior-io--maybe-delete-pty as a workaround for
sentinel not being called.

* lisp/comint.el (make-comint-in-buffer, comint-exec): Doc fix.

Fixes: debbugs:11273

12 years agoChangeLog fix
Glenn Morris [Thu, 19 Apr 2012 06:05:58 +0000 (23:05 -0700)]
ChangeLog fix

12 years agoMore small edits for doc/lispref/minibuf.texi
Glenn Morris [Thu, 19 Apr 2012 06:04:05 +0000 (23:04 -0700)]
More small edits for doc/lispref/minibuf.texi

* doc/lispref/minibuf.texi (Object from Minibuffer):
Remove overly pedantic paragraph.
(Minibuffer History): Copyedits.  Add face-name-history.
(Initial Input, Yes-or-No Queries, Multiple Queries)
(Minibuffer Windows, Minibuffer Misc): Copyedits.
(Yes-or-No Queries): Tweak example.
(Minibuffer Commands): Add next-complete-history-element.
(Minibuffer Misc): Mention minibuffer-message-timeout, and
minibuffer-inactive-mode.

* doc/lispref/minibuf.texi (Minibuffers):
* doc/lispref/elisp.texi, doc/lispref/vol1.texi, doc/lispref/vol2.texi:
Fix minibuffer subsection order.

* lisp/subr.el: Comment.

12 years agoShameful typo
Glenn Morris [Thu, 19 Apr 2012 02:44:48 +0000 (19:44 -0700)]
Shameful typo

12 years agoSmall edits for doc/lispref/minibuf.texi
Glenn Morris [Thu, 19 Apr 2012 02:00:23 +0000 (22:00 -0400)]
Small edits for doc/lispref/minibuf.texi

* doc/lispref/minibuf.texi: Standardize metasyntactic variables
("history", etc).
Use Texinfo-recommended form of quote+punctuation.
(Intro to Minibuffers): First minibuffer is #1, not #0.
Mention minibuffer-inactive-mode.
(Text from Minibuffer): Copyedits.
(Minibuffer History, Programmed Completion): Fix @var usage.

12 years ago* lisp/progmodes/gud.el (gud-key-prefix): Use :type 'key-sequence
Sam Steingold [Wed, 18 Apr 2012 20:26:57 +0000 (16:26 -0400)]
* lisp/progmodes/gud.el (gud-key-prefix): Use :type 'key-sequence
instead of 'string to accommodate values like [f11].
Always use `vconcat' instead of `concat' on it, like in `gud-def'.
* lisp/progmodes/gdb-mi.el: Likewise.

12 years agoMerge from trunk.
Paul Eggert [Wed, 18 Apr 2012 17:07:06 +0000 (10:07 -0700)]
Merge from trunk.

12 years agoMerge from trunk.
Paul Eggert [Wed, 18 Apr 2012 16:45:13 +0000 (09:45 -0700)]
Merge from trunk.

12 years ago* lisp/abbrev.el (edit-abbrevs): Move point to the abbrev table of
Leo Liu [Wed, 18 Apr 2012 16:43:23 +0000 (00:43 +0800)]
* lisp/abbrev.el (edit-abbrevs): Move point to the abbrev table of
current buffer.
(prepare-abbrev-list-buffer): Enter edit-abbrevs-mode only if
LOCAL is nil.

12 years ago* configure.in: Do not assume GCC 4.7.0 and/or no stack protection.
Paul Eggert [Wed, 18 Apr 2012 16:40:06 +0000 (09:40 -0700)]
* configure.in: Do not assume GCC 4.7.0 and/or no stack protection.

12 years agoAuto-commit of generated files.
Glenn Morris [Wed, 18 Apr 2012 11:17:59 +0000 (07:17 -0400)]
Auto-commit of generated files.

12 years agoMore small doc and lispref edits related to processes
Glenn Morris [Wed, 18 Apr 2012 07:21:18 +0000 (00:21 -0700)]
More small doc and lispref edits related to processes

* doc/lispref/processes.texi (Serial Ports, Byte Packing, Bindat Spec)
(Bindat Functions): Copyedits.

* src/process.c (Fset_process_inherit_coding_system_flag)
(Fset_process_query_on_exit_flag): Doc fix (mention return value).
(Fmake_network_process, Fmake_serial_process): Doc fix.

* admin/FOR-RELEASE: Related markup.

12 years ago* simple.el (line-move): Use forward-line if in batch mode.
Chong Yidong [Wed, 18 Apr 2012 07:00:52 +0000 (15:00 +0800)]
* simple.el (line-move): Use forward-line if in batch mode.

Fixes: debbugs:11053

12 years agoFix require-final-newline interaction with read-only buffers.
Christopher Schmidt [Wed, 18 Apr 2012 06:24:13 +0000 (14:24 +0800)]
Fix require-final-newline interaction with read-only buffers.

* lisp/files.el (after-find-file): Do not try to add a final newline
if the buffer is read-only.

Fixes: debbugs:11156

12 years agoDocfix for require-final-newline in Lisp manual.
Christopher Schmidt [Wed, 18 Apr 2012 06:20:47 +0000 (14:20 +0800)]
Docfix for require-final-newline in Lisp manual.

* doc/lispref/files.texi (Saving Buffers): Document `visit and `visit-save'
values of require-final-newline.

12 years ago* lisp/progmodes/grep.el (grep, rgrep): Doc fix.
Chong Yidong [Wed, 18 Apr 2012 06:04:51 +0000 (14:04 +0800)]
* lisp/progmodes/grep.el (grep, rgrep): Doc fix.

Fixes: debbugs:11268

12 years agoMore process-related doc and manual small edits
Glenn Morris [Wed, 18 Apr 2012 03:48:43 +0000 (20:48 -0700)]
More process-related doc and manual small edits

* doc/lispref/processes.texi (Output from Processes, Filter Functions):
Mention waiting-for-user-input-p.
(Sentinels, Query Before Exit, System Processes, Transaction Queues):
(Network Servers, Datagrams, Network Processes, Network Options)
(Network Feature Testing, Serial Ports): Copyedits.
(Network): Add encrypted network overview paragraph.
Cross-reference the Emacs-GnuTLS manual.  Use @acronym.

* lisp/net/network-stream.el (open-network-stream): Doc fix.

* src/process.c (Fset_process_inherit_coding_system_flag)
(Fset_process_query_on_exit_flag): Doc fix (mention return value).
(Fmake_network_process): Doc fix.

12 years ago* configure.in: Don't use the -R option (Bug#11251).
Ludovic Courtès [Wed, 18 Apr 2012 02:14:53 +0000 (10:14 +0800)]
* configure.in: Don't use the -R option (Bug#11251).

12 years agoFix logic for returning to and yanking from Rmail buffer.
Richard M. Stallman [Tue, 17 Apr 2012 23:23:20 +0000 (19:23 -0400)]
Fix logic for returning to and yanking from Rmail buffer.

12 years agoFix ChangeLog typo.
Paul Eggert [Tue, 17 Apr 2012 23:06:33 +0000 (16:06 -0700)]
Fix ChangeLog typo.

12 years agoMerge from trunk.
Paul Eggert [Tue, 17 Apr 2012 22:57:44 +0000 (15:57 -0700)]
Merge from trunk.

12 years ago* dired.c (Fsystem_groups): Remove unused local.
Paul Eggert [Tue, 17 Apr 2012 22:56:06 +0000 (15:56 -0700)]
* dired.c (Fsystem_groups): Remove unused local.

12 years agoINSTALL: Mention --enable-gcc-warnings.
Paul Eggert [Tue, 17 Apr 2012 21:40:07 +0000 (14:40 -0700)]
INSTALL: Mention --enable-gcc-warnings.

12 years agoMerge from trunk.
Paul Eggert [Tue, 17 Apr 2012 21:38:34 +0000 (14:38 -0700)]
Merge from trunk.

12 years agolisp/server.el (server-ensure-safe-dir): Simplify.
Juanma Barranquero [Tue, 17 Apr 2012 17:05:22 +0000 (19:05 +0200)]
lisp/server.el (server-ensure-safe-dir): Simplify.

12 years agolisp/subr.el: Update comment.
Juanma Barranquero [Tue, 17 Apr 2012 16:24:44 +0000 (18:24 +0200)]
lisp/subr.el: Update comment.

12 years agoFix bug #11261 with cursor movement in a continued line when header line is present.
Eli Zaretskii [Tue, 17 Apr 2012 15:25:17 +0000 (18:25 +0300)]
Fix bug #11261 with cursor movement in a continued line when header line is present.

 src/xdisp.c (string_buffer_position_lim): Limit starting position to BEGV.
 (set_cursor_from_row): If called for a mode-line or header-line
 row, return zero immediately.
 (try_cursor_movement): If inside continuation line, don't back up
 farther than the first row after the header line, if any.  Don't
 consider the header-line row as "partially visible", even if
 MATRIX_ROW_PARTIALLY_VISIBLE_P returns non-zero.

12 years ago* emacs-lisp/tabulated-list.el (tabulated-list-print): Fix typos.
Chong Yidong [Tue, 17 Apr 2012 15:07:21 +0000 (23:07 +0800)]
* emacs-lisp/tabulated-list.el (tabulated-list-print): Fix typos.

12 years agoAuto-commit of loaddefs files.
Glenn Morris [Tue, 17 Apr 2012 10:21:15 +0000 (06:21 -0400)]
Auto-commit of loaddefs files.

12 years agoAuto-commit of generated files.
Glenn Morris [Tue, 17 Apr 2012 10:17:40 +0000 (06:17 -0400)]
Auto-commit of generated files.

12 years agoImprove description of :advertised-binding in Lisp manual.
Chong Yidong [Tue, 17 Apr 2012 05:58:34 +0000 (13:58 +0800)]
Improve description of :advertised-binding in Lisp manual.

* doc/lispref/keymaps.texi (Menu Bar): Move most of the :advertised-binding
description to help.texi.

* doc/lispref/help.texi (Keys in Documentation): Mention :advertised-binding.

12 years agoNEWS placeholder
Glenn Morris [Tue, 17 Apr 2012 03:08:05 +0000 (20:08 -0700)]
NEWS placeholder

12 years agoMerge from pending; try to fix-up suboptimal ses ChangeLog.
Glenn Morris [Tue, 17 Apr 2012 03:06:56 +0000 (20:06 -0700)]
Merge from pending; try to fix-up suboptimal ses ChangeLog.

12 years agoAdd perl-indent-parens-as-block option (tiny change)
Peter Oliver [Tue, 17 Apr 2012 02:46:22 +0000 (19:46 -0700)]
Add perl-indent-parens-as-block option (tiny change)

* lisp/progmodes/perl-mode.el (perl-indent-parens-as-block): New option.
(perl-calculate-indent): Respect it.

Fixes: debbugs:11118

12 years ago* lisp/dired-aux.el (dired-mark-read-string): Doc fix.
Glenn Morris [Tue, 17 Apr 2012 01:52:00 +0000 (21:52 -0400)]
* lisp/dired-aux.el (dired-mark-read-string): Doc fix.

12 years agoAdd user, group name completion to dired
Dmitry Antipov [Tue, 17 Apr 2012 01:49:40 +0000 (21:49 -0400)]
Add user, group name completion to dired

Note from committer:

I modified the original patch, by adding the new collection argument
at the end of the argument list rather than in the middle.

* dired-aux.el (dired-mark-read-string): Offer optional completion.
(dired-do-chxxx): Complete chown, chgrp over users, groups.

Fixes: debbugs:7900

12 years ago* src/dired.c (Fsystem_users): Doc fix.
Glenn Morris [Tue, 17 Apr 2012 01:35:15 +0000 (21:35 -0400)]
* src/dired.c (Fsystem_users): Doc fix.

* etc/NEWS: Mention system-users, system-groups.

12 years agoAdd functions to get system user names, group names
Dmitry Antipov [Tue, 17 Apr 2012 01:29:58 +0000 (21:29 -0400)]
Add functions to get system user names, group names

Note from committer:
I removed the part that adds grp.h to AC_CHECK_HEADERS and

+#ifdef HAVE_GRP_H
 #include <grp.h>
+#endif

to src/dired.c, because the latter has unconditionally included grp.h
since 2003, and uses it eg in stat_gname.

* configure.in (AC_CHECK_FUNCS): Add getpwent, endpwent, getgrent, endgrent.

* src/dired.c (Fsystem_users, Fsystem_groups): New functions.
(syms_of_dired): Add them.

Fixes: debbugs:7900

12 years agoUse auto-hscroll-mode rather than the alias automatic-hscrolling
Glenn Morris [Tue, 17 Apr 2012 00:04:53 +0000 (20:04 -0400)]
Use auto-hscroll-mode rather than the alias automatic-hscrolling

* lisp/mouse.el (mouse-drag-track):
* lisp/speedbar.el (speedbar-frame-mode):
Use auto-hscroll-mode rather than the alias automatic-hscrolling.

12 years agoReplace independent implementations of string-prefix-p
Glenn Morris [Mon, 16 Apr 2012 23:57:09 +0000 (19:57 -0400)]
Replace independent implementations of string-prefix-p

* vc/vc.el (vc-string-prefix-p):
* vc/pcvs-util.el (cvs-string-prefix-p):
* textmodes/tex-mode.el (latex-string-prefix-p, tex-string-prefix-p):
* mpc.el (mpc-string-prefix-p):
Make all of these into obsolete aliases for string-prefix-p.
Update callers.
* vc/pcvs.el, vc/vc-dispatcher.el, vc/vc-dir.el: Update callers.

12 years agoFix thinko in previous yow.el change
Glenn Morris [Mon, 16 Apr 2012 23:07:19 +0000 (19:07 -0400)]
Fix thinko in previous yow.el change

12 years agotwo-column.el small cleanup
Glenn Morris [Mon, 16 Apr 2012 20:13:38 +0000 (16:13 -0400)]
two-column.el small cleanup

* lisp/textmodes/two-column.el: Move custom options to the start.
(frame-width): Remove compat definition.
(2C-associate-buffer, 2C-dissociate):
Use with-current-buffer rather than save-excursion.
(2C-dissociate): Force a mode-line update.
(2C-autoscroll): Use ignore-errors.

12 years agoCC Mode: Ensure searching for keywords is case sensitive.
Alan Mackenzie [Mon, 16 Apr 2012 20:01:44 +0000 (20:01 +0000)]
CC Mode: Ensure searching for keywords is case sensitive.

12 years ago* lisp/progmodes/python.el: Trivial cleanup.
Leo Liu [Mon, 16 Apr 2012 19:28:57 +0000 (03:28 +0800)]
* lisp/progmodes/python.el: Trivial cleanup.

12 years ago* eieio-opt.el (describe-class, describe-generic): Autoload trivia.
Glenn Morris [Mon, 16 Apr 2012 19:25:59 +0000 (15:25 -0400)]
* eieio-opt.el (describe-class, describe-generic): Autoload trivia.

12 years agoChangeLog fix
Glenn Morris [Mon, 16 Apr 2012 19:22:32 +0000 (15:22 -0400)]
ChangeLog fix

12 years agoHeader comment trivial fix
Glenn Morris [Mon, 16 Apr 2012 19:21:32 +0000 (15:21 -0400)]
Header comment trivial fix

12 years ago* lisp/emacs-lisp/cl-extra.el (*random-state*): Remove unnecessary declaration.
Glenn Morris [Mon, 16 Apr 2012 19:20:42 +0000 (15:20 -0400)]
* lisp/emacs-lisp/cl-extra.el (*random-state*): Remove unnecessary declaration.

12 years ago* lisp/calendar/cal-tex.el (cal-tex-end-document): Trivial clarification.
Glenn Morris [Mon, 16 Apr 2012 19:18:36 +0000 (15:18 -0400)]
* lisp/calendar/cal-tex.el (cal-tex-end-document): Trivial clarification.

12 years ago* configure.in (NS_HAVE_NSINTEGER): Remove unnecessary variable.
Glenn Morris [Mon, 16 Apr 2012 19:13:44 +0000 (15:13 -0400)]
* configure.in (NS_HAVE_NSINTEGER): Remove unnecessary variable.

12 years ago* lisp/gnus/nndraft.el (nndraft-request-list): Fix declaration.
Glenn Morris [Mon, 16 Apr 2012 19:09:19 +0000 (15:09 -0400)]
* lisp/gnus/nndraft.el (nndraft-request-list): Fix declaration.

12 years agoFix comment typo
Glenn Morris [Mon, 16 Apr 2012 19:06:02 +0000 (15:06 -0400)]
Fix comment typo

12 years ago* cookie1.el (cookie-snarf): Explicit error if input file cannot be read.
Glenn Morris [Mon, 16 Apr 2012 19:04:27 +0000 (15:04 -0400)]
* cookie1.el (cookie-snarf): Explicit error if input file cannot be read.

12 years ago* lisp/play/yow.el (yow-file): Use expand-file-name rather than concat.
Glenn Morris [Mon, 16 Apr 2012 19:02:59 +0000 (15:02 -0400)]
* lisp/play/yow.el (yow-file): Use expand-file-name rather than concat.
Remove old comment.

12 years ago* lisp/progmodes/perl-mode.el (c-macro-expand): Remove unnecessary autoload
Glenn Morris [Mon, 16 Apr 2012 19:01:30 +0000 (15:01 -0400)]
* lisp/progmodes/perl-mode.el (c-macro-expand): Remove unnecessary autoload
(it is in loaddefs.el).

12 years agopicture.el small cleanup
Glenn Morris [Mon, 16 Apr 2012 18:53:06 +0000 (14:53 -0400)]
picture.el small cleanup

* lisp/textmodes/picture.el (picture-desired-column)
(picture-update-desired-column): Convert comments to doc-strings.
(picture-substitute): Remove function.
(picture-mode-map): Initialize in the defvar.

12 years agoSet lisp/vc/vc-hg.el maintainer to FSF.
Glenn Morris [Mon, 16 Apr 2012 18:48:46 +0000 (14:48 -0400)]
Set lisp/vc/vc-hg.el maintainer to FSF.
Ref: http://lists.gnu.org/archive/html/bug-gnu-emacs/2012-03/msg00325.html

12 years agoReplace a use of eval-after-load
Glenn Morris [Mon, 16 Apr 2012 18:46:46 +0000 (14:46 -0400)]
Replace a use of eval-after-load

* lisp/woman.el: Remove eval-after-load for tar-mode.

* lisp/tar-mode.el (tar-mode-map): Add woman binding and menu entry.
(woman-tar-extract-file): Autoload it.

12 years ago* lisp/frame.el (automatic-hscrolling): Make this alias obsolete.
Glenn Morris [Mon, 16 Apr 2012 18:41:38 +0000 (14:41 -0400)]
* lisp/frame.el (automatic-hscrolling): Make this alias obsolete.

12 years ago* configure.in: Remove X libs workaround for old autoconf.
Glenn Morris [Mon, 16 Apr 2012 18:32:59 +0000 (14:32 -0400)]
* configure.in: Remove X libs workaround for old autoconf.

12 years ago(ispell-dictionary-base-alist): Revert to original XEmacs friendly default value.
Agustín Martín [Mon, 16 Apr 2012 17:32:02 +0000 (19:32 +0200)]
(ispell-dictionary-base-alist): Revert to original XEmacs friendly default value.

Having [:alpha:] here is no longer needed. If possible [:alpha:] will be
set in `ispell-set-spellchecker-params' (and will always be for Emacs).

12 years agoispell.el: Fix last Changelog entry. utf-8 will be enabled if possible.
Agustín Martín [Mon, 16 Apr 2012 17:06:58 +0000 (19:06 +0200)]
ispell.el: Fix last Changelog entry. utf-8 will be enabled if possible.

12 years agoMerge from trunk.
Paul Eggert [Mon, 16 Apr 2012 15:21:26 +0000 (08:21 -0700)]
Merge from trunk.

12 years ago* mail/sendmail.el (mail-bury): Call return action with the right Rmail buffer.
Chong Yidong [Mon, 16 Apr 2012 10:11:45 +0000 (18:11 +0800)]
* mail/sendmail.el (mail-bury): Call return action with the right Rmail buffer.

Fixes: debbugs:11242

12 years agoispell.el (ispell-set-spellchecker-params): Make dicts use [:alpha:] if
Agustín Martín [Mon, 16 Apr 2012 09:49:51 +0000 (11:49 +0200)]
ispell.el (ispell-set-spellchecker-params): Make dicts use [:alpha:] if
possible.

If Emacs flavour supports [:alpha:] regexps, use it for Casechars
and Not-Casechars. This currently means use it unless flavour is
XEmacs.

Fixes: debbugs:11200

12 years agoMerge from trunk.
Paul Eggert [Mon, 16 Apr 2012 06:40:21 +0000 (23:40 -0700)]
Merge from trunk.

12 years ago* alloc.c: Remove one incorrect comment and fix another.
Paul Eggert [Mon, 16 Apr 2012 06:39:21 +0000 (23:39 -0700)]
* alloc.c: Remove one incorrect comment and fix another.

12 years agoCall imagemagick-register-types automatically.
Chong Yidong [Mon, 16 Apr 2012 03:47:43 +0000 (11:47 +0800)]
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.

12 years agoMerge from trunk.
Paul Eggert [Mon, 16 Apr 2012 03:39:50 +0000 (20:39 -0700)]
Merge from trunk.

12 years agoFix minor alloc.c problems found by static checking.
Paul Eggert [Mon, 16 Apr 2012 03:38:40 +0000 (20:38 -0700)]
Fix minor alloc.c problems found by static checking.

* alloc.c (_malloc_internal, _free_internal) [!DOUG_LEA_MALLOC]:
New extern decls, to avoid calling undeclared functions.
(dont_register_blocks): Define if ((!SYSTEM_MALLOC && !SYNC_INPUT)
&& GC_MALLOC_CHECK), not if ((GC_MARK_STACK || defined
GC_MALLOC_CHECK) && GC_MALLOC_CHECK), to match when it's used.
(NEED_MEM_INSERT): New macro.
(mem_insert, mem_insert_fixup) [!NEED_MEM_INSERT]: Remove; unused.

12 years agoMerge from trunk.
Paul Eggert [Mon, 16 Apr 2012 01:22:25 +0000 (18:22 -0700)]
Merge from trunk.

12 years agoFix minor ralloc.c problems found by static checking.
Paul Eggert [Mon, 16 Apr 2012 01:18:13 +0000 (18:18 -0700)]
Fix minor ralloc.c problems found by static checking.

See http://lists.gnu.org/archive/html/emacs-devel/2011-12/msg00720.html
* ralloc.c (ALIGNED, ROUND_TO_PAGE, HEAP_PTR_SIZE)
(r_alloc_size_in_use, r_alloc_freeze, r_alloc_thaw): Remove; unused.
(r_alloc_sbrk): Now static.

12 years agoMerge from trunk.
Paul Eggert [Mon, 16 Apr 2012 01:12:46 +0000 (18:12 -0700)]
Merge from trunk.

12 years agoImprove ralloc.c interface checking.
Paul Eggert [Mon, 16 Apr 2012 01:10:42 +0000 (18:10 -0700)]
Improve ralloc.c interface checking.

See http://lists.gnu.org/archive/html/emacs-devel/2011-12/msg00720.html
* buffer.c (ralloc_reset_variable, r_alloc, r_re_alloc)
(r_alloc_free) [REL_ALLOC]: Move decls from here ...
* lisp.h (r_alloc, r_alloc_free, r_re_alloc, r_alloc_reset_variable)
[REL_ALLOC]: ... to here, to check interface.
* m/ia64.h (r_alloc, r_alloc_free) [REL_ALLOC && !_MALLOC_INTERNAL]:
Remove decls.  This fixes an "It stinks!".