mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-09 13:40:50 +00:00
Spelling fixes
* lisp/help-fns.el (help-fns--analyze-function): Rename from help-fns--analyse-function. All uses changed.
This commit is contained in:
parent
18b2359411
commit
b2518ac750
4 changed files with 7 additions and 8 deletions
|
@ -38322,7 +38322,7 @@
|
||||||
Automatically detect whether .h file is C or C++
|
Automatically detect whether .h file is C or C++
|
||||||
|
|
||||||
* lisp/progmodes/cc-mode.el (c-or-c++-mode): A new function which
|
* lisp/progmodes/cc-mode.el (c-or-c++-mode): A new function which
|
||||||
analyses contents of the buffer to determine whether it looks like C++
|
analyzes contents of the buffer to determine whether it looks like C++
|
||||||
source code and based on that enables c-mode or c++-mode.
|
source code and based on that enables c-mode or c++-mode.
|
||||||
(c-or-c++-mode--regexp): Regular expression which, when matches
|
(c-or-c++-mode--regexp): Regular expression which, when matches
|
||||||
a buffer, signals file is C++.
|
a buffer, signals file is C++.
|
||||||
|
|
5
etc/NEWS
5
etc/NEWS
|
@ -1155,9 +1155,8 @@ branch-related commands on a keymap bound to 'B'.
|
||||||
|
|
||||||
---
|
---
|
||||||
*** Opening a .h file will turn C or C++ mode depending on language used.
|
*** Opening a .h file will turn C or C++ mode depending on language used.
|
||||||
This is done with the help of 'c-or-c++-mode' function which analyses
|
This is done with the help of the 'c-or-c++-mode' function, which
|
||||||
contents of the buffer to determine whether it's a C or C++ source
|
analyzes buffer contents to infer whether it's a C or C++ source file.
|
||||||
file.
|
|
||||||
|
|
||||||
---
|
---
|
||||||
** New option 'cpp-message-min-time-interval' to allow user control
|
** New option 'cpp-message-min-time-interval' to allow user control
|
||||||
|
|
|
@ -560,7 +560,7 @@ FILE is the file where FUNCTION was probably defined."
|
||||||
(setq short rel))))
|
(setq short rel))))
|
||||||
short))
|
short))
|
||||||
|
|
||||||
(defun help-fns--analyse-function (function)
|
(defun help-fns--analyze-function (function)
|
||||||
;; FIXME: Document/explain the differences between FUNCTION,
|
;; FIXME: Document/explain the differences between FUNCTION,
|
||||||
;; REAL-FUNCTION, DEF, and REAL-DEF.
|
;; REAL-FUNCTION, DEF, and REAL-DEF.
|
||||||
"Return information about FUNCTION.
|
"Return information about FUNCTION.
|
||||||
|
@ -602,7 +602,7 @@ Returns a list of the form (REAL-FUNCTION DEF ALIASED REAL-DEF)."
|
||||||
(defun help-fns-function-description-header (function)
|
(defun help-fns-function-description-header (function)
|
||||||
"Print a line describing FUNCTION to `standard-output'."
|
"Print a line describing FUNCTION to `standard-output'."
|
||||||
(pcase-let* ((`(,_real-function ,def ,aliased ,real-def)
|
(pcase-let* ((`(,_real-function ,def ,aliased ,real-def)
|
||||||
(help-fns--analyse-function function))
|
(help-fns--analyze-function function))
|
||||||
(file-name (find-lisp-object-file-name function (if aliased 'defun
|
(file-name (find-lisp-object-file-name function (if aliased 'defun
|
||||||
def)))
|
def)))
|
||||||
(beg (if (and (or (byte-code-function-p def)
|
(beg (if (and (or (byte-code-function-p def)
|
||||||
|
@ -692,7 +692,7 @@ Returns a list of the form (REAL-FUNCTION DEF ALIASED REAL-DEF)."
|
||||||
(terpri)(terpri)
|
(terpri)(terpri)
|
||||||
|
|
||||||
(pcase-let* ((`(,real-function ,def ,_aliased ,real-def)
|
(pcase-let* ((`(,real-function ,def ,_aliased ,real-def)
|
||||||
(help-fns--analyse-function function))
|
(help-fns--analyze-function function))
|
||||||
(doc-raw (condition-case nil
|
(doc-raw (condition-case nil
|
||||||
;; FIXME: Maybe `documentation' should return nil
|
;; FIXME: Maybe `documentation' should return nil
|
||||||
;; for invalid functions i.s.o. signaling an error.
|
;; for invalid functions i.s.o. signaling an error.
|
||||||
|
|
|
@ -1859,7 +1859,7 @@ Key bindings:
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun c-or-c++-mode ()
|
(defun c-or-c++-mode ()
|
||||||
"Analyse buffer and enable either C or C++ mode.
|
"Analyze buffer and enable either C or C++ mode.
|
||||||
|
|
||||||
Some people and projects use .h extension for C++ header files
|
Some people and projects use .h extension for C++ header files
|
||||||
which is also the one used for C header files. This makes
|
which is also the one used for C header files. This makes
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue