M502 will reset all configurable settings to their "factory defaults", which settings are those? From the M502 documentation page can be read that M502:


  Reset all configurable settings to their factory defaults.


Please note that this phrasing from the manual has been used in the question title!


  To also reset settings in EEPROM, follow with M500.


Note that:


  This command can be used even if EEPROM_SETTINGS is disabled.


The question is what is the definition of "all configurable settings"?

Are these the settings that are displayed with M503, or are there hidden settings?
What Marlin does when M502 is called is defined in the configuration_store.cpp file.

It resets:


Max acceleration
Steps per mm
Max feedrate / speed
Min segment time
Acceleration (Normal, Retract, Travel)
Min feedrate
Min travel feedrate
Jerk settings
Junction deviation
Home and SCARA offsets
Hot end offsets
Filament runout sensor distance
Tool change parameters (Swap length, extra prime, prime speed, retract speed, Park 
positions, Z raise)
Backlash correction distances and smoothing parameters
Extensible UI
Magnetic parking extruder settings
ABL (fade height, stored points, nozzle offset, servo angles
Delta calibration data (Height, Endstop offset, radius, rod length, segments per 
second, calibration radius, trim angle)
Dual / triple endstop adjustments
Preheat parameters
PID parameters
self-defined thermistors
LCD contrast
Power loss recovery
Firmware retraction
Filament diameter (for volumetric extrusion)
Endstops (if disabled)
Stepper drivers
Linear advance parameters
Motor currents (digipot)
CNC coordinate system (if selected)
Skew correction parameters
Advance pause filament change lengths