Ken Brown [Fri, 13 Apr 2012 15:15:42 +0000 (11:15 -0400)]
Adapt browse-url.el to improvements in Cygwin's cygstart utility.
* lisp/net/browse-url.el (browse-url-file-url): Remove Cygwin hack;
this is no longer needed now that cygstart understands file://
URLs.
(browse-url-filename-alist): For the same reason, don't modify
file:// URLs on Cygwin.
Allow the user to alter the bit grouping in hexl.el
* hexl.el (hexl-bits): New variable.
(hexl-options): Mention the variable in the doc string.
(hexl-rulerise): New function.
(hexl-line-displen): New function
(hexl-mode): Mention the new variable.
(hexl-mode, hexl-current-address, hexl-current-address): Use the
displen.
(hexl-ascii-start-column): New function.
(hexl-address-to-marker, hexl-beginning-of-line, hexl-options)
(hexl-insert-char, hexl-mode-ruler): Use the displen.
textmodes/flyspell.el (flyspell-large-region): Specify encoding for hunspell with ("-i" ENCODING).
As done for ispell in in 2012-04-08T17:09:03Z!eliz@gnu.org, in flyspell-large-region we also need
to specify encoding for hunspell with ("-i" ENCODING), in 2 separate
command-line arguments, as expected by hunspell.
Stefan Monnier [Thu, 12 Apr 2012 02:04:29 +0000 (22:04 -0400)]
Make generic sysfs support apply for yeeloong as well.
* lisp/battery.el (battery--linux-sysfs-regexp): New const.
(battery-status-function): Use it. Remove yeeloong special case.
(battery-yeeloong-sysfs): Remove.
(battery-echo-area-format): Remove yeeloong special case.
* s/cygwin.h: The vfork the #define in cygwin.h was protecting
against is gone. It's better to use vfork now so that when Cygwin
gains a new, working vfork, we use it automatically.
Lennart Borgman [Wed, 11 Apr 2012 02:12:20 +0000 (04:12 +0200)]
`narrow-to-defun' fixup
* emacs-lisp/lisp.el (narrow-to-defun): `beginning-of-defun' goes
to previous function when point is on the first character of a
function. Take care of that in `narrow-to-defun'.
* lisp/vc/vc-bzr.el (vc-bzr-status): Handle all errors, not just file-errors.
Ref: http://lists.gnu.org/archive/html/help-gnu-emacs/2012-04/msg00145.html
* lisp/vc/vc-bzr.el (vc-bzr-sha1-program, sha1-program): Remove.
These were only added in 24.1 when sha1.el was removed in favor of an
internal sha1 implementation. Frankly, I can't see why the internal
sha1 wasn't immediately used here.
(vc-bzr-sha1): Use internal sha1.
(Comments): Remove reference to abandoned upstream bug report that
contains no extra information.
Dan Nicolaescu [Tue, 10 Apr 2012 23:24:31 +0000 (01:24 +0200)]
battery.el not working when multiple batteries are present
* battery.el (battery-linux-proc-acpi): Only one battery is
discharged at a time, but that seems to confuse battery.el when
computing `rate-type' for the battery not being discharged.
Stefan Monnier [Tue, 10 Apr 2012 20:14:33 +0000 (16:14 -0400)]
* lisp/international/quail.el: Use dolist and simplify.
(quail-define-package, quail-update-keyboard-layout)
(quail-define-rules): Use dolist.
(quail-insert-kbd-layout, quail-get-translation): CSE.
Stefan Monnier [Tue, 10 Apr 2012 20:12:07 +0000 (16:12 -0400)]
* lisp/tmm.el: Use dolist, remove left over hook.
(tmm-prompt, tmm-define-keys, tmm-shortcut, tmm-get-keybind): Use dolist.
(calendar-load-hook): Don't mess with it.
Eli Zaretskii [Tue, 10 Apr 2012 19:03:32 +0000 (22:03 +0300)]
Better parallelism on MS-Windows for "make info".
nt/makefile.w32-in (emacs, misc, lispref, lispintro): New targets,
each runs makeinfo in its own subdirectory of 'doc'.
(info-gmake): Depend on these new targets.
Laimonas V bra [Tue, 10 Apr 2012 11:15:11 +0000 (13:15 +0200)]
Added new charset cp775
* language/european.el (cp775): Added oem/legacy (en)coding on
DOS/MS Windows for the Baltic languages. There are still plenty of
texts written in this encoding/codepage.
* lisp/erc/erc-join.el (erc-server-join-channel): New function to look up
the channel password via auth-source.
(erc-autojoin-channels): Use it.
(erc-autojoin-after-ident): Ditto.
(erc-autojoin-channels-alist): Mention auth-source.
Deniz Dogan [Tue, 10 Apr 2012 02:51:39 +0000 (04:51 +0200)]
Add `field' to `erc-display-prompt'
* erc.el (erc-display-prompt): Adds the field text property to the
ERC prompt. This allows users to use `kill-whole-line' to kill
all text back to the prompt given that it's on a single line.
* recentf.el (recentf-dialog-mode-map): Added two keybindings for
next-line "n" and previous-line "p" in order to make recentf more
consistent with ibuffer, dired or org-mode.
* image.el (put-image): Return the overlay created instead of the
optional input string. Note that this may break code
that is (for some reason or other) depending on `put-image'
returning the string.
Add a policy list of domains that url.el can set cookies for
* etc/publicsuffix.txt: New file.
* lisp/url/url-cookie.el (url-cookie-two-dot-domains): Remove.
(url-cookie-host-can-set-p): Use `url-domsuf-cookie-allowed-p'
instead of the variable above.
* leim/Makefile.in (../src/emacs): Remove this rule, no longer relevant
since leim distributed with Emacs (eg lisp/ has no such rule).
(all): Remove $BUILT_EMACS dependence.
* gnutls.c (gnutls_log_function2i): Convenience log function.
(emacs_gnutls_read): Use new log functions,
`gnutls_handshakes_tried' process member, and
`GNUTLS_EMACS_HANDSHAKES_LIMIT' to limit the number of handshake
attempts per process (connection).
* lisp/custom.el (custom-variable-p): Return nil for non-symbol
arguments instead of signaling an error.
(user-variable-p): Obsolete alias for custom-variable-p.
* lisp/erc/erc.el (erc-cmd-SET): Call custom-variable-p instead of
user-variable-p.
Eli Zaretskii [Mon, 9 Apr 2012 08:00:08 +0000 (11:00 +0300)]
Fix bug #11094 with cursor display on display string after invisible text.
src/xdisp.c (set_cursor_from_row): If the display string appears in
the buffer at position that is closer to point than the position
after the display string, display the cursor on the first glyph of
the display string. Fixes cursor display when a 'display' text
property immediately follows invisible text.
Paul Eggert [Mon, 9 Apr 2012 06:52:40 +0000 (23:52 -0700)]
composite.c: use 'double' consistently
* composite.c (get_composition_id): Use 'double' consistently
instead of converting 'float' to 'double' and vice versa; this is
easier to understand and avoids a GCC warning.
Make leim/Makefile compute the list of .el files like lisp/Makefile
* leim/Makefile.in: (TIT_GB, TIT_BIG5, CHINESE_TIT, MISC, TIT_MISC):
Make them store the .el files rather than the .elc files.
(NON_TIT_GB, NON_TIT_BIG5, CHINESE_NON_TIT, CHINESE_GB)
(CHINESE_GB, CHINESE_BIG5, JAPANESE, KOREAN, THAI, VIETNAMESE)
(LAO, INDIAN, TIBETAN, LATIN, UNICODE, SLAVIC, GREEK, RUSSIAN)
(OTHERS, CHINESE, EASTASIA, ASIA, EUROPEAN, WORLD, NON_TIT_MISC):
Remove variables listing the non-generated .el files.
(.el.elc): Add explicit load-path for quail.
(all): Depend on compile-main rule rather than $WORLD.
(changed.tit, changed.misc): Also depend on $SUBDIRS.
(leim-list.el): Don't depend on changed.tit or changed.misc.
Remove unnecessary compilation check.
(setwins, compile-targets, compile-main): New.
(clean, mostlyclean): Update for change in TIT_MISC contents.
(bootstrap-clean): Use a glob match to delete .elc, not a fixed list.
Stefan Monnier [Mon, 9 Apr 2012 02:53:51 +0000 (22:53 -0400)]
* leim/quail/latin-ltx.el: Auto-generate some of the entries.
(latin-ltx--ascii-p): New function.
(latin-ltx--define-rules): New macro.
(define-rules): Use it.
Eli Zaretskii [Sun, 8 Apr 2012 17:09:03 +0000 (20:09 +0300)]
Fix invocation of Hunspell by ispell.el.
lisp/textmodes/ispell.el (ispell-check-version): For hunspell, set
ispell-encoding8-command to "-i", without a trailing space.
(ispell-start-process): For hunspell, use '("-i" ENCODING), in 2
separate command-line arguments, to specify the encoding, since
that's how hunspell expects it.
Paul Eggert [Sat, 7 Apr 2012 20:45:36 +0000 (13:45 -0700)]
Check pkg-config exit status when configuring (Bug#10626).
* configure.in (PKG_CHECK_MODULES): Do not assume that pkg-config
works; check its exit status. Problem reported by Jordi Gutiérrez
Hermoso in
<http://lists.gnu.org/archive/html/emacs-devel/2012-01/msg00787.html>.