ChangeLog 685 KB
Newer Older
1 2 3 4 5 6 7
2005-12-26  Stefan Monnier  <monnier@iro.umontreal.ca>

	* subr.el (lazy-completion-table): Remove argument `args'.

	* textmodes/bibtex.el (bibtex-strings, bibtex-reference-keys):
	Don't use the `args' argument of lazy-completion-table.

Nick Roberts's avatar
Nick Roberts committed
8 9 10 11 12 13 14 15 16 17
2005-12-27  Nick Roberts  <nickrob@snap.net.nz>

	* descr-text.el (describe-char): Add optional argument for buffer.
	Set buffer appropriately.  Call help-setup-xref.
	Suggested by Stefan Monnier.

2005-12-27  Juri Linkov  <juri@jurta.org>

	* descr-text.el (help-fns): Require.  Don't require button for
	byte compilation.
18 19
	(describe-text-widget): Add help echo for first button.
	Use 'help-info for second.
Nick Roberts's avatar
Nick Roberts committed
20 21
	(describe-property-list): Use 'help-argument-name instead of 'italic.
	(describe-text-category): Prompt in minibuffer.  Call help-setup-xref.
22 23
	(describe-char): Use 'help-character-set.  Add help echo.
	Use 'help-input-method.  Remove superfluous insert.
Nick Roberts's avatar
Nick Roberts committed
24

25 26
2005-12-25  Richard M. Stallman  <rms@gnu.org>

27 28 29
	* progmodes/cc-defs.el (c-emacs-features): Do parse-partial-sexp
	at point, in case of narrowing.

30 31 32 33
	* progmodes/delphi.el (delphi-other-face): Allow nil in type.

	* locate.el (locate-header-face): Allow nil in type.

34 35
	* progmodes/cpp.el (cpp-face-none-list): Use cpp-face instead of face.

36 37 38 39 40
2005-12-25  Romain Francoise  <romain@orebokech.com>

	* battery.el (battery-linux-proc-acpi): Also try
	`/proc/acpi/thermal_zone/THM0/temperature'.

41 42 43 44
2005-12-24  Chong Yidong  <cyd@stupidchicken.com>

	* custom.el (custom-push-theme): Fix docstring.

45 46
	* cus-edit.el (custom-variable-set, custom-variable-save)
	(custom-variable-save): Custom-quote widget values.
47 48
	(customize-save-variable): Fix custom-push-theme call.

49 50 51 52
2005-12-24  Eli Zaretskii  <eliz@gnu.org>

	* w32-fns.el (w32-batch-update-autoloads): New function.

53 54
	* makefile.w32-in (autoloads, $(lisp)/mh-e/mh-loaddefs.el):
	Use w32-batch-update-autoloads, and don't setq generated-autoload-file
55 56
	from the command line.

57 58 59 60 61 62 63 64 65 66
2005-12-23  Chong Yidong  <cyd@stupidchicken.com>

	* custom.el (custom-push-theme): Clarify docstring.  VALUE nil for
	reset means to remove setting from theme entirely.  Don't keep
	expanding theme-settings list; delete old entries if necessary.

	* cus-edit.el (custom-buffer-create-internal): Move "Erase
	customization" button one line up.
	(custom-themed): New face.
	(custom-magic-alist): New value, THEMED, for theme settings.
67 68
	(custom-variable-state-set, custom-face-state-set):
	Check theme-value instead of saved-value.
69
	(custom-variable-reset-standard, custom-face-reset-standard):
70
	Remove theme setting entirely.  Recalculate new values.
71 72 73 74
	(custom-variable-set, custom-variable-set)
	(custom-variable-reset-saved, custom-variable-reset-backup)
	(custom-face-set, custom-face-reset-saved): Update `user' theme.
	(custom-variable-save): Fix typos.
75

76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107
2005-12-23  Juri Linkov  <juri@jurta.org>

	* emacs-lisp/edebug.el (edebug-all-defs, edebug-all-forms):
	Add autoload cookies.
	(edebug-outside-d-c-i-n-s-w): New variable.
	(edebug-display, edebug-outside-excursion): Use it to save the
	original value of default-cursor-in-non-selected-windows.
	Set default-cursor-in-non-selected-windows to t while Edebug
	is active.
	(edebug-mode, edebug-eval-mode): Doc fix.

	* mouse.el (mouse-choose-completion): Replace `buffer-substring'
	with `buffer-substring-no-properties' to remove common substring
	highlighting.

	* info.el (info-other-window, info): Rename function argument
	`file' to `file-or-node'.
	(Info-complete-menu-item): Use local variable `complete-nodes' to
	keep the global value of `Info-complete-nodes' unchanged for
	subsequent completions.
	(info-tool-bar-map): Put `Info-index' icon just before `Info-search'.

	* simple.el (get-next-valid-buffer, last-buffer)
	(next-error-buffer-p, next-error-find-buffer)
	(minibuffer-history-sexp-flag): Doc fix.

	* savehist.el (savehist-mode-hook): Add `:group'.

	* log-view.el: Call autoload for vc-find-version.
	(log-view-current-file): Adjust subgroup numbers.
	(log-view-current-tag): Add `length'.

108 109 110 111
2005-12-23  Richard M. Stallman  <rms@gnu.org>

	* vc.el (vc-annotate-car-last-cons): Defn moved up.

Juri Linkov's avatar
Juri Linkov committed
112 113 114 115 116 117 118 119 120 121 122 123
2005-12-23  Juri Linkov  <juri@jurta.org>

	* hi-lock.el (hi-lock-archaic-interface-message-used)
	(hi-lock-archaic-interface-deduce, hi-lock-mode): Doc fix.
	(hi-lock-mode): Display "Hi" in the mode line only when
	hi-lock-interactive-patterns or hi-lock-file-patterns is non-nil.
	(hi-lock-write-interactive-patterns):
	Use hi-lock-file-patterns-prefix instead of hard-coded "Hi-lock".
	(hi-lock-set-pattern, hi-lock-set-file-patterns)
	(hi-lock-font-lock-hook): Set 3rd arg `how' of
	font-lock-add-keywords to t.

124 125 126 127 128 129 130 131 132 133 134 135
2005-12-23  David Koppelman  <koppel@ece.lsu.edu>

	* hi-lock.el (hi-lock-highlight-range): New variable.
	(hi-lock-mode, hi-lock-unface-buffer): Call font-lock-fontify-buffer
	only if font-lock-fontified is non-nil.  Remove overlays.
	(hi-lock-set-pattern): Call font-lock-fontify-buffer if
	font-lock-fontified is non-nil, otherwise use overlays (instead of
	text properties).
	(hi-lock-string-serialize-hash, hi-lock-string-serialize-serial):
	New variables.
	(hi-lock-string-serialize) New function.

136 137 138 139 140 141 142
2005-12-23  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* menu-bar.el (menu-find-file-existing): New function.
	(menu-bar-file-menu): Use menu-find-file-existing for Open.

	* tool-bar.el (tool-bar-setup): open changed to menu-find-file-existing.

143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162
2005-12-22  Stefan Monnier  <monnier@iro.umontreal.ca>

	* vc.el: Remove unnecessary leading * in docstrings.
	(vc-annotate-mode-map): Move initialization into declaration.
	(vc-static-header-alist): Nitpick on the regexp.
	(vc-default-init-version): New fun.
	(vc-register): Use it.
	(vc-insert-headers): Use dolist.
	(vc-annotate-get-backend): Remove unused function.
	(vc-annotate-add-menu): Remove.  Build the menu directly at toplevel.
	(vc-annotate-mode): Remove corresponding call.
	(vc-annotate-car-last-cons): Simplify.
	(vc-annotate-buffers): Remove var.
	(vc-annotate-backend): Make it buffer-local.
	(vc-annotate): Move the interaction to the interactive spec.
	Add a `buf' argument.
	(vc-annotate-warp-version): Use this new `buf' argument to avoid
	killing&creating a vc-annotate buffer, which is very disruptive when
	the buffers are shown in dedicated frames.

Nick Roberts's avatar
Nick Roberts committed
163 164 165 166 167 168 169 170 171 172 173 174
2005-12-23  Nick Roberts  <nickrob@snap.net.nz>

	* descr-text.el: Add FSF as maintainer.
	(describe-text-mode, describe-text-mode-map)
	(describe-text-mode-hook, describe-text-done): Delete.  Use normal
	help-mode.
	(describe-text-widget, describe-text-sexp)
	(describe-property-list, describe-text-category)
	(describe-text-properties, describe-text-properties-1)
	(describe-char): Use help buttons instead of widgets.
	(describe-char-unicodedata-file): Make URL link in doc string.

175
2005-12-22  Richard M. Stallman  <rms@gnu.org>
176

177 178 179 180 181
	* cus-edit.el (custom-variable-prompt): Say "variable" in prompt.
	(custom-buffer-create-internal): Reword the top-of-buffer help intro.
	Don't include buttons that write a file when there's no file.
	(custom-variable-menu, custom-face-menu, custom-group-menu):
	Don't include commands that write a file when there's no file.
182 183 184 185 186
	(customize-browse): Reword the top-of-buffer help intro.
	(custom-buffer-create-internal): Fix previous change.
	(customize-changed-options-previous-release): Prev release is 21.1.
	(customize-changed-options): Doc fix.
	(customize-changed): New alias.
187 188 189 190
	(custom-reset-menu, custom-magic-alist, Custom-mode-menu):
	Say "standard values".
	(Custom-reset-standard): Doc fix.
	(custom-face-reset-standard): Doc fix.
191

192 193 194 195 196 197 198 199 200 201
2005-12-22  Stefan Monnier  <monnier@iro.umontreal.ca>

	* font-lock.el (font-lock-default-fontify-buffer): Try and set-defaults
	even if font-lock-mode is non-nil since it may be t without having
	turned on font-lock-mode-internal.
	(font-lock-choose-keywords): Minor optimization.
	(font-lock-add-keywords, font-lock-remove-keywords)
	(font-lock-set-defaults): Don't call make-local-variable on a variable
	that we know to already be local.

202 203 204 205 206
2005-12-22  Katsumi Yamaoka  <yamaoka@jpl.org>

	* emacs-lisp/lisp.el (lisp-complete-symbol): Don't print progress
	messages if in the minibuffer.

207 208
2005-12-21  Stefan Monnier  <monnier@iro.umontreal.ca>

209 210 211 212
	* textmodes/flyspell.el (flyspell-check-word-p): Don't quote - in a RE.
	(tex-mode-flyspell-verify, flyspell-get-word)
	(flyspell-external-point-words): Don't use point-min/max uselessly.

213 214 215 216
	* emacs-lisp/lisp.el (lisp-complete-symbol): Mostly undo the change
	by Kevin Rodgers.  Instead, just hide the completions buffer if we
	don't need to show it.

Luc Teirlinck's avatar
Luc Teirlinck committed
217 218 219 220
2005-12-21  Luc Teirlinck  <teirllm@auburn.edu>

	* wid-edit.el (file, directory): Doc fixes for the `define-widget's.

221 222 223 224 225
2005-12-21  Stefan Monnier  <monnier@iro.umontreal.ca>

	* emacs-lisp/lisp.el (lisp-complete-symbol): Don't call
	delete-windows-on with an inexistent buffer.

Nick Roberts's avatar
Nick Roberts committed
226 227
2005-12-22  Nick Roberts  <nickrob@snap.net.nz>

228
	* progmodes/gud.el (gud-tooltip-modes, gud-tooltip-display):
Nick Roberts's avatar
Nick Roberts committed
229 230
	Delete defcustom variable :tag names.

231 232 233 234 235 236
2005-12-20  Stefan Monnier  <monnier@iro.umontreal.ca>

	* log-view.el (log-view-file-re, log-view-message-re): Use shy groups.
	(log-view-font-lock-keywords): Ajust subgroup numbers.
	(log-view-current-tag): Don't hard code the number of subgroups.

Juri Linkov's avatar
Juri Linkov committed
237 238 239 240 241 242 243 244 245 246
2005-12-20  Juri Linkov  <juri@jurta.org>

	* tooltip.el (tooltip): Move defgroup before define-minor-mode.
	(tooltip-x-offset, tooltip-y-offset): Doc fix.

	* menu-bar.el (menu-bar-menu-frame-live-and-visible-p)
	(menu-bar-non-minibuffer-window-p): Instead of checking
	display-multi-frame-p, use selected-frame when menu-updating-frame
	is nil.

Thien-Thi Nguyen's avatar
Thien-Thi Nguyen committed
247 248 249 250 251
2005-12-20  Davis Herring  <herring@lanl.gov>  (tiny change)

	* align.el (align-rules-list): Use [ \t] instead of \s-
	for column separators in text mode.

Nick Roberts's avatar
Nick Roberts committed
252 253
2005-12-20  Nick Roberts  <nickrob@snap.net.nz>

Thien-Thi Nguyen's avatar
Thien-Thi Nguyen committed
254
	* help-mode.el (help-customize-variable, help-customize-face):
Nick Roberts's avatar
Nick Roberts committed
255 256 257
	Don't pop help-xref-stack as help-follow no longer pushes
	anything on to it.

258 259 260 261 262 263 264 265 266 267
2005-12-20  Carsten Dominik  <dominik@science.uva.nl>

	* textmodes/org.el: (org-agenda-custom-commands): New option.
	(org-agenda): Offer custom commands on splash screen.
	(org-make-tags-matcher): Parser for Boolean logic added.
	(org-agenda-set-tags): New command.
	(org-agenda-menu, org-agenda-mode-map): Add `org-agenda-set-tags'.
	(org-set-tags): Efficiency improvements.
	(org-auto-align-tags): New option.
	(org-todo, org-demote, org-promote): Realign tags.
268
	(org-tags-completion-function): Use also "&" and "|" as separators.
269 270
	(org-org-menu): Agenda commands simplified.

Luc Teirlinck's avatar
Luc Teirlinck committed
271 272 273 274 275 276 277
2005-12-19  Luc Teirlinck  <teirllm@auburn.edu>

	* cus-edit.el (customize-apropos, customize-apropos-options):
	Docstring changes.

	* font-lock.el (font-lock): Add tags to the links in the defgroup.

278 279 280 281 282 283
2005-12-19  Chong Yidong  <cyd@stupidchicken.com>

	* longlines.el (longlines-mode): Wrap while widened.
	(longlines-decode-region, longlines-encode-region): Compute max
	just once.

YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
284 285 286 287 288 289 290 291 292 293 294 295 296 297 298
2005-12-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* cus-edit.el (mac): New group.

	* cus-start.el (all): Add user options in macterm.c.  Add test for
	Mac-related built-ins.  Fix test for GTK-related built-ins.

	* term/mac-win.el (mac-handle-language-change)
	(mac-ae-open-documents, mac-ae-get-url, mac-services-open-file)
	(mac-services-open-selection, mac-services-mail-selection)
	(mac-services-mail-to, mac-services-insert-text)
	(mac-dispatch-apple-event): Add docstrings.
	(x-get-selection, mac-select-convert-to-string): Select coding
	system from `utf-16be' and `utf-16le' using `byteorder'.

299 300 301 302 303 304 305 306
2005-12-18  Stefan Monnier  <monnier@iro.umontreal.ca>

	* subr.el (lazy-completion-table): Don't be fooled if the var holds
	a "list" (lambda ...) rather than a real completion list.

	* emacs-lisp/cl-extra.el (cl-macroexpand-all): Fix code-walk for
	lexical-let when encountering ((lambda (...) ...) ...).

307 308
2005-12-17  Chong Yidong  <cyd@stupidchicken.com>

309
	* progmodes/sh-script.el (sh-mode):
310 311 312
	* language/ethio-util.el (ethio-fidel-to-sera-mail-or-marker):
	* textmodes/picture.el (picture-mode): Update docstrings.

Eli Zaretskii's avatar
Eli Zaretskii committed
313 314 315 316 317 318 319 320 321
2005-12-17  Eli Zaretskii  <eliz@gnu.org>

	* makefile.w32-in (autoloads, custom-deps): Warn that parts of
	commands enclosed in $(ARGQUOTE)s should not be split between two
	lines, as that will break with GNU Make >3.80, when sh.exe is used
	and arg quoting is with '..'.
	(autoloads): Don't break the quoted --eval expression between
	several lines.

322 323
2005-12-17  Chong Yidong  <cyd@stupidchicken.com>

324 325
	* emacs-lisp/edebug.el (edebug-safe-prin1-to-string):
	Capture error from printing circular structures.
326

327 328 329 330
2005-12-17  Martin Rudalics  <rudalics@gmx.at>  (tiny change)

	* wid-edit.el (widget-checkbox-action): Clear undo info.

331 332 333 334 335
2005-12-16  Bill Wohler  <wohler@newt.com>

	* menu-bar.el (kill-this-buffer): Set a good example by using menu
	bar, not menubar in comment.

336 337 338 339 340
2005-12-16  Stefan Monnier  <monnier@iro.umontreal.ca>

	* progmodes/cc-engine.el (c-after-change-check-<>-operators):
	After-change-functions should not clobber the match data.

Juri Linkov's avatar
Juri Linkov committed
341 342 343 344 345 346 347 348
2005-12-16  Juri Linkov  <juri@jurta.org>

	* simple.el (choose-completion): Use `buffer-substring-no-properties'
	instead of `buffer-substring'.
	(completion-common-substring): Doc fix.
	(completion-setup-function): Use minibuffer-completion-contents
	instead of minibuffer-contents.  Don't set common-string-length
	initially.  Remove special handling of partial-completion-mode.
349 350
	Move computation of completion-base-size into one cond.
	Call completion-base-size-function in mainbuf.  In computation of
Juri Linkov's avatar
Juri Linkov committed
351 352 353
	completion-base-size for file name completion don't move point to
	the end of the minibuffer.  Move computation of common-string-length
	into one cond.  Start putting faces only when common-string-length>=0.
354 355
	Add condition to put completions-common-part when
	common-string-length>0.
Juri Linkov's avatar
Juri Linkov committed
356 357 358 359 360 361 362 363 364 365 366 367

	* complete.el (PC-do-completion): Remove `(equal (point) beg)' to
	place point at the first different character in the minibuffer
	even if this position is at the beginning of the minibuffer.

	* info.el (Info-read-node-name-1): In completion-base-size-function's
	lambda return 1 if common-substring or minibuffer-completion-contents
	starts with (, and 0 otherwise.

	* emacs-lisp/crm.el (crm-minibuffer-completion-help):
	Use `crm-current-element' for second arg of `display-completion-list'.

368 369 370 371 372 373
2005-12-16  Klaus Zeitler  <kzeitler@lucent.com>

	* files.el (set-auto-mode): Look for an interpreter specified on
	the first line also if search for mode specification succeeded,
	but the mode is not known.

Carsten Dominik's avatar
Carsten Dominik committed
374 375
2005-12-16  Carsten Dominik  <dominik@science.uva.nl>

Carsten Dominik's avatar
Carsten Dominik committed
376
	* textmodes/org.el: (org-tags-match-list-sublevels): New option.
377
	(org-open-at-point): Implement tag searches as links.
Carsten Dominik's avatar
Carsten Dominik committed
378
	(org-fit-agenda-window, org-get-buffer-tags, org-get-tags)
379
	(org-make-tags-matcher, org-scan-tags, org-activate-tags): New funs.
Carsten Dominik's avatar
Carsten Dominik committed
380 381 382 383 384 385 386
	(org-tags-sparse-tree, org-tags-view, org-set-tags)
	(org-agenda-dispatch): New commands.
	(org-use-tag-inheritance, org-tags-column): New options.
	(org-tab-follows-link, org-return-follows-link): New options.
	(org-tags): New customize group.
	(org-start-icalendar-file): Get local time zone.
	(org-tags-completion-function): New function.
387
	(org-set-font-lock-defaults): Make sure links will also be
Carsten Dominik's avatar
Carsten Dominik committed
388
	highlighted inside headlines.
Carsten Dominik's avatar
Carsten Dominik committed
389

Eli Zaretskii's avatar
Eli Zaretskii committed
390 391
2005-12-16  Mark Plaksin  <happy@usg.edu>  (tiny change)

392 393
	* term.el (term-emulate-terminal):
	Let term-handle-ansi-terminal-messages override what Bash says about
Eli Zaretskii's avatar
Eli Zaretskii committed
394 395
	its current directory.

396 397 398 399 400 401 402 403
2005-12-16  L$,1 q(Brentey K,Aa(Broly  <lorentey@elte.hu>

	* bindings.el (last-buffer): Move to simple.el.
	* simple.el (last-buffer): Move here.
	(get-next-valid-buffer): New function.
	(next-buffer): Use frame-local buffer list, maintain buried buffer list.
	(prev-buffer): Ditto. Rename to `previous-buffer'.

404
	* menu-bar.el (menu-bar-update-buffers): Update uses of `prev-buffer'.
405 406
	* bindings.el (global-map): Ditto.

Luc Teirlinck's avatar
Luc Teirlinck committed
407 408 409 410 411
2005-12-15  Luc Teirlinck  <teirllm@auburn.edu>

	* cus-edit.el: Introductory comment change.
	(custom-magic-alist): Change message string for the `rogue' state.

412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437
2005-12-15  Richard M. Stallman  <rms@gnu.org>

	* tooltip.el: Delete defcustom variable :tag names.

	* complete.el (partial-completion-mode): Doc fix.

	* textmodes/flyspell.el (flyspell-external-point-words):
	Use save-excursion to ensure we don't move backward in the
	search loop, not even one character.
	(flyspell-delete-all-overlays): Use remove-overlays directly.

	* textmodes/ispell.el (ispell-current-personal-dictionary): New var.
	(ispell-start-process): Set that variable.
	Clear ispell-buffer-local-name.
	(ispell-internal-change-dictionary):
	Set ispell-current-dictionary after killing process.
	(ispell-buffer-local-dict):
	Don't set spell-personal-dictionary after killing process.
	(ispell-buffer-local-words): Don't clear out ispell-buffer-local-name.
	(ispell-tex-skip-alists)
	(ispell-html-skip-alists, ispell-skip-region-alist): Mark as risky.

	* net/newsticker.el (newsticker--retrieval-timer-list)
	(newsticker--display-timer, newsticker-running-p)
	(newsticker-ticker-running-p): Definitions moved up.

Nick Roberts's avatar
Nick Roberts committed
438 439
2005-12-16  Nick Roberts  <nickrob@snap.net.nz>

440
	* progmodes/gdb-ui.el (gdb-many-windows): Echo new state in minibuffer.
Nick Roberts's avatar
Nick Roberts committed
441

David Ponce's avatar
David Ponce committed
442 443
2005-12-15  David Ponce  <david@dponce.com>

444
	* recentf.el (recentf-dialog-goto-first): Fix missing error condition.
David Ponce's avatar
David Ponce committed
445 446 447
	(recentf-edit-list, recentf-open-files): Signal an error when
	there is no recent file.

Romain Francoise's avatar
Romain Francoise committed
448 449 450 451
2005-12-14  Lennart Borgman  <lennart.borgman.073@student.lu.se>

	* textmodes/texinfmt.el (texinfo-format-region): Set buffer to
	read-only except for texinfo-format-region evaluation.
Robert J. Chassell's avatar
Robert J. Chassell committed
452

453 454 455 456 457
2005-12-14  Richard M. Stallman  <rms@gnu.org>

	* vc.el (vc-default-previous-version, vc-default-next-version)
	(vc-do-command): Doc fixes.

Stefan Monnier's avatar
Stefan Monnier committed
458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515
2005-12-14  Roland Winkler  <Roland.Winkler@physik.uni-erlangen.de>

	* textmodes/bibtex.el (bibtex-expand-strings)
	(bibtex-autokey-expand-string, bibtex-name-part)
	(bibtex-entry-type-whitespace, bibtex-entry-type-str)
	(bibtex-any-entry-maybe-empty-head, bibtex-string-type)
	(bibtex-preamble-prefix, bibtex-string-empty-key): New variables.
	(bibtex-entry-type, bibtex-entry-head): Match only valid entries.
	(bibtex-entry-postfix, bibtex-known-entry-type-re)
	(bibtex-valid-entry-re, bibtex-any-valid-entry-re)
	(bibtex-valid-entry-whitespace-re, bibtex-empty-field-re)
	(bibtex-field-name-for-parsing, bibtex-remove-delimiters-string)
	(bibtex-beginning-of-last-entry): Remove.
	(bibtex-parse-field-name): Use bibtex-field-name.  Issue error
	message if comma is missing but buffer is read-only.
	(bibtex-parse-field-text): Handle whitespaces at the end of field
	text.  Return 3-element list with beginning and end of field text
	and end of field.
	(bibtex-end-of-text-in-field, bibtex-end-of-field): Change accordingly.
	(bibtex-parse-field): Remove arg name.  Use bibtex-field-name.
	(bibtex-search-forward-field, bibtex-search-backward-field):
	Search always delimited by limits of entry.  Use more efficient
	search algorithms.
	(bibtex-name-in-field): Use bibtex-start-of-name-in-field and
	bibtex-end-of-name-in-field.
	(bibtex-text-in-field-bounds): Handle BibTeX strings when
	extracting the content of a field.
	(bibtex-text-in-field): Use search limits.
	(bibtex-parse-string-prefix): Handle empty string keys based on
	bibtex-string-empty-key.
	(bibtex-parse-string): Fix docstring.
	(bibtex-text-in-string): Use bibtex-text-in-field-bounds.
	(bibtex-preamble-prefix, bibtex-strings): New functions.
	(bibtex-skip-to-valid-entry): Include preceding whitespace in
	BibTeX entries (consistent with other BibTeX functions).
	(bibtex-map-entries): Use bibtex-skip-to-valid-entry.
	(bibtex-search-entry): Fix docstring.  Simplify.
	(bibtex-flash-head, bibtex-complete-string-cleanup)
	(bibtex-count-entries, bibtex-sort-buffer): Simplify.
	(bibtex-beginning-of-first-entry): Use bibtex-skip-to-valid-entry.
	(bibtex-parse-entry): New optional arg content.
	(bibtex-format-entry, bibtex-autofill-entry, bibtex-url): Use it.
	Use bibtex-text-in-field-bounds.
	(bibtex-print-help-message): Handle BibTeX strings and preambles.
	(bibtex-end-of-entry): Use bibtex-preamble-prefix and
	bibtex-parse-string-postfix.
	(bibtex-find-text-internal): New function.
	(bibtex-remove-delimiters): Use it.
	(bibtex-find-text): Use it.  New optional arg help.
	(bibtex-complete): Handle BibTeX string and preamble entries.
	(bibtex-Preamble): Fix order of closing delimiters.

2005-12-14  Stefan Monnier  <monnier@iro.umontreal.ca>

	* vc.el (vc-default-revert): New fun.

	* vc-mcvs.el (vc-mcvs-revert): Fix call to vc-default-revert.

516 517 518 519 520 521
2005-12-14  Romain Francoise  <romain@orebokech.com>

	* font-lock.el (font-lock-keywords-alist): Rename `append' to `how'.
	(font-lock-add-keywords, font-lock-update-removed-keyword-alist):
	(font-lock-remove-keywords): Likewise.

522 523
2005-12-14  Juri Linkov  <juri@jurta.org>

Juri Linkov's avatar
Juri Linkov committed
524 525
	* log-view.el (log-view-diff): Doc fix.

526 527 528
	* isearch.el (isearch-query-replace): Use (mark) instead of
	isearch-opoint if mark is active in transient-mark-mode.

529 530 531 532
2005-12-14  Aaron S. Hawley  <Aaron.Hawley@uvm.edu>

	* isearch.el (isearch-query-replace): Check for isearch-other-end.

Juri Linkov's avatar
Juri Linkov committed
533 534 535 536 537
2005-12-14  Per Abrahamsen  <abraham@dina.kvl.dk>

	* progmodes/cpp.el (cpp-face): New widget.
	(cpp-known-face, cpp-unknown-face, cpp-edit-list): Use it.

538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555
2005-12-14  Juri Linkov  <juri@jurta.org>

	* help-macro.el (make-help-screen): Bind `inhibit-read-only' to t
	around `erase-buffer' and `insert'.

	* descr-text.el (describe-text-properties): Replace buffer name
	"*Help-2*" with "*Help*<2>".
	(describe-char): Add functions print-help-return-message,
	toggle-read-only.  Use help-setup-xref with nil to not store
	describe-char in help-xref-stack.  Use help-make-xrefs to
	make [back] button.

	* desktop.el (desktop-minor-mode-table): Add vc-dired-mode with nil.

	* wdired.el (wdired-old-point): New internal variable.
	(wdired-change-to-wdired-mode): Set it buffer-locally.
	(wdired-abort-changes): Restore point after aborting changes.

556 557 558 559 560 561 562
2005-12-13  Stefan Monnier  <monnier@iro.umontreal.ca>

	* vc.el (vc-do-command): Add a new value t for okstatus.

	* vc-svn.el (vc-svn-registered): Use it to avoid popping up a spurious
	frame in case of errors.

563 564
2005-12-13  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

565
	* menu-bar.el (menu-bar-showhide-fringe-menu): Move "On the Right"
566 567
	so it comes after "On the Left" in the menu.

Luc Teirlinck's avatar
Luc Teirlinck committed
568 569 570 571 572
2005-12-12  Luc Teirlinck  <teirllm@auburn.edu>

	* cus-edit.el (customize-apropos, customize-apropos-options)
	(customize-apropos-faces, customize-apropos-groups): Doc fixes.

573 574 575 576
2005-12-12  Bill Wohler  <wohler@newt.com>

	* vc-svn.el (vc-svn-registered): Fix problem of visiting
	non-writable Subversion-controlled files by saving window
577
	configuration before calling vc-do-command.  vc-do-command calls
578 579
	pop-to-buffer on error which is unexpected during registration.

580 581 582 583
2005-12-12  Jay Belanger  <belanger@truman.edu>

	* calc/README: Update the summary of changes.

584 585 586 587 588 589
2005-12-12  Stefan Monnier  <monnier@iro.umontreal.ca>

	* descr-text.el (describe-char): Rework last fix to solve the problem
	is the same way it's solved for everything else in that function
	(i.e. by extracting the info before setting up the *Help* buffer).

Kim F. Storm's avatar
Kim F. Storm committed
590 591 592 593 594 595
2005-12-12  Kim F. Storm  <storm@cua.dk>

	* subr.el (version-regexp-alist): Allow space as separator before
	non-numeric part, e.g. "1.0 alpha".
	(version-to-list): Interpret .X.Y version as 0.X.Y version.

Carsten Dominik's avatar
Carsten Dominik committed
596 597 598 599 600 601 602 603
2005-12-12  Carsten Dominik  <dominik@science.uva.nl>

	* textmodes/org.el: (org-agenda, org-timeline, org-todo):
	Implement Logging and the keep-modes setting.
	(org-get-category): Make sure a string is returned.
	(org-log-done): New function.
	(org-log-done, org-closed-string): New options.

604 605
2005-12-12  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

606
	* tooltip.el (tooltip-y-offset): Change default to 20.
607

608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629
2005-12-12  Richard M. Stallman  <rms@gnu.org>

	* mouse.el (mouse-drag-vertical-line): Use adjust-window-trailing-edge.

	* frame.el (display-hourglass): Doc fix.

	* help.el (help-for-help-internal): Simplify entry for `a'.

	* info.el (Info-on-current-buffer): Doc fix.
	(info-insert-file-contents): Don't test (featurep 'jka-compr).

	* startup.el (inhibit-splash-screen): Make this the real name.
	(inhibit-startup-message): Make this the alias.
	(command-line): Find only simple.el, and use its directory
	to fill in other preloaded files' names.
	(command-line): Deactivate the mark if deactivate-mark is set.

	* international/mule.el (load-with-code-conversion):
	Bind deactivate-mark.

	* progmodes/compile.el (compilation-error-regexp-alist): Doc fix.

Luc Teirlinck's avatar
Luc Teirlinck committed
630 631 632 633 634 635 636 637
2005-12-11  Luc Teirlinck  <teirllm@auburn.edu>

	* cus-edit.el (customize-apropos): Avoid listing an option more
	than once under different aliases.  No longer list user options
	that are not defined with defcustom (unless a prefix arg is given).
	Doc fix.
	(customize-apropos-options): Doc fix.

638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654
2005-12-11  Juri Linkov  <juri@jurta.org>

	* frame.el (set-background-color, set-foreground-color)
	(set-cursor-color, set-mouse-color, set-border-color):
	Add explicit prompts to read colors by `facemenu-read-color'.
	(show-trailing-whitespace, blink-cursor-delay)
	(blink-cursor-interval, display-hourglass, hourglass-delay):
	Remove tags.
	(display-hourglass, hourglass-delay): Doc fix.
	(cursor-in-non-selected-windows): Capitalize words in tag.

	* faces.el (frame-background-mode): Replace `choice-item' keywords
	with `const' to not make [default] button.  Change default value tag
	from `default' to `automatic'.  Doc fix.
	(trailing-whitespace) <defface>: Change group `whitespace' to
	`whitespace-faces'.

655 656 657 658
2005-12-11  Richard M. Stallman  <rms@gnu.org>

	* buff-menu.el (Buffer-menu-sort-column): Not a user variable.

YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
659 660 661 662
2005-12-11  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* term/mac-win.el: Create keymap for mac-apple-event-map.

Nick Roberts's avatar
Nick Roberts committed
663 664 665 666 667 668 669 670 671 672 673
2005-12-11  Nick Roberts  <nickrob@snap.net.nz>

	* tooltip.el (tooltip-mode): Move to start of file so that it
	appears at top of customize buffer.

	* progmodes/gud.el (gud-tooltip-modes, gud-tooltip-display):
	Add the gud groupname.
	(gud-tooltip-mode): Add the tooltip groupname.
	(gud-tooltip-echo-area): Add the gud groupname. Remove tag to
	avoid conflict with tooltip-use-echo-area.

674 675 676 677
2005-12-10  Romain Francoise  <romain@orebokech.com>

	* help.el (help-for-help-internal): Add `r' in doc string.

Eli Zaretskii's avatar
Eli Zaretskii committed
678 679
2005-12-10  Johan Bockg,Ae(Brd  <bojohan@dd.chalmers.se>

680 681
	* align.el (align-regexp, align-highlight-rule):
	Use region-beginning and region-end instead of point and mark, so that
Eli Zaretskii's avatar
Eli Zaretskii committed
682 683 684
	repetition (with `repeat-complex-command') recomputes the region
	bounds.

685
2005-12-10  Lennart Borgman  <lennart.borgman.073@student.lu.se>
686 687 688 689 690 691

	* window.el (bw-get-tree, bw-get-tree-1, bw-find-tree-sub)
	(bw-find-tree-sub-1, bw-l, bw-t, bw-r, bw-b, bw-dir, bw-eqdir)
	(bw-refresh-edges, bw-adjust-window, bw-balance-sub): New functions.
	(balance-windows): Rewrite using the above new functions.

692 693
2005-12-10  David Koppelman  <koppel@ece.lsu.edu>

694
	* hi-lock.el: (hi-lock-mode) Renamed from hi-lock-buffer-mode;
695 696 697
	react if global-hi-lock-mode seems intended.
	(global-hi-lock-mode) Renamed from hi-lock-mode.
	(hi-lock-archaic-interface-message-used)
698
	(hi-lock-archaic-interface-deduce): New variables.
699 700
	(turn-on-hi-lock-if-enabled, hi-lock-line-face-buffer)
	(hi-lock-face-buffer, hi-lock-face-phrase-buffer)
701 702
	(hi-lock-find-patterns, hi-lock-font-lock-hook):
	Replace hi-lock-buffer-mode with hi-lock-mode.
703

704 705 706 707 708 709 710 711
2005-12-10  Kevin Rodgers  <ihs_4664@ihs.com>

	* emacs-lisp/lisp.el (lisp-complete-symbol): Regenerate the
	completion list, even after a partial completion has been
	inserted in the current buffer.  If there are more than 1
	completion, redisplay the *Completions* buffer; if the
	completion is unique, delete the *Completions* window.

712 713 714 715
2005-12-10  Eli Zaretskii  <eliz@gnu.org>

	* mail/rmail.el (rmail-next-same-subject): Handle multiple "Re: "
	strings and long subject lines that were broken into multiple
Eli Zaretskii's avatar
Eli Zaretskii committed
716 717
	lines at arbitrary places.  Handle subjects that have "Re: " in
	the middle.
718

719 720 721 722 723
2005-12-10  John W. Eaton  <jwe@octave.org>

	* emacs/octave-mod.el (octave-electric-space): Don't indent
	comments or strings if octave-auto-indent is nil.

YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
724 725
2005-12-10  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

726 727
	* term/mac-win.el: Require url when compiling.
	Call mac-process-deferred-apple-events after loading init files.
YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
728 729 730 731
	(mac-apple-event-map): New defvar.  Define event handlers in it.
	(core-event, internet-event): New Apple event class symbols.
	(open-application, reopen-application, open-documents)
	(print-documents, open-contents, quit-application)
732 733
	(application-died, show-preferences, autosave-now, get-url):
	New Apple event ID symbols.
YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
734 735 736 737 738 739 740 741 742
	(about): New HICommand ID symbol.
	(mac-event-spec, mac-event-ae): New macros.
	(mac-ae-parameter, mac-ae-list, mac-bytes-to-integer)
	(mac-ae-selection-range, mac-ae-text-for-search)
	(mac-ae-open-documents, mac-ae-text, mac-ae-get-url): New functions.
	(mac-application-menu-map): Remove keymap.  Handlers for HICommand
	and Services menu events are now defined in mac-apple-event-map.
	(mac-drag-n-drop): Remove selection range handling.

743 744
2005-12-10  Kenichi Handa  <handa@m17n.org>

745
	* simple.el (zap-to-char):
746 747 748
	* isearch.el (isearch-process-search-char): Translate CHAR by
	translation-table-for-input.

749 750 751 752
2005-12-09  Chong Yidong  <cyd@stupidchicken.com>

	* foldout.el (foldout-exit-fold): Properly hide subtree.

Reiner Steib's avatar
Reiner Steib committed
753 754 755
2005-12-09  Reiner Steib  <Reiner.Steib@gmx.de>

	* files.el (save-buffer):
756
	* international/ucs-tables.el (ucs-set-table-for-input):
Reiner Steib's avatar
Reiner Steib committed
757 758 759
	* mail/mail-extr.el (mail-extract-address-components):
	* mail/sendmail.el (mail-mode): Reformat doc string.

760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781
2005-12-09  Juri Linkov  <juri@jurta.org>

	* isearch.el (isearch-highlight): Change main overlay priority
	from 1 to 1001.  Simplify.
	(isearch-lazy-highlight-update): Change lazy overlay priority
	from 0 to 1000.

	* replace.el (replace-highlight): Change overlay priority from
	1 to 1001.

	* textmodes/ispell.el (ispell-highlight-spelling-error-overlay):
	Change overlay priority from 1 to 1001.  Reuse existing overlay.

	* compare-w.el (compare-windows-highlight): Change overlay
	priority from 1 to 1000.

	* menu-bar.el (menu-bar-edit-menu): Add listp around
	pending-undo-list to disable menu item "undo" when pending
	undo list is empty.

	* locate.el (locate): Disable undo in *Locate* buffer.

Kim F. Storm's avatar
Kim F. Storm committed
782 783 784 785
2005-12-09  Kim F. Storm  <storm@cua.dk>

	* mail/smtpmail.el (smtpmail-via-smtp): Disable undo in SMTP buffer.

David Ponce's avatar
David Ponce committed
786 787
2005-12-09  David Ponce  <david@dponce.com>

Kim F. Storm's avatar
Kim F. Storm committed
788
	* recentf.el: Improvement of the menu code.
David Ponce's avatar
David Ponce committed
789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823
	(recentf-enabled-p): Move before first use.  Use `kill-emacs-hook'
	instead of menu hook.
	(recentf-show-menu, recentf-hide-menu): New functions.
	(recentf-menu-customization-changed, recentf-mode): Use them.
	(recentf-menu-action, recentf-max-menu-items)
	(recentf-menu-open-all-flag, recentf-menu-append-commands-flag)
	(recentf-arrange-by-rule-others)
	(recentf-arrange-by-rules-min-items)
	(recentf-arrange-by-rule-subfilter) : Don't use
	`recentf-menu-customization-changed'.
	(recentf-arrange-rules): Likewise.  Accept functions to compute
	sub-menu titles.
	(recentf-menu-filter): Likewise.  Doc fix.
	(recentf-menu-value-shortcut): Doc fix.
	(recentf-dump-variable): Quote atom value.
	(recentf-make-menu-items): Update to use it as a menu filter.
	(recentf-match-rule): New function.
	(recentf-arrange-by-rule): Use it.
	(recentf-indirect-mode-rule): New function.
	(recentf-build-mode-rules): Use it.
	(recentf-dir-rule): New function.
	(recentf-arrange-by-dir): Use it.
	(recentf-filter-changer-current): Rename from
	`recentf-filter-changer-state'.  All references updated.
	(recentf-filter-changer-alist): Update filter names.
	(recentf-filter-changer-select): New function.
	(recentf-filter-changer): Use it.  Make a sub-menu from filters
	available in `recentf-filter-changer-alist'.
	(recentf-data-cache, recentf-clear-data)
	(recentf-update-menu): Remove.  All references updated.
	(recentf-match-rule-p, recentf-build-dir-rules)
	(recentf-filter-changer-goto-next)
	(recentf-filter-changer-get-current)
	(recentf-filter-changer-get-next): Remove.

Luc Teirlinck's avatar
Luc Teirlinck committed
824 825 826 827 828 829
2005-12-08  Luc Teirlinck  <teirllm@auburn.edu>

	* cus-edit.el (custom-buffer-create-internal): Relabel the whole
	buffer "Reset" button to "Reset to Current" for consistency with
	the State buttons.

830 831 832 833 834
2005-12-08  John Paul Wallington  <jpw@pobox.com>

	* ibuf-ext.el (define-ibuffer-filter filename):
	If `dired-directory' is a list then really use its car.

Kim F. Storm's avatar
Kim F. Storm committed
835 836 837 838 839
2005-12-08  Kim F. Storm  <storm@cua.dk>

	* emulation/cua-rect.el (cua--rectangle-aux-replace): Fix
	indention of text on right side of replaced rectangle.

Nick Roberts's avatar
Nick Roberts committed
840 841
2005-12-09  Nick Roberts  <nickrob@snap.net.nz>

Kim F. Storm's avatar
Kim F. Storm committed
842
	* progmodes/gud.el (gud-speedbar-buttons, gud-tooltip-tips):
Nick Roberts's avatar
Nick Roberts committed
843 844 845
	No need to check gud-comint-buffer is bound.
	(gdb): Prevent multiple debugging when first session uses gdba.

Alan Mackenzie's avatar
Alan Mackenzie committed
846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955
2005-12-08  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode update to 5.31.

	* progmodes/cc-subword.el: Add a dummy `c-subword-mode' for
	Emacsen which lack `define-minor-mode'.  (Currently Emacs <21.  We
	might do this function properly in the future).

	* progmodes/cc-cmds.el, cc-defs.el, cc-styles.el, cc-vars.el: New
	macros c-sentence-end and c-default-value-sentence end, to cope
	with Emacs 22's new function `sentence-end'.

2005-12-08  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* progmodes/cc-cmds.el (c-show-syntactic-information): Solved the
	compat issue using `c-put-overlay' and `c-delete-overlay'.

	* progmodes/cc-defs.el (c-put-overlay, c-delete-overlay): New
	compat macros to handle overlays/extents.

2005-12-08  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* progmodes/cc-fix.el: Add definitions of the macros push and pop
	(for GNU Emacs 20.4)

	* progmodes/cc-defs.el:
	(i) Load cc-fix.elc for `push' and `pop' (for GNU Emacs 20.4)

	* progmodes/cc-cmds.el (c-show-syntactic-information): change the
	highlighting mechanism so it will work in XEmacs too.

	* progmodes/cc-defs.el: Insert c-int-to-char.

	* progmodes/cc-langs.el (c-nonsymbol-token-char-list): Insert a
	call to the new macro c-int-to-char.  This solves XEmacs's
	regarding characters as different from integers.

2005-12-08  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* progmodes/cc-fonts.el (c-make-syntactic-matcher): New internal
	helper.

	(c-cpp-matchers, c-basic-matchers-before): Use the `eval'
	construct to make the indirect face lookup work in XEmacs.

	(c-cpp-matchers): Append the negation char face to the existing
	fontification, so that the cpp face doesn't disappear.  Use
	`c-make-syntactic-matcher' to avoid negation chars in comments and
	strings.

	* progmodes/cc-fonts.el (c-negation-char-face-name): New variable
	to map to `font-lock-negation-char-face' in emacsen where it
	exists.

2005-12-08  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* progmodes/cc-mode.el: Bind c-subword-mode to C-c C-w.

	* progmodes/cc-subword.el, cc-cmds.el, cc-mode.el: Rename
	"c-subword-move-mode" as "c-subword-mode".

	* progmodes/cc-mode.el: Added tty suitable bindings for C-c
	<delete> and C-c C-<delete>.  (To the c-hungry- delete functions).

2005-12-08  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* progmodes/cc-mode.el: Added autoload directive for
	`c-subword-move-mode' for use in older emacsen.

2005-12-08  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* progmodes/cc-mode.el:
	(i) Insert a binding for C-c C-backspace into
	c-bind-special-erase-keys which works in TTYs.
	(ii) Make sure that when file styles are used, any explicitly
	given style variables take priority over those in the style.  Do
	this by calling `hack-local-variables' a second time.

	* progmodes/cc-vars.el: Add language specific customization
	widgets for AWK to c-doc-comment-style, c-require-final-newline
	and c-default-style.  Add a defcustom for awk-mode-hook.  Give
	c-syntactic-element and c-syntactic-context doc-strings by
	directly setting their `variable-documentation' propery.  This
	allows Emacs 22.1 to read these with C-h v.

	* progmodes/cc-awk.el: Apply a tidy-up patch (from Stefan
	Monnier).

2005-12-08  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* progmodes/cc-fonts.el, cc-vars.el
	(gtkdoc-font-lock-doc-comments, gtkdoc-font-lock-doc-protection,
	gtkdoc-font-lock-keywords): GtkDoc patterns contributed by
	Masatake YAMATO.

	(c-doc-comment-style): Made GtkDoc default in C mode.

	* progmodes/cc-mode.el: Fixed key bindings for C-c C-<backspace>
	and C-c C-<delete>.

	(c-bind-special-erase-keys): New function for use on
	`normal-erase-is-backspace-hook' to bind C-c C-<delete> correctly.

	* progmodes/cc-cmds.el (c-hungry-delete): New function to fix
	<delete> key behavior in XEmacs according to `delete-forward-p'.
	C.f. `c-electric-delete'.

2005-12-08  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* progmodes/cc-mode.el: Give c-hungry-backspace and
956
	c-hungry-delete-forward permanent key bindings.
Alan Mackenzie's avatar
Alan Mackenzie committed
957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182

	* progmodes/cc-cmds.el (c-electric-semi&comma): Bind
	c-syntactic-context for calls to "criteria functions", for
	consistency with other calls to user functions.

	* progmodes/cc-cmds.el (c-indent-command): expunge use of
	`current-prefix-arg', since this might be the prefix arg to a
	command which calls c-indent-command as a function.  Change the
	interactive spec from "p" to "P".

	* progmodes/cc-styles.el: Amend the doc-string of c-set-style, in
	reponse to a report from Joseph Kiniry <kiniry@acm.org> that it
	was difficult to understand.

2005-12-08  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* progmodes/cc-engine.el (c-on-identifier): Fixed bug when at the
	first char of an identifier.

	* progmodes/cc-engine.el (c-on-identifier): Handle the "operator
	+" syntax in C++.

2005-12-08  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* progmodes/cc-cmds.el (c-mask-paragraph): correct, so that
	auto-fill doesn't split a c-comment's last word from a hanging
	"*/" when a space is typed between them after fill-column.

	* progmodes/cc-defs.el: New macro c-delete-and-extract-region.

	* progmodes/cc-styles.el (c-set-style,
	c-setup-paragraph-variables): Abort the command if we're not in a
	CC Mode buffer.

	* progmodes/cc-align.el (c-lineup-C-comments): Correct indentation
	with blank comment-prefix, and a blank line as the comment's
	second line.

2005-12-08  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* progmodes/cc-fonts.el (c-cpp-matchers, c-basic-matchers-before):
	Incorporated the patterns added in the Emacs development branch
	for the new Emacs 22 face `font-lock-negation-char-face'.

	* progmodes/cc-fonts.el (c-invalid-face-name): Use "red1" instead
	of "red" since it stands out better in xterms and DOS terminals.

	* progmodes/cc-engine.el (c-literal-faces): Added
	`font-lock-comment-delimiter-face' which is new in Emacs 22.

2005-12-08  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* progmodes/cc-cmds.el: Make C-c C-a (`c-toggle-auto-newline')
	forcibly enable c-electric-flag.

	* progmodes/cc-vars.el, cc-cmds.el: New clean-up
	`comment-close-slash' on c-electric-slash: if enabled, typing `/'
	just after the comment-prefix of a C-style comment will close that
	comment.

2005-12-08  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* progmodes/cc-fonts.el (c-basic-matchers-before,
	c-complex-decl-matchers): Fixed the "not-arrow-prefix" regexp used
	in Pike.

	* progmodes/cc-langs.el (c-other-op-syntax-tokens): Only C++ has
	digraphs.

	* progmodes/cc-fonts.el, cc-langs.el, cc-engine.el
	(c-cpp-message-directives, c-cpp-include-directives,
	c-opt-cpp-macro-define, c-opt-cpp-macro-define-start,
	c-cpp-expr-directives): Introduced new language constants to
	control cpp syntax in a cleaner way.

	(c-cpp-expr-functions): Renamed from c-cpp-defined-fns.

	(c-cpp-matchers, c-forward-to-cpp-define-body): Use them.

	* progmodes/cc-langs.el, cc-fonts.el (c-string-escaped-newlines,
	c-multiline-string-start-char): New language constants and
	variables to specify how newlines in string literals work.

	(c-font-lock-invalid-string): Use them.

	* progmodes/cc-cmds.el (c-try-one-liner): Robustness fix if an
	unbalanced close brace is entered.  Optimization by avoiding going
	back over arbitrarily large blocks.  Removed hints that this
	function only would be relevant/useful in AWK.

	(c-electric-brace): Indent syntactically after the cleanups since
	lineup functions might do it differently then.

	* progmodes/cc-engine.el, cc-langs.el
	(c-opt-op-identifier-prefix): New language constant and variable.

	(c-just-after-func-arglist-p, c-after-special-operator-id,
	c-search-decl-header-end, c-inside-bracelist-p): Use it.

	* progmodes/cc-align.el, cc-engine.el
	(c-after-special-operator-id): New helper to handle C++ operator
	identifiers.

	(c-lineup-topmost-intro-cont, c-just-after-func-arglist-p,
	c-guess-basic-syntax): Handle C++ operator identifiers in
	declarations.

	* progmodes/cc-langs.el (c-assignment-operators): Added the
	trigraph version of ^= too.

	* progmodes/cc-langs.el (c-assignment-operators): Added the
	trigraph version of |= in C++.

	* progmodes/cc-fonts.el (c-font-lock-declarators): Handle
	`c-decl-hangon-kwds' after the identifier name.

	* progmodes/cc-engine.el (c-guess-basic-syntax): When deciding
	whether an arglist is "nonempty", ignore a comment after the open
	paren if it isn't followed by a non-comment token on the same
	line.

	* progmodes/cc-engine.el (c-guess-basic-syntax): Case 4: Enable
	heuristics below the point to cope with classes inside special
	brace lists in Pike.

2005-12-08  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* progmodes/cc-cmds.el: Amend c-point-syntax to handle macros.

2005-12-08  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* progmodes/cc-guess.el (cc-guess-install): New function to
	install an already guessed style in another buffer.

	* progmodes/cc-defs.el (c-tentative-buffer-changes): No longer
	sets `inhibit-read-only' - `c-save-buffer-state' should be used
	anyway if the change always is undone.

2005-12-08  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Implement togglable electricity:

	* progmodes/cc-defs.el: Enhance c-save-buffer-state's doc-string,
	saying when it should be used.

	* progmodes/cc-engine.el: Add the new buffer-local variable,
	c-electric-flag.

	* progmodes/cc-langs.el: Change the name of c-toggle-auto-state to
	c-toggle-auto-newline.

	* progmodes/cc-mode.el: Rename c-toggle-auto-state to
	c-toggle-auto-newline.  Remove the binding for
	c-toggle-auto-hungry-state.  Add the binding C-c C-l for the new
	c-toggle-electric-state.

	* progmodes/cc-vars.el: Make c-syntactic-indentation buffer local.

	* progmodes/cc-cmds.el: Add `c-bytecomp-defun's for
	c-\(forward\|backward\)-subword.
	(c-update-modeline): Add the new modeline flag `l' for
	`c-electric-flag'.  Make the auto-newline flag `a' dependent on
	`l'.
	(c-toggle-auto-state): Rename it to `c-toggle-auto-newline'.  Make
	the old name an alias of the new name.
	(c-toggle-electric-state): New function.
	c-electric-\(pound\|brace\|slash\|star\|semi&comma\|colon\|lt-gt\|paren\|continued-statement\):
	Adapt these functions to do electric things only when
	c-electric-flag is non-nil.
	(c-point-syntax, c-brace-newlines, c-try-oneliner): Extract these
	new functions from c-electric-brace.
	(c-point-syntax): Add a check for "virtual semicolons" in AWK
	mode, so that the tentative extra newline doesn't change the
	syntax of the following brace.
	(c-electric-brace): restructure by extracting the above functions.
	Tidy up the coding somewhat.
	(c-electric-semi&comma, c-electric-colon, c-electric-paren):
	restructure a bit.

2005-12-08  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* progmodes/cc-cmds.el (c-show-syntactic-information): Show the
	anchor position(s) using faces.  Thanks to Masatake YAMATO for the
	idea.

	* progmodes/cc-mode.el, cc-cmds.el, cc-defs.el, cc-engine.el
	(c-submode-indicators): Changed name from `c-auto-hungry-string'
	since it's now used to track another submode.

	(c-update-modeline): Converted to function and extended to check
	`c-subword-move-mode'.

	(c-forward-into-nomenclature, c-backward-into-nomenclature):
	Converted to compat aliases for `c-forward-subword' and
	`c-backward-subword'.

	* progmodes/cc-subword.el: New functions and minor mode to handle
	SillyCapsedStyleIndentifiers, contributed by Masatake YAMATO:

	(c-forward-subword, c-backward-subword, c-mark-subword,
	c-kill-subword, c-backward-kill-subword, c-transpose-subwords,
	c-capitalize-subword, c-downcase-subword, c-upcase-subword):
	Functions corresponding to the standard word handling functions.

	(c-subword-move-mode): Minor mode that replaces all the standard
	word handling functions with their subword equivalences.

2005-12-08  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* progmodes/cc-vars.el (c-cleanup-list): Insert a customization
	entry for one-liner-defun.

	* progmodes/cc-defs.el: Give c-tentative-buffer-changes its own
	name in its def-edebug-spec.

	* progmodes/cc-cmds.el (c-electric-brace): Make the
	one-liner-defun clean-up work with empty-defun-braces.  o-l-d now
	compacts space before a comment, if this will make things fit on
	one line.

	Introduce an "awk" style, mainly for auto-newline and clean-ups.

	* progmodes/cc-align.el: new function c-snug-1line-defun-close

	* progmodes/cc-cmds.el: In c-electric-brace, add code for new
	clean-up one-liner-defun.
Kim F. Storm's avatar
Kim F. Storm committed
1183

Alan Mackenzie's avatar
Alan Mackenzie committed
1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043
	* progmodes/cc-styles.el: Add the new "awk" style.

	* progmodes/cc-vars.el: Add description of one-liner-defun to
	c-cleanup-list's doc-string.  New user options,
	c-max-one-liner-length.  In c-default-style, set the default style
	for AWK to "awk".

2005-12-08  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* progmodes/cc-engine.el (c-forward-label): Fixed fontification of
	macros inside labels.

	* progmodes/cc-engine.el (c-looking-at-bos): Obsoleted in favor of
	`c-at-statement-start-p' and `c-at-expression-start-p'.

	* progmodes/cc-defs.el (c-tnt-chng-record-state): Don't signal an
	error if the mark isn't set.

	* progmodes/cc-engine.el (c-guess-continued-construct,
	c-guess-basic-syntax): Use `c-forward-decl-or-cast-1' to more
	accurately detect functions inside functions.

	* progmodes/cc-engine.el (c-at-expression-start-p): New function
	like `c-at-statement-start-p' that additionally recognizes commas
	and expression parentheses as delimiters.

	* progmodes/cc-engine.el (c-looking-at-inexpr-block): Added flag
	to avoid heuristics that doesn't work for unclosed blocks.

	(c-at-statement-start-p): New function.

	* progmodes/cc-engine.el, cc-fonts.el: Fixes in handling of
	Objective-C directives, e.g. directives spanning lines should work
	reasonably well now.

	(c-put-c-type-property, c-clear-c-type-property): New helpers.

	(c-forward-objc-directive): New function to move over any ObjC
	directive.

	(c-just-after-func-arglist-p, c-guess-basic-syntax,
	c-basic-matchers-before): Use it.

	(c-font-lock-objc-iip-decl): Removed.

	* progmodes/cc-engine.el (c-guess-basic-syntax): Some improvement
	in the template arglist recognition.

	* progmodes/cc-styles.el (c-style-alist): Fixed several
	inconsistencies in the Whitesmith style.

	* progmodes/cc-align.el (c-lineup-after-whitesmith-blocks): New
	lineup function to get lines after Whitesmith style blocks
	correctly indented.

	(c-lineup-whitesmith-in-block): Backed out the compensation for
	opening parens since it's done using `add' lists in the style
	definition instead.  Don't use the anchor position since it varies
	too much between the syntactic symbols. :P

	* progmodes/cc-vars.el (c-valid-offset): Updated.

	* progmodes/cc-engine.el (c-evaluate-offset): Extended to handle
	lists where the offsets are combined according to several
	different methods: `first', `min', `max', and `add'.  Report
	offset evaluation errors with `c-benign-error' so that some kind
	of reindentation still is done.

	* progmodes/cc-engine.el (c-guess-basic-syntax): Anchor
	`arglist-intro' the same way as `arglist-cont-nonempty' and
	`arglist-close'.

	* progmodes/cc-engine.el (c-guess-basic-syntax): Fixed similar
	situations for `arglist-cont-nonempty' and `arglist-close'.

	* progmodes/cc-langs.el (c-opt-identifier-concat-key-depth): New
	constant.

	* progmodes/cc-defs.el: Use `cc-bytecomp-fboundp' and
	cc-bytecomp-boundp' in a number of places.

	* progmodes/cc-engine.el (c-beginning-of-statement-1): Fixed a
	macro related issue.

2005-12-08  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* progmodes/cc-awk.el: Change the terminology of regexps: A char
	list is now
	[asdf], a char class [:alpha:].  Include code for char classes.
	Set c-awk-NL-prop on lines ending in open strings.  (Bug fix.)
	Add character classes (e.g. "[:alpha:]") into AWK Mode's regexps.

	Remove (nearly all of) the cruft associated with AWK Mode's former
	concept of "virtual semicolons":

	Adapt c-beginning-of-statement, c-end-of-statement (together with
	subfunctions) to use the new notion of "virtual semicolon" in
	place of the old awkward special handling for AWK.  There remains
	much cruft in cc-awk.el, cc-cmds.el and cc-engine.el to clear out.
	* progmodes/cc-cmds.el:
	(c-ascertain-adjacent-literal): In the backwards direction, now
	recognises AWK regexp delimiters as string delimiters.
	(c-after-statement-terminator-p): Adapt for virtual semicolons;
	check more rigorously for "end of macro".
	(c-back-over-illiterals, c-forward-over-illiterals): Adapt for
	virtual semicolons;
	(c-beginning-of-statement): Adapt for virtual semicolons; Separate
	out the code for forward movement into ...
	(c-end-of-statement): Now contains the code for forward movement,
	adapted for virtual semicolons.

	* progmodes/cc-engine.el:
	(c-ws*-string-limit-regexp): new regexp.
	(c-forward-single-comment, c-backward-single-comment): Comment out
	the (now redundant) "special" AWK stuff.

	* progmodes/cc-styles.el, cc-vars.el: Change the settings of
	c-string-par-start, c-string-par-separate to be more like Text
	Mode than Fundamental Mode.

2005-12-08  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* progmodes/cc-fonts.el (c-font-lock-declarations): Always narrow
	to the fontified region so that fontification doesn't occur
	outside it
	(could happen e.g. when fontifying a line with an unfinished
	declaration).

2005-12-08  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* progmodes/cc-awk.el: Regexps for analysing AWK code have been
	moved to near the start of the file.  ^L now separate sections of
	the file.  New defconsts: c-awk-non-eol-esc-pair-re,
	c-awk-blank-or-comment-line-re,
	c-awk-one-line-possibly-open-string-re,
	c-awk-regexp-one-line-possibly-open-char-class-re,
	c-awk-one-line-possibly-open-regexp-re,
	c-awk-one-line-non-syn-ws*-re.  New functions: c-awk-at-vsemi-p,
	c-awk-vsemi-status-unknown-p.

	Amend the concept of "virtual semicolons" (in the indentation
	engine) for languages like AWK, such that they are now
	conceptually attached to end of the last token of a statement, not
	the end of the line.  (In AWK Mode, however, the pertinent text
	property is still physically set on the EOL.)  Remove the specific
	tests for awk-mode, thus facilitating the introduction of other
	language modes where EOLs can end statements.  (Note: The
	funtionality in cc-cmds.el, specifically
	c-beginning/end-of-statement has yet to be amended.)

	* progmodes/cc-defs.el: New macros c-at-vsemi-p,
	c-vsemi-status-unknown-p.

	* progmodes/cc-langs.el: Added `#' into AWK Mode's value of
	c-stmt-delim-chars.  New c-lang-defvars: c-at-vsemi-p-fn,
	c-vsemi-status-unknown-p-fn (in a new page).

	* progmodes/cc-engine.el: In c-beginning-of-statement-1,
	c-crosses-statement-barrier-p, c-guess-basic-syntax, replace
	numerous awkward forms like
	(if (c-major-mode-is 'awk-mode) (c-awk-prev-line-incomplete-p))
	with
	(c-at-vsemi-p).  Fix a few typos.  In c-guess-basic-syntax, new
	variable before-ws-ip, the place just after char-before-ip
	appears.

	* progmodes/cc-mode.el: Fix what's almost a semantic ambiguity in
	a comment.

2005-12-08  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* progmodes/cc-cmds.el (c-electric-brace): Cleaned up using
	`c-tentative-buffer-changes'.

	* progmodes/cc-defs.el (c-region-is-active-p): Simplified and
	converted to macro to choose between Emacs and XEmacs at compile
	time.

	(c-set-region-active): New set counterpart to
	`c-region-is-active-p'.

	(c-tentative-buffer-changes): New macro to handle temporary buffer
	changes in a convenient way.

	(c-tnt-chng-record-state, c-tnt-chng-cleanup): Internal helpers
	for `c-tentative-buffer-changes'.

	* progmodes/cc-engine.el (c-looking-at-inexpr-block): Tightened up
	the checks for paren sexps between the point and the keyword, to
	avoid some false alarms.

	* progmodes/cc-engine.el, cc-langs.el (c-looking-at-inexpr-block):
	Fixed a situation where an error could be thrown for unbalanced
	parens.  Changed to make use of c-keyword-member' to avoid some
	repeated regexp matches.

	(c-opt-lambda-key, c-opt-inexpr-block-key,
	c-opt-inexpr-class-key): These language variable are no longer
	necessary.

	(c-block-stmt-kwds): New language constant used by
	c-looking-at-inexpr-block'.

	(c-guess-basic-syntax): Removed an optional check that looked at
	the existence of the now removed language variables.

	* progmodes/cc-engine.el (c-fdoc-shift-type-backward,
	c-forward-decl-or-cast-1): Fixed invalid recognition of C++ style
	object instantiation expressions as declarations in some contexts.
	This bug only affected languages where the declarator can't be
	enclosed in parentheses.

	* progmodes/cc-styles.el (c-style-alist): Fixed the GNU style to
	insert newlines before and after substatement braces.

	* progmodes/cc-engine.el: Improved the heuristics for recognizing
	function declaration headers and the handling of C++ style member
	init lists.

	(c-just-after-func-arglist-p): Rewritten to use
	`c-forward-decl-or-cast-1'.  Now behaves a bit differently too.

	(c-beginning-of-member-init-list): Removed since it isn't used
	anymore.

	(c-guess-basic-syntax): Case 5B adapted for the new
	`c-just-after-func-arglist-p'.  Cases 5B.1 and 5B.3 merged.  Cases
	5D.1 and 5D.2 removed since they aren't trigged anymore (case 5B.1
	covers all cases now).

	* progmodes/cc-defs.el (c-point): Added 'bosws and 'eosws.

2005-12-08  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* progmodes/cc-cmds.el, cc-styles.el, cc-vars.el: New variables
	c-string-par-start/separate c-sentence-end-with-esc-eol,
	initialised in c-setup-paragraph-variables, used in string
	scanning subroutines of c-beginning-of-statement.

	* progmodes/cc-cmds.el (c-electric-brace): don't delete a comment
	which precedes the newly inserted `{'.

2005-12-08  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* progmodes/cc-engine.el, cc-langs.el: Rewrote the recognition
	function for declaration level blocks.  It should now cope with
	templates better and also be a lot more comprehensible.

	(c-looking-at-decl-block): The new function.

	(c-search-uplist-for-classkey): The old one.  It's now a wrapper
	for compatibility.

	(c-add-class-syntax, c-guess-continued-construct,
	c-guess-basic-syntax): Adapted for `c-looking-at-decl-block'.

	(c-decl-block-key): Changed to tell apart ambiguous and
	unambiguous keywords.  Pike specials are now handled directly in
	the code instead.

	(c-block-prefix-disallowed-chars, c-block-prefix-charset): New
	language constants and variables to make the backward skip in
	`c-looking-at-decl-block' as tight as possible.

	(c-nonsymbol-token-char-list): New language constant.

	* progmodes/cc-engine.el (c-backward-<>-arglist): New function to
	find balanced template arglists backwards.

	* progmodes/cc-defs.el (c-make-bare-char-alt): New helper for
	making char classes for `c-syntactic-skip-backward'.

	* progmodes/cc-engine.el (c-guess-basic-syntax): Simplified case
	16D - can't be a class-close at that point.

	* progmodes/cc-engine.el (c-guess-basic-syntax,
	c-add-class-syntax): Don't narrow out the enclosing declaration
	level.  This makes everything a lot easier, and it was actually
	only four small places that needed it to work.  Some places that
	previously did `widen' are removed now, which has the effect that
	`c-guess-basic-syntax' never will look at things outside the
	current narrowment now.  The anchor position for `topmost-intro'
	is affected by this, but it was so bogus it was basically useless
	before, and now it's equally bogus but in a slightly different
	way.

	(c-narrow-out-enclosing-class): Gone.

	(c-most-enclosing-brace, c-least-enclosing-brace): Don't filter to
	the narrowed region.

	(c-least-enclosing-brace): Removed silly optional argument.

	* progmodes/cc-engine.el (c-beginning-of-decl-1): Fixed bug where
	the point could be left directly after an open paren when finding
	the beginning of the first decl in the block.

	* progmodes/cc-engine.el, cc-fonts.el (c-forward-keyword-clause):
	Specify which submatch to use.

	* progmodes/cc-langs.el (c-symbol-start): Include '@' in ObjC.

	(c-decl-start-re): No no longer any need for special treatment of
	ObjC due to the above.

	(c-other-block-decl-kwds): Handle "extern" in ObjC too since it
	presumably follows C in that regard.

	* progmodes/cc-langs.el (c-identifier-ops, c-after-id-concat-ops):
	New language constants to specify operator tokens inside
	identifiers in a more high level way.

	(c-opt-identifier-prefix-key): New internal language constant.

	(c-opt-identifier-concat-key, c-opt-after-id-concat-key,
	c-identifier-start, c-identifier-key): Now completely calculated
	from other constants.

	(c-identifier-last-sym-match): Decommissioned since it's no longer
	used.

	(c-operators): Use `c-identifier-ops'.  Documented
	`postfix-if-paren'.

	* progmodes/cc-engine.el (c-forward-name): Removed the
	optimization when c-identifier-key is equal to c-symbol-key since
	it doesn't work in byte compiled files.  Don't record empty
	regions as identifiers.

	* progmodes/cc-langs.el (c-filter-ops): New helper function to
	simplify access to `c-operators' and its likes.

	(c-operator-list, c-all-op-syntax-tokens,
	c-nonsymbol-token-regexp, c-<>-multichar-token-regexp,
	c-<-op-cont-regexp, c->-op-cont-regexp, c-expr-kwds,
	c-primary-expr-regexp, c-cast-parens): Use it.

	* progmodes/cc-defs.el (c-lang-const): Fixes to allow use without
	an explicit language in functions.

	* progmodes/cc-defs.el (c-make-keywords-re): Added an appendable
	variant of adornment.

	* progmodes/cc-langs.el (c-any-class-key): Removed unused language
	variable.

	(c-type-decl-prefix-key): Removed some now unnecessary cruft from
	the Pike value.

	* progmodes/cc-engine.el (c-on-identifier,
	c-simple-skip-symbol-backward): Small fix for handling "-"
	correctly in `skip-chars-backward'.  Affected the operator lfun
	syntax in Pike.

	* progmodes/cc-langs.el (c-make-init-lang-vars-fun): Disabled the
	diagnostic message about precompiled language vars not being used.

	* progmodes/cc-langs.el (c-paren-nontype-kwds): The GCC keyword
	"__attribute__" is followed by a parenthesis.

	(c-type-start-kwds, c-prefix-spec-kwds, c-prefix-spec-kwds-re,
	c-specifier-key, c-not-decl-init-keywords): Some cleanup using new
	language constants `c-type-start-kwds' and `c-prefix-spec-kwds'.

	* progmodes/cc-fonts.el, cc-langs.el, cc-engine.el: Internal
	cleanups to properly detect the declared identifiers in various
	declarations.

	(c-decl-start-kwds): New language constant to recognize
	declarations that can start anywhere.  Used for class declarations
	in Pike.

	(c-specifier-key, c-not-decl-init-keywords,
	c-decl-prefix-or-start-re, c-find-decl-prefix-search,
	c-find-decl-spots): Implement `c-decl-start-kwds'.

	(c-other-decl-kwds, c-postfix-decl-spec-kwds, c-decl-hangon-kwds,
	c-decl-hangon-key, c-forward-decl-or-cast-1): Separated the
	handling of the compiler specific extension keywords into a new
	language constant `c-decl-hangon-kwds' that defines keyword
	clauses to be ignored in declarations.

	(c-forward-id-comma-list, c-forward-keyword-clause): Don't skip
	past unrecognized tokens when handling `c-colon-type-list-kwds'.
	Necessary to stop at the declared identifier in e.g. IDL valuetype
	declarations.

	(c-typedef-decl-kwds, c-typeless-decl-kwds, c-type-list-kwds,
	c-prefix-spec-kwds-re, c-postfix-spec-kwds,
	c-after-suffixed-type-decl-key, c-opt-postfix-decl-spec-key,
	c-forward-decl-or-cast-1): Recognize the declared identifier in
	class and enum declarations as such and not as part of the type.

	(c-forward-decl-or-cast-1, c-forward-label): Relaxed the
	interpretation of PRECEDING-TOKEN-END when there's no preceding
	token.

	(c-forward-decl-or-cast-1): Don't disregard sure signs of
	declarations when there's some syntax error later on.

	(c-complex-decl-matchers): Did away with a reference to
	`c-specifier-key'.

	* progmodes/cc-engine.el (c-maybe-labelp): Provide no default
	value - this variable is always dynamically bound.

	* progmodes/cc-engine.el, cc-fonts.el, cc-langs.el, cc-menus.el,
	cc-mode.el, cc-styles.el, cc-vars.el, cc-align.el, cc-awk.el,
	cc-cmds.el, cc-defs.el: Changed the policy for marking up
	functions that might do hidden buffer changes: All such internal
	functions are now marked instead of those that don't.

	(c-beginning-of-macro, c-end-of-macro, c-(forward|backward)-comments,
	c-(forward|backward)-single-comment, c-parse-state, c-on-identifier,
	c-(fast-|slow-|)in-literal, c-literal-limits, c-collect-line-comments,
	c-literal-type): Allow these functions to make hidden buffer changes,
	so that they are free to use text property caching later on.

	(c-electric-backspace, c-electric-delete-forward, c-electric-pound,
	c-electric-brace, c-electric-slash, c-electric-star,
	c-electric-semi&comma, c-electric-colon, c-electric-lt-gt,
	c-electric-paren, c-electric-continued-statement, c-indent-command,
	c-indent-region, c-mask-paragraph, c-indent-new-comment-line,
	c-context-line-break): Added `c-save-buffer-state' calls to comply
	with the changed semantics of the functions above.

	* progmodes/cc-engine.el (c-beginning-of-statement-1): Fixed a bug
	when macros occur in obscure places.  Optimized the sexp movement
	a bit.

2005-12-08  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Enhancements for c-beginning-of-statement to work in AWK Mode:

	* progmodes/cc-awk.el: Supersede c-awk-NL-prop value `;'
	(completed statement) with `}' (statement completed by closing
	brace or semicolon) and `$' (statement completed by EOL).

	(c-awk-virtual-semicolon-ends-prev-line-p,
	c-awk-virtual-semicolon-ends-line-p,
	c-awk-skip-semantic-ws-forward, c-awk-skip-semantic-ws-backward,
	c-awk-at-statement-end-p): new functions

	* progmodes/cc-cmds.el: Simplify the structure of functions
	c-forward-over-illiterals, c-back-over-illiterals.  Enhance these
	two functions and c-beginning-of-statement to handle AWK Mode.

	* progmodes/cc-engine.el: Enhance c-forward-single-comment,
	c-backward-single-comment for AWK mode.  Attempt to clarify their
	doc-strings.

	* progmodes/cc-mode.el: Put M-a and M-e into awk-mode-map.

2005-12-08  Martin Stjernholm  <bug-cc-mode@gnu.org>