1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-17 10:06:13 +00:00
Commit Graph

101405 Commits

Author SHA1 Message Date
Alan Mackenzie
ca5eed6185 CC Mode: New "guessing" of style. 2011-07-01 09:54:39 +00:00
Alan Mackenzie
847ccf7c88 cc-mode.texi (Guessing the Style): New page.
(Styles): Add a short introduction to above.
2011-07-01 09:42:55 +00:00
Jan Djärv
0949d2b6ba * process.c: Add defined (HAVE_GSETTINGS) for xgselect.h
(wait_reading_process_output): Add defined (HAVE_GSETTINGS) for
xg_select.

* xgselect.c: Add defined (HAVE_GSETTINGS).
(xgselect_initialize): Ditto.

* xsettings.c (store_monospaced_changed): Take new font as arg and
check for change against current_mono_font.
(EMACS_TYPE_SETTINGS): Remove this and related defines.
(emacs_settings_constructor, emacs_settings_get_property)
(emacs_settings_set_property, emacs_settings_class_init)
(emacs_settings_init, gsettings_obj): Remove.
(something_changedCB): New function for HAVE_GSETTINGS.
(something_changedCB): HAVE_GCONF: Call store_monospaced_changed
with value as argument.
(init_gsettings): Check that GSETTINGS_SCHEMA exists before calling
g_settings_new.  Do not create gsettings_obj.
Remove calls to g_settings_bind. Connect something_changedCB to
"changed".

Fixes: debbugs:8967
2011-07-01 11:18:46 +02:00
Michael Albinus
36b148cf16 * net/tramp.el (tramp-encoding-command-interactive): New defcustom.
* net/tramp-sh.el (tramp-maybe-open-connection): Use it.
2011-07-01 11:14:31 +02:00
Daiki Ueno
f3078a0041 Add plstore-delete.
* auth-source.el (plstore-delete): Autoload.
(auth-source-plstore-search): Support delete operation.
* plstore.el (plstore-delete): New function.
2011-07-01 16:35:39 +09:00
Katsumi Yamaoka
85e428791e gnus-draft.el (gnus-draft-clear-marks): Revert last change; mark actually existing articles as unread rather than the ones that active asserts. 2011-07-01 07:29:00 +00:00
Glenn Morris
eda98f58e9 Fix license and copyright years. 2011-06-30 23:30:13 -07:00
Martin Rudalics
0bf4ba9aca Comment-out buffer display obsolescences and fix call in display-buffer.
* window.el (same-window-buffer-names, same-window-regexps)
(same-window-p, special-display-frame-alist)
(special-display-popup-frame, special-display-function)
(special-display-buffer-names, special-display-regexps)
(special-display-p, pop-up-frame-alist, pop-up-frame-function)
(pop-up-frames, display-buffer-reuse-frames, pop-up-windows)
(split-window-preferred-function, split-height-threshold)
(split-width-threshold, even-window-heights)
(display-buffer-mark-dedicated, window-splittable-p)
(split-window-sensibly, window-safely-shrinkable-p):
Un-obsolete.
(display-buffer): Don't spread args with function specifier
because special-display-popup-frame won't like it.
2011-07-01 08:24:00 +02:00
Paul Eggert
d0672f86c9 Merge from trunk. 2011-06-30 22:20:09 -07:00
Paul Eggert
bbc6b30467 * eval.c (struct backtrace): Simplify and port the data structure.
Do not assume that "int nargs : BITS_PER_INT - 2;" produces a
signed bit field, as this assumption is not portable and it makes
Emacs crash when compiled with Sun C 5.8 on sparc.  Do not use
"char debug_on_exit : 1" as this is not portable either; instead,
use the portable "unsigned int debug_on_exit : 1".  Remove unused
member evalargs.  Remove obsolete comments about cc bombing out.
2011-06-30 22:12:00 -07:00
Paul Eggert
b9444d97fe * woman.el (woman-decode-buffer, WoMan-log-end): Log fractional secs
by using time-since and float-time.
2011-06-30 21:52:27 -07:00
Paul Eggert
0ef923dcc3 * vc/ediff-util.el (ediff-calc-command-time): Use time-since
and float-time.  Say "NNN.NNN seconds" rather than "NNN seconds
+ NNN microseconds".
2011-06-30 21:44:40 -07:00
Paul Eggert
2f81380d8d * type-break.el (type-break-time-sum): Rewrite using time-add. 2011-06-30 21:36:40 -07:00
Katsumi Yamaoka
fb81de5fb5 gnus-draft.el (gnus-draft-clear-marks): Mark deleted articles as read. 2011-07-01 04:08:50 +00:00
Stefan Monnier
0e61a35ffd * lisp/window.el (bury-buffer): Don't iconify the only frame.
(switch-to-buffer): Revert to Emacs<23 behavior, i.e. do not fallback
to pop-to-buffer.  Use pop-to-buffer-same-frame if you don't like that.
2011-06-30 23:48:44 -04:00
Chong Yidong
ddd63a1e1b * eshell/em-smart.el (eshell-smart-display-navigate-list): Add mouse-yank-primary. 2011-06-30 23:38:28 -04:00
Ted Zlatanov
055f492351 * progmodes/cfengine3.el: New file to support CFEngine 3.x. 2011-06-30 22:29:50 -05:00
Stefan Monnier
6a2fb14596 * lisp/emacs-lisp/find-func.el (find-library--load-name): New fun.
(find-library-name): Use it to find relative load names when provided
absolute file name.

Fixes: debbugs:8803
2011-06-30 23:15:02 -04:00
Daiki Ueno
3e0b797f61 Fix commit 2011-07-01T01:34:38Z!ueno@unixuser.org. 2011-07-01 11:07:32 +09:00
Paul Eggert
845b5c3e2a * play/hanoi.el (hanoi-current-time-float): Remove.
All uses replaced by float-time.
2011-06-30 18:55:02 -07:00
Paul Eggert
ee6f1be04b * nxml/rng-maint.el (rng-time-function): Rewrite using time-subtract.
This yields a more-accurate answer.
(rng-time-to-float): Remove; no longer needed.
2011-06-30 18:52:41 -07:00
Paul Eggert
240a298f78 * nntp.el (nntp-record-command): Use format-time-string. 2011-06-30 18:49:43 -07:00
Paul Eggert
b06823b67d * gnus-util.el (gnus-message-with-timestamp-1): Use format-time-string
rather than decoding time stamps by hand.  This is simpler, and
insulates the code from changes to time stamp formats.
2011-06-30 18:46:17 -07:00
Daiki Ueno
cdf4d4551d Add public key encryption support to plstore.
* plstore.el (plstore-select-keys, plstore-encrypt-to): New variable.
(plstore-save): Support public key encryption.
(plstore--init-from-buffer): New function.
(plstore-open): Use it; fix error when opening a non-existent file.
(plstore-revert): Use plstore--init-from-buffer.
2011-07-01 10:34:38 +09:00
Paul Eggert
3be70dff37 * lisp/erc/erc.el: Fix comment. 2011-06-30 18:29:04 -07:00
Paul Eggert
fe955043aa * emacs-lisp/timer.el (timer-relative-time): Use time-add. 2011-06-30 18:27:40 -07:00
Daiki Ueno
65afde5c65 * auth-source.el (auth-source-backend): Fix :initarg for data slot. 2011-07-01 10:25:21 +09:00
Paul Eggert
3103f8b658 * emacs-lisp/elp.el (elp-elapsed-time): Use float-time. 2011-06-30 17:30:18 -07:00
Paul Eggert
e2bac5f625 * emacs-lisp/benchmark.el (benchmark-elapse): Use float-time. 2011-06-30 17:27:45 -07:00
Paul Eggert
98768aebbe * semantic.el (semantic-elapsed-time): Rewrite using
time-subtract and float-time.
2011-06-30 17:24:48 -07:00
Paul Eggert
5777162a3e * calendar/timeclock.el (timeclock-seconds-to-time):
Defalias to seconds-to-time, since they're the same thing.
2011-06-30 17:20:59 -07:00
Paul Eggert
35837f519e * allout-widgets.el (allout-elapsed-time-seconds): Use float-time. 2011-06-30 17:11:50 -07:00
Katsumi Yamaoka
34d0a92369 mml2015.el (mml2015-use): Replace string-match-p with string-match for old Emacsen. 2011-06-30 23:27:10 +00:00
Lars Magne Ingebrigtsen
887d14add7 textmodes/flyspell.el (flyspell-word): Consider words that differ only
in case as potential doublons (bug#5687).
2011-07-01 01:19:45 +02:00
Lars Magne Ingebrigtsen
c53dc7fca1 * net/soap-client.el (soap-invoke, soap-wsdl-resolve-references):
Remove two rather uninteresting debugging-like messages to make
debbugs.el more silent.
2011-07-01 01:15:02 +02:00
Lars Magne Ingebrigtsen
fd4983f28a * comint.el (comint-password-prompt-regexp): Accept "Response" as
a password-like phrase.

This fixes the

[larsi@quimbies ~/]$ ssh root@quimby
Password: 
Response: 

case.
2011-07-01 01:11:36 +02:00
Gnus developers
b09c3fe025 gnus-group.el (gnus-read-ephemeral-emacs-bug-group): Take an optional quit window configuration.
auth-source.el (epg-context-set-passphrase-callback): Remove duplicate autoload.
nnir.el (nnir-request-article): Allow requesting articles by Message-ID with nnimap.
gnus-sum.el (gnus-refer-article-methods): Allow (nnir) entry to use current server.
auth-source.el: Autoload EPA/EPG functions.
 (auth-source-netrc-use-gpg-tokens): Clarify that it should not be changed when EPA/EPG is not available.
 (auth-source-backend): Rename "arg" member to "data".
 (auth-source-backend-parse, auth-source-plstore-search)
 (auth-source-plstore-create): Use it.
2011-06-30 22:20:32 +00:00
Daiki Ueno
9ccd6e90d6 Prevent Gnus from loading PGG.
* mml2015.el (mml2015-use): Don't try to load PGG on Emacs 24, when EPG
is not fully working.
2011-07-01 05:54:35 +09:00
Alan Mackenzie
b14c0c5545 progmodes/cc-guess.el: New file.
progmodes/cc-langs.el (c-mode-menu): Added "Style..." submenu.
progmodes/cc-styles.el (cc-choose-style-for-mode): New function derived
from `c-basic-common-init'.
progmodes/cc-mode.el (top-level): Require cc-guess.
(c-basic-common-init): Use `cc-choose-style-for-mode'.
2011-06-30 20:45:12 +00:00
Lawrence Mitchell
1fa280a3de * lisp/progmodes/js.el (js-mode): Don't stomp on global settings.
Fixes: debbugs:8933
2011-06-30 12:22:33 -04:00
Alan Mackenzie
e6597158c0 progmodes/cc-engine.el (c-guess-continued-construct): Correct the
handling of template-args-cont, particularly for when font lock is
disabled.  Name this case as "CASE G".
2011-06-30 15:12:59 +00:00
Jan Djärv
51bb811f62 Fix bad include.
* xsettings.c: Include glib-object.h, gio/gio.h if HAVE_GSETTINGS.
2011-06-30 17:07:40 +02:00
Ken Manheimer
68ba37fbd9 * allout.el (allout-yank-processing): Fix injection of extra space between
bullet and non-whitespace character in first topic when pasting, ensuring
that the actual spacing in the pasted topic following the bullet char is
preserved.  This extra space was causing pasted encrypted topics to get a
decrypted status even when the content was actually still encrypted.  Now
the decryption status from before the paste is preserved.

(allout-flag-region): Set all allout overlays so they evaporate when
reduced to zero length (evanescent), to prevent overlay leakage.
2011-06-30 10:38:35 -04:00
Lars Magne Ingebrigtsen
2e6e11eb3a * configure.in (HAVE_GSETTINGS): Fix syntax for GSETTINGS tests, which made ./configure infloop. 2011-06-30 16:32:07 +02:00
Gnus developers
936d08bba7 Merge changes made in Gnus trunk.
gnus-art.el (gnus-request-article-this-buffer): Use existing function `gnus-refer-article-methods'.
auth-source.el: Require EPA and EPG.
 (auth-source-passphrase-alist): New variable.
 (auth-source-passphrase-callback-function, auth-source-token-passphrase-callback-function): Callbacks for the netrc field encryption (GPG tokens).
 (auth-source-epa-extract-gpg-token, auth-source-epa-make-gpg-token): Symmetric encryption and decryption of the netrc GPG tokens.
 (auth-source-netrc-normalize): Use them, simplifying the closure.
2011-06-30 14:25:27 +00:00
Jan Djärv
9851bfc58d Add GSettings support (GConf is going away).
* configure.in (gsettings): New option and check for GSettings.

* src/Makefile.in (SETTINGS_CFLAGS, SETTINGS_LIBS): Renamed from
GCONF_CFLAGS/LIBS.

* src/xsettings.c: Include glib.h if HAVE_GSETTINGS.
Let HAVE_GSETTINGS override HAVE_GCONF.
(store_monospaced_changed): New function.
(EMACS_SETTINGS): A new type derived from GObject to handle
GSettings notifications.
(emacs_settings_constructor, emacs_settings_get_property)
(emacs_settings_set_property, emacs_settings_class_init):
New functions.
(gsettings_client, gsettings_obj): New variables.
(GSETTINGS_SCHEMA): New define.
(something_changedCB): Call store_monospaced_changed.
(init_gsettings): New function.
(xsettings_initialize): Call init_gsettings.
(syms_of_xsettings): Initialize gsettings_client, gsettings_obj
to NULL.
2011-06-30 16:00:26 +02:00
Lars Magne Ingebrigtsen
656e1aab13 nnimap.el (nnimap-split-incoming-mail): If nnimap-split-fancy' is non-nil, and nnimap-split-methods' is nil, use the former. 2011-06-30 10:04:56 +00:00
Daiki Ueno
f11f303b27 Fix the last commit, do revert-buffer when plstore-revert. 2011-06-30 18:53:21 +09:00
Daiki Ueno
8a8cdb1992 Add plstore-revert, hide buffer from user.
* plstore.el (plstore-revert): New function.
(plstore-open): Use it; hide the buffer from user.
2011-06-30 18:45:44 +09:00
Daiki Ueno
c302199d28 Silence auth-source.el compilation. 2011-06-30 17:20:33 +09:00