# GDB history
.gdb_history
_gdb_history
+*.desktop
visargs[i] = Fcompleting_read (callint_message,
Vobarray, Qfboundp, Qt,
Qnil, Qnil, Qnil, Qnil);
- args[i] = Fintern (visargs[i], Qnil, Qnil);
+ args[i] = Fintern (visargs[i], Qnil);
break;
case 'b': /* Name of existing buffer. */
visargs[i] = Fcompleting_read (callint_message,
Vobarray, Qcommandp,
Qt, Qnil, Qnil, Qnil, Qnil);
- args[i] = Fintern (visargs[i], Qnil, Qnil);
+ args[i] = Fintern (visargs[i], Qnil);
break;
case 'd': /* Value of point. Does not do I/O. */
case 'S': /* Any symbol. */
visargs[i] = Fread_string (callint_message,
Qnil, Qnil, Qnil, Qnil);
- args[i] = Fintern (visargs[i], Qnil, Qnil);
+ args[i] = Fintern (visargs[i], Qnil);
break;
case 'v': /* Variable name: symbol that is
Qt, Qnil, Qcoding_system_history, Qnil, Qnil);
}
while (SCHARS (val) == 0);
- return Fintern (val, Qnil, Qnil);
+ return (Fintern (val, Qnil));
}
DEFUN ("read-coding-system", Fread_coding_system, Sread_coding_system, 1, 2, 0,
Qt, Qnil, Qcoding_system_history,
default_coding_system, Qnil);
val = unbind_to (count, val);
- return (SCHARS (val) == 0 ? Qnil : Fintern (val, Qnil, Qnil));
+ return (SCHARS (val) == 0 ? Qnil : Fintern (val, Qnil));
}
DEFUN ("check-coding-system", Fcheck_coding_system, Scheck_coding_system,
ASET (this_spec, 2, this_eol_type);
Fputhash (this_name, this_spec, Vcoding_system_hash_table);
Vcoding_system_list = Fcons (this_name, Vcoding_system_list);
- val = Fassoc (Fsymbol_name (this_name, Qnil), Vcoding_system_alist, Qnil);
+ val = Fassoc (Fsymbol_name (this_name), Vcoding_system_alist, Qnil);
if (NILP (val))
Vcoding_system_alist
- = Fcons (Fcons (Fsymbol_name (this_name, Qnil), Qnil),
+ = Fcons (Fcons (Fsymbol_name (this_name), Qnil),
Vcoding_system_alist);
}
}
Fputhash (name, spec_vec, Vcoding_system_hash_table);
Vcoding_system_list = Fcons (name, Vcoding_system_list);
- val = Fassoc (Fsymbol_name (name, Qnil), Vcoding_system_alist, Qnil);
+ val = Fassoc (Fsymbol_name (name), Vcoding_system_alist, Qnil);
if (NILP (val))
- Vcoding_system_alist = Fcons (Fcons (Fsymbol_name (name, Qnil), Qnil),
+ Vcoding_system_alist = Fcons (Fcons (Fsymbol_name (name), Qnil),
Vcoding_system_alist);
int id = coding_categories[category].id;
Fputhash (alias, spec, Vcoding_system_hash_table);
Vcoding_system_list = Fcons (alias, Vcoding_system_list);
- val = Fassoc (Fsymbol_name (alias, Qnil), Vcoding_system_alist, Qnil);
+ val = Fassoc (Fsymbol_name (alias), Vcoding_system_alist, Qnil);
if (NILP (val))
- Vcoding_system_alist = Fcons (Fcons (Fsymbol_name (alias, Qnil), Qnil),
+ Vcoding_system_alist = Fcons (Fcons (Fsymbol_name (alias), Qnil),
Vcoding_system_alist);
return Qnil;
return XSYMBOL (symbol)->u.s.plist;
}
-DEFUN ("symbol-name", Fsymbol_name, Ssymbol_name, 1, 2, 0,
+DEFUN ("symbol-name", Fsymbol_name, Ssymbol_name, 1, 1, 0,
doc: /* Return SYMBOL's name, a string. */)
- (const Lisp_Object symbol, const Lisp_Object cl)
+ (register Lisp_Object symbol)
{
CHECK_SYMBOL (symbol);
- if (SYMBOL_KEYWORD_P (symbol) && NILP (cl))
+ if (SYMBOL_KEYWORD_P (symbol))
return concat2 (build_string (":"), SYMBOL_NAME (symbol));
return SYMBOL_NAME (symbol);
}
if (SYMBOLP (docstring) && !NILP (docstring))
/* Hack for OClosures: Allow the docstring to be a symbol
* (the OClosure's type). */
- docstring = Fsymbol_name (docstring, Qnil);
+ docstring = Fsymbol_name (docstring);
CHECK_STRING (docstring);
cdr = Fcons (XCAR (cdr), Fcons (docstring, XCDR (XCDR (cdr))));
}
/* Load the file. */
tem = load_with_autoload_queue
- (NILP (filename) ? Fsymbol_name (feature, Qnil) : filename,
+ (NILP (filename) ? Fsymbol_name (feature) : filename,
noerror, Qt, Qnil, (NILP (filename) ? Qt : Qnil));
/* If load failed entirely, return nil. */
hash_func = sha512_buffer;
}
else
- error ("Invalid algorithm arg: %s", SDATA (Fsymbol_name (algorithm, Qnil)));
+ error ("Invalid algorithm arg: %s", SDATA (Fsymbol_name (algorithm)));
/* allocate 2 x digest_size so that it can be re-used to hold the
hexified value */
font_prop_validate_symbol (Lisp_Object prop, Lisp_Object val)
{
if (STRINGP (val))
- val = Fintern (val, Qnil, Qnil);
+ val = Fintern (val, Qnil);
if (! SYMBOLP (val))
val = Qerror;
else if (EQ (prop, QCregistry))
- val = Fintern (Fdowncase (SYMBOL_NAME (val)), Qnil, Qnil);
+ val = Fintern (Fdowncase (SYMBOL_NAME (val)), Qnil);
return val;
}
memclear (field + j, (XLFD_LAST_INDEX - j) * word_size);
if (FIXNUMP (field[XLFD_ENCODING_INDEX]))
field[XLFD_ENCODING_INDEX]
- = Fintern (Fnumber_to_string (field[XLFD_ENCODING_INDEX]), Qnil, Qnil);
+ = Fintern (Fnumber_to_string (field[XLFD_ENCODING_INDEX]), Qnil);
return 0;
}
SYMBOL_NAME (prop[XLFD_ENCODING_INDEX]));
}
if (! NILP (val))
- ASET (font, FONT_REGISTRY_INDEX, Fintern (val, Qnil, Qnil));
+ ASET (font, FONT_REGISTRY_INDEX, Fintern (val, Qnil));
if (FIXNUMP (prop[XLFD_PIXEL_INDEX]))
ASET (font, FONT_SIZE_INDEX, prop[XLFD_PIXEL_INDEX]);
Ffont_put (font_spec, QCfamily, font_intern_prop (p1, len, 1));
}
else
- ASET (font_spec, FONT_FAMILY_INDEX, Fintern (family, Qnil, Qnil));
+ ASET (font_spec, FONT_FAMILY_INDEX, Fintern (family, Qnil));
}
if (! NILP (registry))
{
registry = concat2 (registry, extra);
}
registry = Fdowncase (registry);
- ASET (font_spec, FONT_REGISTRY_INDEX, Fintern (registry, Qnil, Qnil));
+ ASET (font_spec, FONT_REGISTRY_INDEX, Fintern (registry, Qnil));
}
}
{
while (*p1 && ! c_isspace (*p1) && *p1 != ',') p1++;
if (p0 < p1)
- new_value = Fcons (Fintern (make_string (p0, p1 - p0), Qnil, Qt),
+ new_value = Fcons (Fintern (make_string (p0, p1 - p0), Qnil),
new_value);
if (*p1)
{
|| !strcmp (SSDATA (lower), "false"))
return Qnil;
else
- return Fintern (tem, Qnil, Qnil);
+ return Fintern (tem, Qnil);
}
default:
json_object_foreach (json, key_str, value)
{
Lisp_Object key
- = Fintern (build_string_from_utf8 (key_str), Qnil, Qnil);
+ = Fintern (build_string_from_utf8 (key_str), Qnil);
result
= Fcons (Fcons (key, json_to_lisp (value, conf)),
result);
memcpy (SDATA (new_name), new_mods, mod_len);
memcpy (SDATA (new_name) + mod_len, base, base_len_byte);
- return Fintern (new_name, Qnil, Qnil);
+ return Fintern (new_name, Qnil);
}
}
unmodified = Fintern (make_string (SSDATA (SYMBOL_NAME (symbol)) + end,
SBYTES (SYMBOL_NAME (symbol)) - end),
- Qnil, Qnil);
+ Qnil);
if (modifiers & ~INTMASK)
emacs_abort ();
ASET (new_key, i, item);
else
{
- Lisp_Object key_item = Fsymbol_name (item, Qnil);
+ Lisp_Object key_item = Fsymbol_name (item);
Lisp_Object new_item;
if (!STRING_MULTIBYTE (key_item))
new_item = Fdowncase (key_item);
SBYTES (key_item));
SAFE_FREE ();
}
- ASET (new_key, i, Fintern (new_item, Qnil, Qnil));
+ ASET (new_key, i, Fintern (new_item, Qnil));
}
}
if (!SYMBOLP (AREF (new_key, i)))
continue;
- Lisp_Object lc_key = Fsymbol_name (AREF (new_key, i), Qnil);
+ Lisp_Object lc_key = Fsymbol_name (AREF (new_key, i));
/* If there are no spaces in this symbol, just skip it. */
if (!strstr (SSDATA (lc_key), " "))
Lisp_Object new_it =
make_multibyte_string ((char *) dst,
SCHARS (lc_key), SBYTES (lc_key));
- ASET (new_key, i, Fintern (new_it, Qnil, Qnil));
+ ASET (new_key, i, Fintern (new_it, Qnil));
SAFE_FREE ();
}
Lisp_Object parsed = parse_modifiers (c);
int modifiers = XFIXNAT (XCAR (XCDR (parsed)));
Lisp_Object base = XCAR (parsed);
- Lisp_Object name = Fsymbol_name (base, Qnil);
+ Lisp_Object name = Fsymbol_name (base);
/* This alist includes elements such as ("RET" . "\\r"). */
Lisp_Object assoc = Fassoc (name, exclude_keys, Qnil);
return result;
}
else
- return Fsymbol_name (key, Qnil);
+ return Fsymbol_name (key);
}
else if (STRINGP (key)) /* Buffer names in the menubar. */
return Fcopy_sequence (key);
extern bool pkg_keywordp (Lisp_Object obj);
extern Lisp_Object pkg_define_symbol (Lisp_Object sym, Lisp_Object package);
extern Lisp_Object pkg_intern_symbol (Lisp_Object sym, Lisp_Object package, Lisp_Object *status);
-extern Lisp_Object pkg_emacs_intern (Lisp_Object name, Lisp_Object package, Lisp_Object cl);
-extern Lisp_Object pkg_emacs_intern_soft (Lisp_Object name, Lisp_Object package, Lisp_Object cl);
+extern Lisp_Object pkg_emacs_intern (Lisp_Object name, Lisp_Object package);
+extern Lisp_Object pkg_emacs_intern_soft (Lisp_Object name, Lisp_Object package);
extern Lisp_Object pkg_emacs_unintern (Lisp_Object name, Lisp_Object package);
extern Lisp_Object pkg_emacs_mapatoms (Lisp_Object fn, Lisp_Object package);
extern Lisp_Object pkg_lookup_non_keyword_c_string (const char *ptr, ptrdiff_t nchars, ptrdiff_t nbytes);
LISP_SYMBOL_NAME (Lisp_Object sym)
{
if (SYMBOL_KEYWORD_P (sym))
- return Fsymbol_name (sym, Qnil);
+ return Fsymbol_name (sym);
return SYMBOL_NAME (sym);
}
case '#':
/* ## -- the empty symbol */
- obj = Fintern (empty_unibyte_string, Qnil, Qnil);
+ obj = Fintern (empty_unibyte_string, Qnil);
break;
case 's':
{
/* No symbol character follows: this is the empty symbol. */
UNREAD (c);
- obj = Fintern (empty_unibyte_string, Qnil, Qnil);
+ obj = Fintern (empty_unibyte_string, Qnil);
break;
}
uninterned_symbol = false;
define_symbol (builtin_lisp_symbol (i), defsym_name[i]);
}
-DEFUN ("intern", Fintern, Sintern, 1, 3, 0,
+DEFUN ("intern", Fintern, Sintern, 1, 2, 0,
doc: /* Return the canonical symbol whose name is STRING.
If there is none, one is created by this function and returned.
A second optional argument specifies the obarray to use;
it defaults to the value of `obarray'. */)
- (Lisp_Object string, Lisp_Object package, Lisp_Object cl)
+ (Lisp_Object string, Lisp_Object package)
{
- return pkg_emacs_intern (string, package, cl);
+ return pkg_emacs_intern (string, package);
}
-DEFUN ("intern-soft", Fintern_soft, Sintern_soft, 1, 3, 0,
+DEFUN ("intern-soft", Fintern_soft, Sintern_soft, 1, 2, 0,
doc: /* Return the canonical symbol named NAME, or nil if none exists.
NAME may be a string or a symbol. If it is a symbol, that exact
symbol is searched for.
A second optional argument specifies the obarray to use;
it defaults to the value of `obarray'. */)
- (Lisp_Object name, Lisp_Object obarray, Lisp_Object cl)
+ (Lisp_Object name, Lisp_Object obarray)
{
- return pkg_emacs_intern_soft (name, obarray, cl);
+ return pkg_emacs_intern_soft (name, obarray);
}
DEFUN ("unintern", Funintern, Sunintern, 1, 2, 0,
Qnil, Qnil, default_string, Qnil);
if (NILP (name))
return name;
- return Fintern (name, Qnil, Qnil);
+ return Fintern (name, Qnil);
}
#ifdef NOTDEF
default_string, Qnil);
if (NILP (name))
return name;
- return Fintern (name, Qnil, Qnil);
+ return Fintern (name, Qnil);
}
DEFUN ("read-buffer", Fread_buffer, Sread_buffer, 1, 4, 0,
/* Is this element a possible completion? */
if (SYMBOLP (eltstring))
- eltstring = Fsymbol_name (eltstring, Qnil);
+ eltstring = Fsymbol_name (eltstring);
if (STRINGP (eltstring)
&& SCHARS (string) <= SCHARS (eltstring)
/* Is this element a possible completion? */
if (SYMBOLP (eltstring))
- eltstring = Fsymbol_name (eltstring, Qnil);
+ eltstring = Fsymbol_name (eltstring);
if (STRINGP (eltstring)
&& SCHARS (string) <= SCHARS (eltstring)
{
tem = HASH_KEY (h, i);
if (BASE_EQ (tem, Qunbound)) continue;
- Lisp_Object strkey = (SYMBOLP (tem) ? Fsymbol_name (tem, Qnil) : tem);
+ Lisp_Object strkey = (SYMBOLP (tem) ? Fsymbol_name (tem) : tem);
if (!STRINGP (strkey)) continue;
if (BASE_EQ (Fcompare_strings (string, Qnil, Qnil,
strkey, Qnil, Qnil,
register Lisp_Object tail;
if (SYMBOLP (key))
- key = Fsymbol_name (key, Qnil);
+ key = Fsymbol_name (key);
for (tail = list; CONSP (tail); tail = XCDR (tail))
{
elt = XCAR (tail);
thiscar = CONSP (elt) ? XCAR (elt) : elt;
if (SYMBOLP (thiscar))
- thiscar = Fsymbol_name (thiscar, Qnil);
+ thiscar = Fsymbol_name (thiscar);
else if (!STRINGP (thiscar))
continue;
tem = Fcompare_strings (thiscar, make_fixnum (0), Qnil,
/* Implements Emacs' traditional Fintern function. */
Lisp_Object
-pkg_emacs_intern (Lisp_Object name, Lisp_Object package, Lisp_Object cl)
+pkg_emacs_intern (Lisp_Object name, Lisp_Object package)
{
CHECK_STRING (name);
/* Implements Emacs' traditional Fintern_soft function. */
Lisp_Object
-pkg_emacs_intern_soft (Lisp_Object name, Lisp_Object package, Lisp_Object cl)
+pkg_emacs_intern_soft (Lisp_Object name, Lisp_Object package)
{
/* intern-soft allows symbols. */
Lisp_Object orig = name;
/* A frame could be too young and have no name yet;
don't crash. */
if (SYMBOLP (frame_name))
- frame_name = Fsymbol_name (frame_name, Qnil);
+ frame_name = Fsymbol_name (frame_name);
else /* can't happen: name should be either nil or string */
frame_name = build_string ("*INVALID*FRAME*NAME*");
}
Lisp_Object language = XTS_PARSER (obj)->language_symbol;
/* No need to print the buffer because it's not that useful: we
usually know which buffer a parser belongs to. */
- print_string (Fsymbol_name (language, Qnil), printcharfun);
+ print_string (Fsymbol_name (language), printcharfun);
printchar ('>', printcharfun);
break;
case PVEC_TS_NODE:
return CALLN (Fformat, format, code);
}
else
- return Fcopy_sequence (Fsymbol_name (symbol, Qnil));
+ return Fcopy_sequence (Fsymbol_name (symbol));
}
\f
enum { PTY_NAME_SIZE = 24 };
Lisp_Object color_mode;
int mode;
Lisp_Object tty_color_mode_alist
- = Fintern_soft (build_string ("tty-color-mode-alist"), Qnil, Qnil);
+ = Fintern_soft (build_string ("tty-color-mode-alist"), Qnil);
tem = assq_no_quit (Qtty_color_mode, f->param_alist);
val = CONSP (tem) ? XCDR (tem) : Qnil;
treesit_load_language (Lisp_Object language_symbol,
Lisp_Object *signal_symbol, Lisp_Object *signal_data)
{
- Lisp_Object symbol_name = Fsymbol_name (language_symbol, Qnil);
+ Lisp_Object symbol_name = Fsymbol_name (language_symbol);
CHECK_LIST (Vtreesit_extra_load_path);
return false;
}
- Lisp_Object fn = Fintern (XCAR (args), Qnil, Qnil);
+ Lisp_Object fn = Fintern (XCAR (args), Qnil);
Lisp_Object nodes = Qnil;
Lisp_Object tail = XCDR (args);
FOR_EACH_TAIL (tail)
if (NILP (obj))
return "no process";
#ifndef MSDOS
- obj = Fsymbol_name (Fprocess_status (obj), Qnil);
+ obj = Fsymbol_name (Fprocess_status (obj));
#endif
break;
Lisp_Object tortoise, hare;
if (STRINGP (face_name))
- face_name = Fintern (face_name, Qnil, Qnil);
+ face_name = Fintern (face_name, Qnil);
if (NILP (face_name) || !SYMBOLP (face_name))
return face_name;
entry = Fcopy_sequence (entry);
XSETCAR (tail, entry);
for (tail2 = entry; CONSP (tail2); tail2 = XCDR (tail2))
- XSETCAR (tail2, Fintern (XCAR (tail2), Qnil, Qnil));
+ XSETCAR (tail2, Fintern (XCAR (tail2), Qnil));
}
Vface_alternative_font_family_alist = alist;