]> code.delx.au - gnu-emacs/log
gnu-emacs
12 years agoMerge from emacs-24; up to 2012-04-20T05:47:55Z!eliz@gnu.org
Chong Yidong [Sat, 5 May 2012 04:32:58 +0000 (12:32 +0800)]
Merge from emacs-24; up to 2012-04-20T05:47:55Z!eliz@gnu.org

12 years ago* lisp/files.el (file-auto-mode-skip): New var.
Ransom Williams [Sat, 5 May 2012 03:21:47 +0000 (23:21 -0400)]
* lisp/files.el (file-auto-mode-skip): New var.
(set-auto-mode-1): Use it.

12 years agoUse set-temporary-overlay-map.
Stefan Monnier [Sat, 5 May 2012 02:50:20 +0000 (22:50 -0400)]
Use set-temporary-overlay-map.
* lisp/repeat.el: Use lexical-binding.
(repeat-last-self-insert, repeat-num-input-keys-at-self-insert)
(repeat-undo-count): Remove.
(repeat):
* lisp/progmodes/octave-mod.el (octave-abbrev-start):
* lisp/progmodes/f90.el (f90-abbrev-start):
* lisp/face-remap.el (text-scale-adjust):
* lisp/kmacro.el (kmacro-call-macro): Use set-temporary-overlay-map.

12 years ago* lisp/emacs-lisp/pcase.el (pcase--let*): New function.
Stefan Monnier [Sat, 5 May 2012 02:05:49 +0000 (22:05 -0400)]
* lisp/emacs-lisp/pcase.el (pcase--let*): New function.
(pcase--expand, pcase-codegen, pcase--q1): Use it to reduce nesting
a bit more.
(pcase--split-pred): Be more clever about ruling out overlap between
a predicate and some constant pattern.
(pcase--q1): Use `null' instead of (eq foo nil).

12 years agoNew function set-temporary-overlay-map and macros (defvar|setq)-local.
Stefan Monnier [Sat, 5 May 2012 01:47:04 +0000 (21:47 -0400)]
New function set-temporary-overlay-map and macros (defvar|setq)-local.
* lisp/subr.el (setq-local, defvar-local): New macros.
(kbd): Redefine as an alias.
(with-selected-window): Leave unrelated frames alone.
(set-temporary-overlay-map): New function.

12 years agoAdd new error and function `user-error'.
Stefan Monnier [Fri, 4 May 2012 23:16:47 +0000 (19:16 -0400)]
Add new error and function `user-error'.
* lisp/subr.el (user-error): New function.
* lisp/window.el (switch-to-buffer):
* lisp/vc/smerge-mode.el (smerge-resolve-function, smerge-resolve)
(smerge-match-conflict):
* lisp/simple.el (previous-matching-history-element)
(next-matching-history-element, goto-history-element, undo-more)
(undo-start):
* lisp/progmodes/etags.el (visit-tags-table-buffer, find-tag-tag)
(find-tag-noselect, find-tag-in-order, etags-goto-tag-location)
(next-file, tags-loop-scan, list-tags, complete-tag):
* lisp/progmodes/compile.el (compilation-loop):
* lisp/mouse.el (mouse-minibuffer-check):
* lisp/man.el (Man-bgproc-sentinel, Man-goto-page):
* lisp/info.el (Info-find-node-2, Info-extract-pointer, Info-history-back)
(Info-history-forward, Info-follow-reference, Info-menu)
(Info-extract-menu-item, Info-extract-menu-counting)
(Info-forward-node, Info-backward-node, Info-next-menu-item)
(Info-last-menu-item, Info-next-preorder, Info-last-preorder)
(Info-next-reference, Info-prev-reference, Info-index)
(Info-index-next, Info-follow-nearest-node)
(Info-copy-current-node-name):
* lisp/imenu.el (imenu--make-index-alist)
(imenu-default-create-index-function, imenu-add-to-menubar):
* lisp/files.el (basic-save-buffer, recover-file):
* lisp/emacs-lisp/easy-mmode.el (easy-mmode-define-navigation):
* lisp/emacs-lisp/checkdoc.el (checkdoc-continue, checkdoc-comments)
(checkdoc-message-text, checkdoc-defun):
* lisp/dabbrev.el (dabbrev-completion, dabbrev--abbrev-at-point):
* lisp/cus-edit.el (customize-changed-options, customize-rogue)
(customize-saved, custom-variable-set, custom-variable-mark-to-save)
(custom-variable-mark-to-reset-standard)
(custom-variable-reset-backup, custom-face-mark-to-reset-standard)
(custom-file):
* lisp/completion.el (check-completion-length):
* lisp/comint.el (comint-search-arg)
(comint-previous-matching-input-string-position)
(comint-previous-matching-input)
(comint-replace-by-expanded-history-before-point, comint-send-input)
(comint-copy-old-input, comint-backward-matching-input)
(comint-goto-process-mark, comint-set-process-mark):
* lisp/calendar/calendar.el (calendar-cursor-to-date): Use it.
* lisp/bindings.el (debug-ignored-errors): Remove regexps, add `user-error'.
* src/data.c (PUT_ERROR): New macro.
(syms_of_data): Use it.  Add new error type `user-error'.
* src/undo.c (user_error): New function.
(Fprimitive_undo): Use it.
* src/print.c (print_error_message): Adjust print style for `user-error'.
* src/keyboard.c (user_error): New function.
(Fexit_recursive_edit, Fabort_recursive_edit): Use it.

12 years ago* doc/misc/Makefile.in (info): Make it the first target again.
Glenn Morris [Fri, 4 May 2012 20:53:03 +0000 (16:53 -0400)]
* doc/misc/Makefile.in (info): Make it the first target again.

12 years ago* lisp/dabbrev.el (dabbrev--ignore-case-p): New function.
Stefan Monnier [Fri, 4 May 2012 19:17:01 +0000 (15:17 -0400)]
* lisp/dabbrev.el (dabbrev--ignore-case-p): New function.
(dabbrev-completion, dabbrev-expand, dabbrev--substitute-expansion):
Use it.

12 years ago* lisp/files.el (automount-dir-prefix): Mark as obsolete.
Stefan Monnier [Fri, 4 May 2012 19:14:42 +0000 (15:14 -0400)]
* lisp/files.el (automount-dir-prefix): Mark as obsolete.

12 years agoAuto-commit of generated files.
Glenn Morris [Fri, 4 May 2012 10:17:30 +0000 (06:17 -0400)]
Auto-commit of generated files.

12 years agoGive info files the .info extension
Glenn Morris [Fri, 4 May 2012 06:45:03 +0000 (23:45 -0700)]
Give info files the .info extension

Ref http://lists.gnu.org/archive/html/emacs-devel/2012-04/msg00354.html

* configure.in (INFO_EXT, INFO_OPTS): New output variables.

* doc/emacs/Makefile.in (INFO_EXT, INFO_OPTS): New, set by configure.
(info, infoclean): Use $INFO_EXT.
($(infodir)/emacs$(INFO_EXT)): Use $INFO_EXT and $INFO_OPT.
* doc/emacs/makefile.w32-in (INFO_EXT, INFO_OPTS): New.
(INFO_TARGETS): Use $INFO_EXT.
($(infodir)/emacs$(INFO_EXT)): Use $INFO_EXT and $INFO_OPT, and -o.

* doc/lispintro/Makefile.in (INFO_EXT, INFO_OPTS): New, set by configure.
(info, infoclean): Use $INFO_EXT.
(${infodir}/eintr$(INFO_EXT)): Use $INFO_EXT and $INFO_OPT.
* doc/lispintro/makefile.w32-in (INFO_EXT, INFO_OPTS): New.
(INFO_TARGETS, clean): Use $INFO_EXT.
($(infodir)/eintr$(INFO_EXT)): Use $INFO_EXT and $INFO_OPT.

* doc/lispref/Makefile.in (INFO_EXT, INFO_OPTS): New, set by configure.
(info, infoclean): Use $INFO_EXT.
($(infodir)/elisp$(INFO_EXT)): Use $INFO_EXT and $INFO_OPT.
* doc/lispref/makefile.w32-in (INFO_EXT, INFO_OPTS): New.
(info, maintainer-clean): Use $INFO_EXT.
($(infodir)/elisp$(INFO_EXT)): Use $INFO_EXT and $INFO_OPT.

* doc/misc/Makefile.in (INFO_EXT, INFO_OPTS): New, set by configure.
(INFO_TARGETS): Use $INFO_EXT.
Make all rules generating info files use $INFO_EXT, $INFO_OPT, and -o.
* doc/misc/makefile.w32-in (INFO_EXT, INFO_OPTS): New.
(INFO_TARGETS): Use $INFO_EXT.
Make all rules generating info files use $INFO_EXT, $INFO_OPT, and -o.

12 years ago* patcomp.el, play/bruce.el: Move to obsolete/.
Glenn Morris [Fri, 4 May 2012 06:38:36 +0000 (23:38 -0700)]
* patcomp.el, play/bruce.el: Move to obsolete/.
* etc/NEWS: Mention this.

12 years agoFix minor Y10k bugs.
Paul Eggert [Fri, 4 May 2012 06:13:18 +0000 (23:13 -0700)]
Fix minor Y10k bugs.

* lisp/arc-mode.el (archive-unixdate):
* lisp/autoinsert.el (auto-insert-alist):
* lisp/calc/calc-forms.el (math-this-year):
* lisp/gnus/nnweb.el (nnweb-google-parse-1):
* lisp/emacs-lisp/copyright.el (copyright-current-year)
(copyright-update-year, copyright):
* lisp/tar-mode.el (tar-clip-time-string):
* lisp/time.el (display-time-update):
Don't assume years have 4 digits.

12 years ago* iswitchb.el (iswitchb-all-frames): Fix last change.
Chong Yidong [Fri, 4 May 2012 06:02:23 +0000 (14:02 +0800)]
* iswitchb.el (iswitchb-all-frames): Fix last change.

12 years agoConvert more defvars to defcustoms.
Chong Yidong [Fri, 4 May 2012 05:14:14 +0000 (13:14 +0800)]
Convert more defvars to defcustoms.

* dos-w32.el (file-name-buffer-file-type-alist)
(direct-print-region-use-command-dot-com):
* ffap.el (ffap-menu-regexp):
* follow.el (follow-debug):
* forms.el (forms--debug):
* iswitchb.el (iswitchb-all-frames):
* ido.el (ido-all-frames):
* mail/feedmail.el (feedmail-mail-send-hook)
(feedmail-mail-send-hook-queued):
* mail/footnote.el (footnote-signature-separator):
* mail/mailabbrev.el (mail-alias-separator-string)
(mail-abbrev-mode-regexp):
* mail/rmail.el (rmail-speedbar-match-folder-regexp):
* progmodes/idlwave.el (idlwave-libinfo-file)
(idlwave-default-completion-case-is-down)
(idlwave-library-routines): Convert defvars to defcustoms.

* mail/rmail.el (rmail-decode-mime-charset):
* progmodes/idlw-shell.el (idlwave-shell-print-expression-function)
(idlwave-shell-fix-inserted-breaks)
(idlwave-shell-activate-alt-keybindings)
(idlwave-shell-use-breakpoint-glyph):
* facemenu.el (facemenu-unlisted-faces): Delete obsolete vars.

* doc/lispref/os.texi (Timers): Use defopt for timer-max-repeats.

12 years agoDo not limit current-time-string to years 1000..9999.
Paul Eggert [Thu, 3 May 2012 20:04:29 +0000 (13:04 -0700)]
Do not limit current-time-string to years 1000..9999.

* src/editfns.c (TM_YEAR_IN_ASCTIME_RANGE): Remove.
(Fcurrent_time_string): Support any year that is supported by the
underlying localtime representation.  Don't use asctime, as it
has undefined behavior for years outside the range -999..9999.
* doc/lispref/os.texi (Time of Day): Do not limit current-time-string
to years 1000..9999.
* etc/NEWS: Do not limit current-time-string to years 1000..9999.

12 years ago* minibuffer.el (completion--twq-all): Beware completion-ignore-case.
Stefan Monnier [Thu, 3 May 2012 19:54:07 +0000 (15:54 -0400)]
* minibuffer.el (completion--twq-all): Beware completion-ignore-case.

12 years agoMerge verilog-mode.el from upstream.
Wilson Snyder [Thu, 3 May 2012 19:23:55 +0000 (15:23 -0400)]
Merge verilog-mode.el from upstream.
* progmodes/verilog-mode.el (font-lock-keywords):
Fix mis-highligting auto.  Reported by Craig Barner.
(verilog-auto, verilog-auto-undef): Add AUTOUNDEF to remove
defines from global name space. Reported by Dan Dever.
(verilog-auto-reset, verilog-auto-reset-widths)
(verilog-auto-tieoff): Support using unbased numbers for
AUTORESET and AUTOTIEOFF.
(verilog-submit-bug-report): Update variable list.
(verilog-read-auto-params): Fix AUTOINPUT regexps containing
parenthesis from not matching. Reported by Michael Rytting.
(verilog-auto-template-lint): Fix hash error when linting modules
with no used templates.
(verilog-warn, verilog-warn-error)
(verilog-warn-fatal): When non-interactive report multiple
warnings before exiting.  Suggested by Brad Dobbie.
(verilog-auto-template-lint, verilog-auto-template-warn-unused)
(verilog-read-auto-template): Add `verilog-auto-template-warn-unused'
to report unused template errors.  Reported by Brad Dobbie.
(verilog-read-decls): Fix AUTOWIRE etc on supply0, supply1 type
nets, bug438. Reported by Vns Blore.
(verilog-auto-inout-module, verilog-auto-reg)
(verilog-read-decls, verilog-read-sub-decls-sig)
(verilog-signals-edit-wire-reg, verilog-signals-with):
Fix passing of Verilog data types in ANSI input/output ports
such as "output logic" into the AUTOs. Special case "wire" and
"reg" for backwards compatibility presuming Verilog 2001.
(verilog-auto-ascii-enum): Add "auto enum" as alias.
(verilog-preprocess): Fix replication of preprocess output.
Reported by Brad Dobbie.
(verilog-auto-inst-interfaced-ports):
Create verilog-auto-inst-interfaced-ports, bug429.
Reported by Julian Gorfajn.
(verilog-after-save-font-hook)
(verilog-before-save-font-hook): New variable.
(verilog-modi-cache-results, verilog-save-font-mod-hooked)
(verilog-save-font-mods): Wrap disabling fontification, reported
by David Rogoff.
(verilog-do-indent, verilog-pretty-declarations-auto)
(verilog-sk-def-reg): Fix obeying `verilog-auto-lineup', bug305.
Reported by Pierre-David Pfister.
(verilog-set-auto-endcomments): Fix endtask auto comments outside
of class declarations, bug292.  Reported by Kevin Heilman.
(verilog-read-decls): Fix 'parameter type' not appearing in
AUTOINSTPARAM, bug340.  Reported by Jonathan Greenlaw.
(verilog-auto-logic): Fix when AUTOLOGIC present to properly do
AUTOINPUTs, bug411. Reported by Jonathan Greenlaw.
(verilog-read-auto-lisp): Avoid syntax-ppss warning on AUTOLISP.
Reported by David Kravitz.

* progmodes/verilog-mode.el (verilog-pretty-expr): Don't line up
assignment with tests in ifs and for loops.
(verilog-extended-complete-re, verilog-complete-reg): Change so
that DPI inport functions don't look like fuction declarations.
(verilog-pretty-expr): Don't line up assignment
operations to the test and increment in if and for loops
(verilog-extended-complete-re, verilog-complete-reg): Change so
that DPI inport functions don't look like fuction declarations

12 years agoAuto-commit of loaddefs files.
Glenn Morris [Thu, 3 May 2012 10:20:40 +0000 (06:20 -0400)]
Auto-commit of loaddefs files.

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

12 years agomerge trunk
Kenichi Handa [Thu, 3 May 2012 06:57:54 +0000 (15:57 +0900)]
merge trunk

12 years agomail/rmailmm.el (rmail-show-mime): Catch an error caused by text decoding, and show...
Kenichi Handa [Thu, 3 May 2012 05:47:24 +0000 (14:47 +0900)]
mail/rmailmm.el (rmail-show-mime): Catch an error caused by text decoding, and show a warning message without signalling an error (Bug#11282).

12 years ago* lisp/emacs-lisp/bytecomp.el
Stefan Monnier [Thu, 3 May 2012 02:39:23 +0000 (22:39 -0400)]
* lisp/emacs-lisp/bytecomp.el
(byte-compile-file-form-custom-declare-variable): Compile all elements,
since cconv.el might have introduced :fun-body, internal-make-closure,
and friends for bytecomp to handle.
* lisp/custom.el (defcustom): Avoid ((λ ..) ..).

Fixes: debbugs:11391
12 years agoFix race conditions involving setenv, gmtime, localtime, asctime.
Paul Eggert [Wed, 2 May 2012 23:25:46 +0000 (16:25 -0700)]
Fix race conditions involving setenv, gmtime, localtime, asctime.

Without this fix, interrupts could mess up code that uses these
nonreentrant functions, since setting TZ invalidates existing
tm_zone or tzname values, and since most of these functions return
pointers to static storage.
* editfns.c (format_time_string, Fdecode_time, Fencode_time)
(Fcurrent_time_string, Fcurrent_time_zone, Fset_time_zone_rule):
Grow the critical sections to include not just invoking
localtime/gmtime, but also accessing these functions' results
including their tm_zone values if any, and any related TZ setting.
(format_time_string): Last arg is now struct tm *, not struct tm **,
so that the struct tm is saved in the critical section.  All
callers changed.  Simplify allocation of initial buffer, partly
motivated by the fact that memory allocation needs to be outside
the critical section.

12 years ago* subr.el (read-passwd): Better clean after ourselves.
Stefan Monnier [Wed, 2 May 2012 21:34:57 +0000 (17:34 -0400)]
* subr.el (read-passwd): Better clean after ourselves.

Fixes: debbugs:11392
12 years agoNEWS addition re configure.in and BSD -L options
Glenn Morris [Wed, 2 May 2012 17:41:21 +0000 (13:41 -0400)]
NEWS addition re configure.in and BSD -L options

12 years ago* intervals.c (adjust_intervals_for_insertion): Initialize `newi'
Dmitry Antipov [Wed, 2 May 2012 17:21:54 +0000 (13:21 -0400)]
* intervals.c (adjust_intervals_for_insertion): Initialize `newi'
with RESET_INTERVAL.
* buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
Remove duplicated buffer name initialization.

12 years agoconfigure.in tweak for LD_SWITCH_SYSTEM on FreeBSD, NetBSD (bug#10313)
Glenn Morris [Wed, 2 May 2012 16:55:00 +0000 (12:55 -0400)]
configure.in tweak for LD_SWITCH_SYSTEM on FreeBSD, NetBSD (bug#10313)

* configure.in (LD_SWITCH_SYSTEM):
Don't try to defeat the choices made by FreeBSD and NetBSD.

12 years agoYet more merged ChangeLog fixes
Glenn Morris [Wed, 2 May 2012 16:28:03 +0000 (09:28 -0700)]
Yet more merged ChangeLog fixes

12 years agoFix merged ChangeLog entry
Glenn Morris [Wed, 2 May 2012 16:14:20 +0000 (09:14 -0700)]
Fix merged ChangeLog entry

12 years agoAuto-commit of generated files.
Glenn Morris [Wed, 2 May 2012 16:10:02 +0000 (12:10 -0400)]
Auto-commit of generated files.

12 years agoBackport 2012-05-02T11:33:49Z!lekktu@gmail.com from trunk
Chong Yidong [Wed, 2 May 2012 13:06:50 +0000 (21:06 +0800)]
Backport 2012-05-02T11:33:49Z!lekktu@gmail.com from trunk

12 years agoBackport Bug#11374 fix from trunk
Chong Yidong [Wed, 2 May 2012 13:06:08 +0000 (21:06 +0800)]
Backport Bug#11374 fix from trunk

12 years agoAdd customization data to several built-in variables.
Chong Yidong [Wed, 2 May 2012 13:00:29 +0000 (21:00 +0800)]
Add customization data to several built-in variables.

* lisp/cus-start.el (gc-cons-percentage, exec-suffixes)
(dos-display-scancodes, dos-hyper-key, dos-super-key)
(dos-keypad-mode, debug-on-signal, vertical-centering-font-regexp)
(make-cursor-line-fully-visible, void-text-area-pointer)
(font-list-limit): Add customization data.

* doc/lispref/display.texi (Font Lookup):
* doc/lispref/frames.texi (Pointer Shape):
* doc/lispref/processes.texi (Subprocess Creation): Use defopt for options.

12 years agoFix ChangeLog typos.
Juanma Barranquero [Wed, 2 May 2012 11:43:14 +0000 (13:43 +0200)]
Fix ChangeLog typos.

12 years agoSilence byte-compiler warnings.
Juanma Barranquero [Wed, 2 May 2012 11:38:01 +0000 (13:38 +0200)]
Silence byte-compiler warnings.

lisp/notifications.el (dbus-debug):
lisp/term/linux.el (gpm-mouse-enable):
lisp/term/screen.el (xterm-register-default-colors): Declare.

12 years agolib-src/emacsclient.c (min): Undef before redefining it.
Juanma Barranquero [Wed, 2 May 2012 11:33:49 +0000 (13:33 +0200)]
lib-src/emacsclient.c (min): Undef before redefining it.

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

12 years agoFix naming of abnormal hook vars in allout.el.
Chong Yidong [Wed, 2 May 2012 10:57:03 +0000 (18:57 +0800)]
Fix naming of abnormal hook vars in allout.el.

* lisp/allout.el (allout-exposure-change-functions)
(allout-structure-added-functions)
(allout-structure-deleted-functions)
(allout-structure-shifted-functions): Rename abnormal hooks from *-hook,
and convert to defcustoms.
(allout-after-copy-or-kill-hook, allout-post-undo-hook): Convert
to defcustoms.
(allout-mode-hook, allout-mode-deactivate-hook): Doc fix.

* lisp/allout-widgets.el: Hook callers changed.

12 years ago* lib-src/emacsclient.c (send_to_emacs): Avoid invalid strcpy
Jim Meyering [Wed, 2 May 2012 10:41:27 +0000 (18:41 +0800)]
* lib-src/emacsclient.c (send_to_emacs): Avoid invalid strcpy
upon partial send.

Fixes: debbugs:11374
12 years ago* src/xfns.c (x_window): Use xstrdup (Bug#11375).
Jim Meyering [Wed, 2 May 2012 10:20:35 +0000 (18:20 +0800)]
* src/xfns.c (x_window): Use xstrdup (Bug#11375).

12 years ago* src/xterm.c (x_term_init): Use memcpy instead of strncpy.
Jim Meyering [Wed, 2 May 2012 10:17:03 +0000 (18:17 +0800)]
* src/xterm.c (x_term_init): Use memcpy instead of strncpy.

Fixes: debbugs:11373
12 years agoAdd NUL-termination to some uses of strncpy.
Jim Meyering [Wed, 2 May 2012 10:12:13 +0000 (18:12 +0800)]
Add NUL-termination to some uses of strncpy.

* lib-src/pop.c (pop_stat, pop_list, pop_multi_first, pop_last):
NUL-terminate the error buffer.

* src/w32font.c (fill_in_logfont): NUL-terminate a string (Bug#11372).

12 years agoDon't hard-code the list of info files in the top-level Makefile
Glenn Morris [Wed, 2 May 2012 07:45:16 +0000 (00:45 -0700)]
Don't hard-code the list of info files in the top-level Makefile

The sed '/ing directory/d' piece is to remove the annoying
"entering/leaving directory" messages that GNU make insists on
printing when called recursively.  --no-print-directory isn't portable.

* Makefile.in (INFO_FILES): Remove variable.
(INFO_NONMISC): New variable.
(install-arch-indep, uninstall): Don't use $INFO_FILES.

* doc/misc/Makefile.in (echo-info): New phony target, used by top-level.

12 years agoAdd change missed from previous merge from emacs-24
Glenn Morris [Wed, 2 May 2012 07:33:52 +0000 (00:33 -0700)]
Add change missed from previous merge from emacs-24

12 years agoMerge from emacs-24; up to 2012-04-16T19:06:02Z!rgm@gnu.org
Glenn Morris [Wed, 2 May 2012 07:20:29 +0000 (00:20 -0700)]
Merge from emacs-24; up to 2012-04-16T19:06:02Z!rgm@gnu.org

12 years ago* admin/bzrmerge.el (bzrmerge-skip-regexp): Add "Auto-commit".
Glenn Morris [Wed, 2 May 2012 07:12:52 +0000 (00:12 -0700)]
* admin/bzrmerge.el (bzrmerge-skip-regexp): Add "Auto-commit".

12 years ago* Makefile.in (uninstall): Remove useless-use-of-for.
Glenn Morris [Wed, 2 May 2012 07:01:36 +0000 (00:01 -0700)]
* Makefile.in (uninstall): Remove useless-use-of-for.
For some reason it caused problems on an old Solaris.

12 years agoMakefile.in fix for systems without /bin/install or somesuch
Glenn Morris [Wed, 2 May 2012 06:53:21 +0000 (23:53 -0700)]
Makefile.in fix for systems without /bin/install or somesuch

* Makefile.in (install-arch-indep, uninstall):
Ensure that INSTALL-type commands are run from top-level.

12 years ago* Makefile.in (INFO_FILES): Add emacs-gnutls;
Glenn Morris [Wed, 2 May 2012 06:46:34 +0000 (23:46 -0700)]
* Makefile.in (INFO_FILES): Add emacs-gnutls;
accidentally omitted from 2012-04-12 backport from trunk.
(Do not merge to trunk.)

12 years ago* Makefile.in (install-arch-indep): Combine install-data, install-info loops.
Glenn Morris [Wed, 2 May 2012 02:10:43 +0000 (22:10 -0400)]
* Makefile.in (install-arch-indep): Combine install-data, install-info loops.

12 years agoFix some info/dir entries
Glenn Morris [Wed, 2 May 2012 01:22:26 +0000 (21:22 -0400)]
Fix some info/dir entries

* doc/misc/emacs-gnutls.texi, doc/misc/ert.texi, doc/misc/org.texi:
Fix dircategory, direntry to match info/dir.

* doc/misc/viper.texi: Make direntry shorter (also it is no longer "newest").

* info/dir: Make some entries consistent with the source texi files.

12 years ago* configure.in (LIBS_TERMCAP): Fix netbsd logic, broken 2012-03-04.
Glenn Morris [Wed, 2 May 2012 00:11:24 +0000 (20:11 -0400)]
* configure.in (LIBS_TERMCAP): Fix netbsd logic, broken 2012-03-04.

Ref http://debbugs.gnu.org/6190

12 years agoauth.texi (Help for users): Update for .gpg file being second
Ted Zlatanov [Tue, 1 May 2012 22:28:14 +0000 (22:28 +0000)]
auth.texi (Help for users): Update for .gpg file being second

12 years ago* lisp/cus-start.el (suggest-key-bindings): Remove, now it is in Lisp.
Glenn Morris [Tue, 1 May 2012 21:06:59 +0000 (17:06 -0400)]
* lisp/cus-start.el (suggest-key-bindings): Remove, now it is in Lisp.

12 years agoDon't hard-code manual pages in top-level Makefile.in
Glenn Morris [Tue, 1 May 2012 21:05:28 +0000 (17:05 -0400)]
Don't hard-code manual pages in top-level Makefile.in

* Makefile.in (MAN_PAGES): Remove.
(install-arch-indep, uninstall): Don't use $MAN_PAGES.

12 years agoSome updates for etc/TODO
Glenn Morris [Tue, 1 May 2012 19:31:18 +0000 (15:31 -0400)]
Some updates for etc/TODO

12 years agoFurther doc fix.
Glenn Morris [Tue, 1 May 2012 19:27:10 +0000 (15:27 -0400)]
Further doc fix.

12 years ago* lisp/eshell/esh-cmd.el (eshell-debug-command): Doc fix. Add :set.
Glenn Morris [Tue, 1 May 2012 18:48:46 +0000 (14:48 -0400)]
* lisp/eshell/esh-cmd.el (eshell-debug-command): Doc fix.  Add :set.

12 years ago* lisp/cus-edit.el (custom-variable-documentation): Simplify with format.
Glenn Morris [Tue, 1 May 2012 18:47:23 +0000 (14:47 -0400)]
* lisp/cus-edit.el (custom-variable-documentation): Simplify with format.

12 years ago* lisp/gnus/nnimap.el (nnimap-open-connection-1): Don't leave an "opening..."
Stefan Monnier [Tue, 1 May 2012 18:37:21 +0000 (14:37 -0400)]
* lisp/gnus/nnimap.el (nnimap-open-connection-1): Don't leave an "opening..."
message once it's actually open.

12 years agoReimplement execute-extended-command in Elisp.
Aaron S. Hawley [Tue, 1 May 2012 16:10:02 +0000 (12:10 -0400)]
Reimplement execute-extended-command in Elisp.
* src/keyboard.c (Fexecute_extended_command, Vsuggest_key_bindings):
Move to simple.el.
* lisp/simple.el (suggest-key-bindings, execute-extended-command):
Move from keyboard.c.

12 years agoFix mouse wheel scrolling in Follow mode.
Chong Yidong [Tue, 1 May 2012 14:00:16 +0000 (22:00 +0800)]
Fix mouse wheel scrolling in Follow mode.

* lisp/follow.el (follow-mwheel-scroll): New function.
(follow-redraw-after-event): Fix last change.

Fixes: debbugs:4112
12 years ago* lisp/follow.el: Rework, eliminating reliance on advice.
Chong Yidong [Tue, 1 May 2012 13:37:56 +0000 (21:37 +0800)]
* lisp/follow.el: Rework, eliminating reliance on advice.
(set-process-filter, process-filter, sit-for): Advice deleted.
(follow-mode-off-hook): Obsolete hook removed.
(follow-avoid-tail-recenter-p, follow-process-filter-alist): Vars
deleted.
(follow-auto): Use a :set function.
(follow-mode): Rewritten.  Don't advise process filters.
(follow-switch-to-current-buffer-all, follow-scroll-up)
(follow-scroll-down): Assume follow-mode is bound.
(follow-comint-scroll-to-bottom)
(follow-align-compilation-windows): New functions.
(follow--window-sorter): New function.
(follow-all-followers): Use it to explicitly sort windows by their
positions; don't make assumptions about next-window order.
(follow-windows-start-end, follow-delete-other-windows-and-split)
(follow-calc-win-start): Doc fix.
(follow-windows-aligned-p, follow-select-if-visible): Don't call
vertical-motion unnecessarily.
(follow-adjust-window): New function.
(follow-post-command-hook): Use it.
(follow-call-set-process-filter, follow-call-process-filter)
(follow-intercept-process-output, follow-tidy-process-filter-alist)
(follow-stop-intercept-process-output, follow-generic-filter):
Functions deleted.
(follow-scroll-bar-toolkit-scroll, follow-scroll-bar-drag)
(follow-scroll-bar-scroll-up, follow-scroll-bar-scroll-down): New
functions, replacing advice on scroll-bar-* commands.

* lisp/comint.el (comint-adjust-point): New function.
(comint-postoutput-scroll-to-bottom): Use it.  Call
follow-comint-scroll-to-bottom for Follow mode buffers.

12 years agoAuto-commit of loaddefs files.
Glenn Morris [Tue, 1 May 2012 10:20:43 +0000 (06:20 -0400)]
Auto-commit of loaddefs files.

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

12 years agoOnly print the edition number of the manuals in the TeX version
Glenn Morris [Tue, 1 May 2012 07:38:15 +0000 (00:38 -0700)]
Only print the edition number of the manuals in the TeX version

Frankly, I think the edition conveys little to no information.
The version number of Emacs is much more relevant.
No-one seems to know what the rules are for updating the edition anyway...

* doc/emacs/emacs.texi (@copying): Only print EDITION in the TeX version.

* doc/lispref/elisp.texi (@copying):
* doc/lispref/intro.texi (Introduction): Only print VERSION in the TeX version.

12 years agoRemove no-byte-compile setting from some lisp/term files.
Glenn Morris [Tue, 1 May 2012 06:59:34 +0000 (23:59 -0700)]
Remove no-byte-compile setting from some lisp/term files.

Not that compiling these will bring any noticeable speed benefit, but
there's really no reason not to compile them.  The extra disk space
and build time is negligible, and it might reveal use of obsolete
functions, bugs, etc.

12 years agoRemove references to macros that are not defined anywhere
Glenn Morris [Tue, 1 May 2012 03:45:39 +0000 (20:45 -0700)]
Remove references to macros that are not defined anywhere

* src/syssignal.h: Remove reference to BROKEN_SIGINFO (last used in
s/ptx4.h), BROKEN_SIGTSTP (last used in m/ustation.h, m/dpx2.h),
and BROKEN_SIGURG (was in s/gnu-linux.h prior to 2008-02-10).
All were removed before 23.1.

12 years agoFix typo in previous rpath-related change (thanks hydra)
Glenn Morris [Tue, 1 May 2012 01:13:18 +0000 (21:13 -0400)]
Fix typo in previous rpath-related change (thanks hydra)

12 years agoUse libtinfo in preference to libncurses (bug#9741)
Glenn Morris [Tue, 1 May 2012 01:07:14 +0000 (21:07 -0400)]
Use libtinfo in preference to libncurses (bug#9741)

* configure.in: Try libtinfo for tputs.
(LIBS_TERMCAP) [gnu*]: Use libtinfo if it was found.

* etc/NEWS: Mention this.

12 years ago* configure.in: Combine adjacent $opsys case blocks.
Glenn Morris [Tue, 1 May 2012 00:56:47 +0000 (20:56 -0400)]
* configure.in: Combine adjacent $opsys case blocks.

12 years ago* configure.in (LIBS_TERMCAP): Remove unreachable branch for sol2.
Glenn Morris [Tue, 1 May 2012 00:50:55 +0000 (20:50 -0400)]
* configure.in (LIBS_TERMCAP): Remove unreachable branch for sol2.

12 years ago* configure.in: Invert the TERMINFO logic
Glenn Morris [Tue, 1 May 2012 00:46:02 +0000 (20:46 -0400)]
* configure.in: Invert the TERMINFO logic
(since "yes" is far more common than "no")

12 years agoUpdate comment in configure.in
Glenn Morris [Tue, 1 May 2012 00:34:56 +0000 (20:34 -0400)]
Update comment in configure.in

12 years agoRemove HAVE_LIBNCURSES; it is required to be true
Glenn Morris [Tue, 1 May 2012 00:30:11 +0000 (20:30 -0400)]
Remove HAVE_LIBNCURSES; it is required to be true

Also, it was a confusing name, since it does not necessarily mean that
we literally have libncurses; rather that we have tputs etc.

* configure.in (HAVE_LIBNCURSES): Remove; it is required to be true.

* src/dispnew.c: Remove HAVE_LIBNCURSES test;
it is always true on relevant platforms.

* nt/config.nt (HAVE_LIBNCURSES): Remove undef; not needed.

12 years ago* lisp/minibuffer.el (completion-table-with-quoting): Fix compatibility
Stefan Monnier [Tue, 1 May 2012 00:21:23 +0000 (20:21 -0400)]
* lisp/minibuffer.el (completion-table-with-quoting): Fix compatibility
all-completions code to not return a number in the last cdr.

12 years agoRename autoconf output variable LD_SWITCH_X_SITE_AUX_RPATH
Glenn Morris [Tue, 1 May 2012 00:16:02 +0000 (20:16 -0400)]
Rename autoconf output variable LD_SWITCH_X_SITE_AUX_RPATH

* configure.in (LD_SWITCH_X_SITE_RPATH):
Rename from LD_SWITCH_X_SITE_AUX_RPATH.

* src/Makefile.in (LD_SWITCH_X_SITE_RPATH):
Rename from LD_SWITCH_X_SITE_AUX_RPATH.

12 years agoRemove LD_SWITCH_X_SITE_AUX, which is no longer used
Glenn Morris [Tue, 1 May 2012 00:12:02 +0000 (20:12 -0400)]
Remove LD_SWITCH_X_SITE_AUX, which is no longer used

* configure.in (LD_SWITCH_X_SITE_AUX): Remove; no longer used.
* src/Makefile.in (LD_SWITCH_X_SITE_AUX): Remove; no longer used.

12 years ago* .gdbinit (xpr): Remove checks for no longer existing misc types.
Andreas Schwab [Tue, 1 May 2012 00:07:23 +0000 (02:07 +0200)]
* .gdbinit (xpr): Remove checks for no longer existing misc types.
(xintfwd, xboolfwd, xobjfwd, xbufobjfwd, xkbobjfwd, xbuflocal):
Remove.

12 years agoResurrect encoding of replies by Rmail which was lost in 2012-04-11T21:37:13Z!monnier...
Eli Zaretskii [Mon, 30 Apr 2012 12:50:12 +0000 (15:50 +0300)]
Resurrect encoding of replies by Rmail which was lost in 2012-04-11T21:37:13Z!monnier@iro.umontreal.ca.

 lisp/mail/rmail.el (rmail-yank-current-message): Use the encoding of
 the yanked message in preference to the default value of
 buffer-file-coding-system.

12 years ago* lisp/ibuf-ext.el (ibuffer-diff-buffer-with-file-1): Avoid buffer
Leo Liu [Mon, 30 Apr 2012 11:57:47 +0000 (19:57 +0800)]
* lisp/ibuf-ext.el (ibuffer-diff-buffer-with-file-1): Avoid buffer
read-only error.

12 years agoFix entry in display-buffer--action-function-custom-type
Martin Rudalics [Mon, 30 Apr 2012 09:09:26 +0000 (11:09 +0200)]
Fix entry in display-buffer--action-function-custom-type

12 years agoRegenerate etc/refcards/*.pdf
Glenn Morris [Mon, 30 Apr 2012 07:46:03 +0000 (00:46 -0700)]
Regenerate etc/refcards/*.pdf

12 years ago* doc/emacs/search.texi (Regexp Search): Just say "Emacs".
Glenn Morris [Mon, 30 Apr 2012 06:53:56 +0000 (23:53 -0700)]
* doc/emacs/search.texi (Regexp Search): Just say "Emacs".

12 years agoTweak page break in display.texi
Glenn Morris [Mon, 30 Apr 2012 06:51:44 +0000 (23:51 -0700)]
Tweak page break in display.texi

* doc/emacs/display.texi (Auto Scrolling):
Reword to avoid repetition and improve page break.

12 years agoFixes: debbugs:11380
Andreas Schwab [Sun, 29 Apr 2012 20:05:44 +0000 (22:05 +0200)]
Fixes: debbugs:11380
* make-docfile.c (scan_lisp_file) [DEBUG]: Also skip if and
byte-code forms.

12 years agoFix bug #11367 with assertion violation during vertical motion in egg.el.
Eli Zaretskii [Sun, 29 Apr 2012 17:19:08 +0000 (20:19 +0300)]
Fix bug #11367 with assertion violation during vertical motion in egg.el.

 src/xdisp.c (pos_visible_p): If already at a newline from the
 display string before the 'while' loop, don't walk back the glyphs
 from it3.glyph_row.  Solves assertion violation when the display
 string begins with a newline (egg.el).

12 years ago* doc/lispref/text.texi (Change Hooks): Minor fix for after-change-functions.
Chong Yidong [Sun, 29 Apr 2012 06:56:58 +0000 (14:56 +0800)]
* doc/lispref/text.texi (Change Hooks): Minor fix for after-change-functions.

12 years agoFix Follow mode's calculation of window ends.
Chong Yidong [Sun, 29 Apr 2012 01:48:23 +0000 (09:48 +0800)]
Fix Follow mode's calculation of window ends.

* lisp/follow.el (follow-calc-win-end): Rewrite to handle partial
screen lines correctly.
(follow-avoid-tail-recenter): Minor cleanup.

Fixes: debbugs:8390
12 years agoDo not avoid creating empty evaporating overlays (Bug#9642).
Paul Eggert [Sat, 28 Apr 2012 22:17:27 +0000 (15:17 -0700)]
Do not avoid creating empty evaporating overlays (Bug#9642).

* buffer.c (Fmove_overlay): Revert the change of 2012-04-23.
That is, do not delete an evaporating overlay if it becomes
empty after its bounds are adjusted to fit within its buffer.
This fix caused other problems, and I'm reverting it until we get
to the bottom of them.

12 years agoAvoid the obsolete `assoc' package.
Stefan Monnier [Sat, 28 Apr 2012 21:59:08 +0000 (17:59 -0400)]
Avoid the obsolete `assoc' package.
* lisp/speedbar.el (speedbar-refresh): Avoid adelete.
(speedbar-file-lists): Simplify and avoid aput.
* lisp/man.el (Man--sections, Man--refpages): New vars, replacing
Man-sections-alist and Man-refpages-alist.
(Man-build-section-alist, Man-build-references-alist):
Use them; avoid aput.
(Man--last-section, Man--last-refpage): New vars.
(Man-follow-manual-reference): Use them.
Use the `default' arg of completing-read.
(Man-goto-section): Idem.  Move prompt to the `interactive' spec.
* lisp/gnus/auth-source.el (auth-source--aput-1, auth-source--aput)
(auth-source--aget): New functions and macros.
Use them instead of aput/aget.

12 years agoAdd some shell indentation test cases.
Stefan Monnier [Sat, 28 Apr 2012 20:04:34 +0000 (16:04 -0400)]
Add some shell indentation test cases.
* test/indent/shell.sh:
* test/indent/shell.rc: Add some test cases.

12 years agoRemove some overfull lines in doc/misc/faq
Glenn Morris [Sat, 28 Apr 2012 19:04:01 +0000 (12:04 -0700)]
Remove some overfull lines in doc/misc/faq

* doc/misc/faq.texi: (File-name conventions):
Shorten section name to avoid overfull line.
(How to add fonts): Use smallexample to avoid overfull lines.

12 years ago* doc/misc/faq.texi: Convert @inforefs to @xrefs.
Glenn Morris [Sat, 28 Apr 2012 18:43:55 +0000 (11:43 -0700)]
* doc/misc/faq.texi: Convert @inforefs to @xrefs.
Fix some malformed cross-references.

12 years ago* emacs-lisp-intro.texi (Syntax): Reword to avoid underfull hbox.
Glenn Morris [Sat, 28 Apr 2012 18:26:17 +0000 (11:26 -0700)]
* emacs-lisp-intro.texi (Syntax): Reword to avoid underfull hbox.

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

12 years agoReword some doc/lispref to remove/reduce some overly long/short lines.
Glenn Morris [Sat, 28 Apr 2012 08:05:01 +0000 (01:05 -0700)]
Reword some doc/lispref to remove/reduce some overly long/short lines.

* package.texi (Packaging Basics):
* loading.texi (Autoload):
* files.texi (Magic File Names):
Reword to remove/reduce some overly long/short lines.

12 years agoReword some doc/emacs to remove/reduce some overly long/short lines.
Glenn Morris [Sat, 28 Apr 2012 07:45:03 +0000 (00:45 -0700)]
Reword some doc/emacs to remove/reduce some overly long/short lines.

* xresources.texi (Resources):
* mule.texi (Language Environments):
* misc.texi (Amusements):
* maintaining.texi (VC Change Log):
* frames.texi (Fonts):
* custom.texi (Specifying File Variables, Minibuffer Maps):
* cmdargs.texi (Initial Options):
* building.texi (Flymake):
Reword to remove/reduce some overly long/short lines.

12 years agoUpdate CC Mode version to 5.32.3.
Alan Mackenzie [Fri, 27 Apr 2012 17:49:31 +0000 (17:49 +0000)]
Update CC Mode version to 5.32.3.